Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

实验四:Android界面设计编程 #4

Open
jiaohui opened this issue Feb 13, 2020 · 0 comments
Open

实验四:Android界面设计编程 #4

jiaohui opened this issue Feb 13, 2020 · 0 comments
Labels
Lab 实验要求

Comments

@jiaohui
Copy link
Collaborator

jiaohui commented Feb 13, 2020

实验目标

  1. 根据选题要求设计界面布局及控件使用;
  2. 布局xml及界面控制操作代码提交并截图;
  3. 将应用运行结果截图。(不要做登录注册!)

教材内容

  1. developer.android.google.cn - 文档 - 核心主题 - 界面 - 布局
  2. 教材:第 2 章 P27-33

实验提交结果

  1. 首页 .xml
  2. 功能 .xml
  3. 功能 .xml
  4. 图片 res/drawable/.jpg/png (可选)
  5. 以前实验修改 (可选)

实验内容

  1. 使用其中一种布局方式,设计所选题目的界面,建议用LinearLayout。
  • LinearLayout, RelativeLayout, Adapter, ConstraintLayout (自学)
  1. 通过控件ID获取界面对象,执行相关操作:
// XML
android:id="@+id/my_button"
// Java
findViewById(R.id.my_button);
  1. 实现界面控件的事件处理,例如点击按钮:

image

public class MainActivity extends Activity  implements OnClickListener {    
    // ......   
    @Override    
    public void onClick(View v) { 
    // ......
  1. 操作之后,切换到你的第二个界面。

实验提示

  1. 重写实验报告,可以网站上直接修改和预览,但是要在自己电脑上执行命令:
git pull
  1. 注意复习和参考前几次实验的步骤与要求:

实验参考(待更新)

@jiaohui jiaohui added the Lab 实验要求 label Feb 13, 2020
GBSTS added a commit to GBSTS/android-labs-2020 that referenced this issue Oct 19, 2020
jaydjxing added a commit to jaydjxing/android-labs-2020 that referenced this issue Oct 19, 2020
zengsn added a commit that referenced this issue Oct 20, 2020
Arlene238 pushed a commit to Arlene238/android-labs-2020 that referenced this issue Oct 21, 2020
Arlene238 pushed a commit to Arlene238/android-labs-2020 that referenced this issue Oct 21, 2020
Playerlhh added a commit to Playerlhh/android-labs-2020 that referenced this issue Oct 26, 2020
522090231 added a commit to 522090231/android-labs-2020 that referenced this issue Oct 26, 2020
huangjunxin added a commit to huangjunxin/android-labs-2020 that referenced this issue Oct 26, 2020
Chanlex added a commit to Chanlex/android-labs-2020 that referenced this issue Oct 26, 2020
JieBro333 pushed a commit to JieBro333/android-labs-2020 that referenced this issue Oct 27, 2020
Chenweikang2 added a commit to Chenweikang2/android-labs-2020 that referenced this issue Oct 27, 2020
zengsn added a commit that referenced this issue Oct 27, 2020
zengsn added a commit that referenced this issue Oct 27, 2020
zengsn added a commit that referenced this issue Oct 27, 2020
zengsn added a commit that referenced this issue Oct 27, 2020
zengsn added a commit that referenced this issue Oct 27, 2020
huanxuaner added a commit to huanxuaner/android-labs-2020 that referenced this issue Oct 28, 2020
15218047860 pushed a commit to 15218047860/android-labs-2020 that referenced this issue Oct 28, 2020
15218047860 pushed a commit to 15218047860/android-labs-2020 that referenced this issue Oct 28, 2020
Hacker-LAM added a commit to Hacker-LAM/android-labs-2020 that referenced this issue Oct 29, 2020
Hacker-LAM added a commit to Hacker-LAM/android-labs-2020 that referenced this issue Oct 29, 2020
Hacker-LAM added a commit to Hacker-LAM/android-labs-2020 that referenced this issue Oct 29, 2020
zengsn added a commit that referenced this issue Oct 29, 2020
zengsn added a commit that referenced this issue Oct 29, 2020
xyl123580 added a commit to xyl123580/android-labs-2020 that referenced this issue Oct 31, 2020
taoge183 added a commit to taoge183/android-labs-2020 that referenced this issue Nov 1, 2020
zengsn added a commit that referenced this issue Jan 1, 2021
zengsn added a commit that referenced this issue Jan 1, 2021
zengsn added a commit that referenced this issue Jan 1, 2021
zengsn added a commit that referenced this issue Jan 1, 2021
zengsn added a commit that referenced this issue Jan 1, 2021
zengsn added a commit that referenced this issue Jan 1, 2021
lxp99 added a commit to lxp99/android-labs-2020 that referenced this issue Jan 3, 2021
lxp99 added a commit to lxp99/android-labs-2020 that referenced this issue Jan 3, 2021
zengsn added a commit that referenced this issue Jan 4, 2021
huangqiulian added a commit to huangqiulian/android-labs-2020 that referenced this issue Jan 4, 2021
huangqiulian added a commit to huangqiulian/android-labs-2020 that referenced this issue Jan 4, 2021
1nnocent1 added a commit to 1nnocent1/android-labs-2020 that referenced this issue Jan 5, 2021
zxcvbn135 added a commit to zxcvbn135/android-labs-2020 that referenced this issue Jan 6, 2021
zengsn added a commit that referenced this issue Jan 8, 2021
zhengtingting1 added a commit to zhengtingting1/android-labs-2020 that referenced this issue Jan 8, 2021
zhengtingting1 added a commit to zhengtingting1/android-labs-2020 that referenced this issue Jan 8, 2021
zhengtingting1 added a commit to zhengtingting1/android-labs-2020 that referenced this issue Jan 8, 2021
zcjzzf added a commit to zcjzzf/android-labs-2020 that referenced this issue Jan 8, 2021
JeesionChone added a commit to JeesionChone/android-labs-2020 that referenced this issue Jan 8, 2021
JeesionChone added a commit to JeesionChone/android-labs-2020 that referenced this issue Jan 8, 2021
JeesionChone added a commit to JeesionChone/android-labs-2020 that referenced this issue Jan 8, 2021
jun-stack added a commit to jun-stack/android-labs-2020 that referenced this issue Jan 13, 2021
jun-stack added a commit to jun-stack/android-labs-2020 that referenced this issue Jan 13, 2021
Lcnc added a commit to Lcnc/android-labs-2020 that referenced this issue Jan 14, 2021
Lcnc added a commit to Lcnc/android-labs-2020 that referenced this issue Jan 14, 2021
Lcnc added a commit to Lcnc/android-labs-2020 that referenced this issue Jan 14, 2021
zengsn added a commit that referenced this issue Jan 17, 2021
zengsn added a commit that referenced this issue Mar 14, 2021
zengsn added a commit that referenced this issue Mar 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Lab 实验要求
Projects
None yet
Development

No branches or pull requests

1 participant