为了账号安全,请及时绑定邮箱和手机立即绑定
慕课网数字资源数据库体验端
Android攻城狮的第一门课(入门篇)_学习笔记_慕课网
为了账号安全,请及时绑定邮箱和手机立即绑定

Android攻城狮的第一门课(入门篇)

Amos
难度入门
时长 5小时 0分
  • TextView控件的常用属性
    查看全部
  • <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.yiqun.imoocdemointent" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="17" /> <application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" > <activity android:name="org.yiqun.imoocdemointent.MainActivity" android:label="@string/app_name" > </activity> <activity android:name="org.yiqun.imoocdemointent.FActivty" android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter></activity> <activity android:name="org.yiqun.imoocdemointent.SActivtiy" android:label="@string/app_name" ></activity></application> </manifest>
    查看全部
  • <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <Button android:id="@+id/button1" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Button" /> </LinearLayout>
    查看全部
  • package org.yiqun.imoocdemointent; import android.app.Activity; import android.os.Bundle; public class SActivtiy extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.sactivity); } }
    查看全部
  • <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <Button android:id="@+id/button1_first" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="第一种方法实现intent启动" /> <Button android:id="@+id/button2_second" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="第一种方法实现intent启动" /> <TextView android:id="@+id/textView1" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="把第二个actvity页面回传返回的数据显示出来" /> </LinearLayout>
    查看全部
  • package org.yiqun.imoocdemointent; import java.net.ContentHandler; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class FActivty extends Activity{ private Button bt1; private Context mContext; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.factivity); /*通过*/ mContext=this; bt1=(Button)findViewById(R.id.button1_first); bt1.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { /* * 第一个参数:上下文对象this * 第二个参数:目标文件(将启动的新activity页面) */ Intent intent=new Intent(mContext, SActivtiy.class); startActivity(intent); } }); }
    查看全部
  • 无返回结果的页面跳转,思路: 1:新建两个Layout--FActivity.xml、SActivity.xml 2:新建两个activity.java---FActivity.java、SActivity.java 3:设置layout界面,并设置java关联layout 4:activity跳转设置:在java代码设置跳转界面
    查看全部
  • res文件夹下有多个drawable文件夹,存放不同分辨率的图片 XXhdpi最高分辨率 Xhdpi高分辨率 hdpi缓高分辨率 ldpi低分辨率
    查看全部
  • 匿名内部类监听事件
    查看全部
  • 文本框
    查看全部
  • onclick 事件
    查看全部
    0 采集 收起 来源:概述

    2015-08-09

  • linearlayout常用属性
    查看全部
    0 采集 收起 来源:理解线性布局

    2015-08-09

  • APP打包签名的意义
    查看全部
  • 文件地址:SDK——docs——index.html 若没有,链接:http://www.android-doc.com/guide/components/index.html
    查看全部
  • 工程右键——Ecport(导出)——Android->Export Android Application——选择导出哪个工程——①Use exiting keystore(已存在的签名文件)②Create new keystore(新建)【地址、密码、密码确认】——填写基本信息(如图)【名字,密码,确认,有效期,姓名,组织,组织,城市,省份,国家】——生成APK文件的地址目录——finish
    查看全部

举报

0/150
提交
取消
课程须知
Android应用大部分是使用Java语言进行开发的,本门课程同样使用的是Java语言,所以,在学习本门课程前必须掌握Java的基础语法以及面向对象编程,同时要求童鞋们对Android应用有简单的认识,如不了解不妨度娘一下哦
老师告诉你能学到什么?
1、android环境搭建 2、android应用程序框架的认识 3、android基础控件的运用 4、android的不同布局形式
友情提示:

您好,此课程属于迁移课程,您已购买该课程,无需重复购买,感谢您对慕课网的支持!