




下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 会议策划组织与活动实施协议
- 企业环境污染事故处理案例分析
- 电力工程安全与法规考试卷
- 农业灌溉用水资源合理利用协议
- 绿色出行项目投资协议
- 品牌保护合作服务协议
- 机械制造行业设备安全运行免责协议书
- 纺织品涂层知识培训课件
- 国际工程项目承包合同
- 企业客户服务质量管理与提升预案
- JTGT F20-2015 公路路面基层施工技术细则
- 2024年江苏省农垦集团有限公司招聘笔试参考题库含答案解析
- 2022年山东交通职业学院单招综合素质考试笔试试题及答案解析
- 中医美容-课件
- 小型风力发电系统毕业设计
- 集团EHS管理体系考核细则
- 我是女生_青春期健康教育讲座
- 融资租赁有限公司全套管理制度汇编收藏
- 中班语言《如果我能飞》课件
- BS EN 1993-1-10-2005-全部译文
- 400吨汽车吊性能表
评论
0/150
提交评论