




下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、软件工程111班 号学生实验Android 基础控件的使必修 演示性实验 验证性实验 操作性实验 201435 1-4一、实验综1、实验目的及要实验Android应用程序开发,可以是自己设计的程序登录界面(参考PPT要求)TextView、Button和EditText三个基本写出创建程序的基本步骤以及程序中涉及到的主要代码,将程序运行结果截2、实验仪器、设备或软二、实验过程(实验步骤、记录、数据、分析string.xml步骤三:使用 TableLayout TableRow HYPERLINK /apk/res/android HYPERLINK /tools android:orienta
2、tion=vertical android:textSize=18sp /android:stretchColumns=1 android:textSize=18sp /android:layout_height=wrap_content /android:textSize=18sp /android:layout_height=wrap_content /android:textSize=14sp /android:layout_height=wrap_content /android:textSize=14sp /android:textSize=14sp /Stringprotected
3、 void onCreate(Bundle savedInstanceState) Button b1=(Button)findViewById(R.id.b); b1.setOnClickListener(new OnClickListener() onClick(View arg0) Auto-generated method myExpand = (ExpandableListView) findViewById(R.id.list);myExpand = new ExpandableListView(MainActivity.this);myAdapter=new BaseExpand
4、ableListAdapter() isChildSelectable(int groupPosition, int childPosition) / TODO Auto-method return hasStableIds() / TODO Auto-method return getGroupView(int groupPosition, boolean ViewGroup parent) / TODO Auto-method linear=new d(R.id.bbb);/return linear;private TextView getTextView()/TextView avit
5、y.LEFT);/0, 0, return getGroupId(int groupPosition) / TODO Auto-method return getGroupCount() / TODO Auto-method return getGroup(int groupPosition) / TODO Auto-method getChildrenCount(int groupPosition) / TODO Auto-method getChildView(int groupPosition, int View convertView, ViewGroup parent) / TODO
6、 Auto-method linear=new textView=new return getChildId(int groupPosition, int childPosition) / TODO Auto-method return getChild(int groupPosition, int childPosition) / TODO Auto-method ckListener(new OnChildClickListener() onChildClick(ExpandableListView parent, View int groupPosition, childPosition
7、, long id) / TODO Auto-method return Adapter);/Builder builder = new Builder(MainActivity.this);/nd);/builder.setTitle(ton(确认,new DialogInterface.OnClickListener() onClick(DialogInterface dialog, int which) / TODO Auto-method public boolean onCreateOptionsMenu(Menu menu) /Inflatethemenu;thisaddsitemstotheactionbarifis getMenuInflater().inflate(R.menu.menu1,menu); return true;onOptionsItemSelected(MenuItemitem) Auto-generated method stub三、结实验结四、指导
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 团建活动请假3篇
- 安全评价招标规则说明3篇
- 兼职环保宣传专员合同2篇
- 工程介绍居间合同3篇
- 住宅小区电梯设备选标招标3篇
- 大白施工合同的价款支付方式3篇
- 商务公司改革3篇
- 审批项目建议书的意见征求3篇
- 建筑装饰装修承包合同3篇
- 企业展览服务合同(10篇)
- 连云港2025年连云港市赣榆区事业单位招聘31人笔试历年参考题库附带答案详解
- 8.1薪火相传的传统美德 课件-2024-2025学年统编版道德与法治七年级下册
- 湖北省武汉市2025届高中毕业生四月调研考试语文试卷及答案(武汉四调)
- 食堂负面清单管理制度
- 2025年安徽省示范高中皖北协作区第27届联考 生物学(含解析)
- 2025年度专业技术人员继续教育公需科目考试题(附答案)
- 2025年中考语文《教材字音、字形》梳理
- 2024年上半年教资科目一试题
- 施工员顶岗实习报告范文
- 毽球知到智慧树章节测试课后答案2024年秋武汉职业技术学院
- 雾化吸入疗法合理用药专家共识(2024版)课件
评论
0/150
提交评论