
9、Android
文章平均质量分 53
天使鍀翅膀
...
展开
-
android知识点积累
添加监听: final ImageView image = new ImageView(this); image.setOnClickListener(new OnClickListener() { public void onClick(View v) { if(currentImg>=5) { currentImg = -1;原创 2012-09-05 17:14:59 · 388 阅读 · 0 评论 -
Android布局管理器
1.线性布局:LinearLayouthttp://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:grav原创 2012-09-05 17:13:19 · 299 阅读 · 0 评论 -
Android基本的界面组件
一、文本框TextView与编辑框EditText1.TextView文本框。有点类似于Swing的JLabel,只能显示文本,不能编辑 设置显示的文本超过了TextView的长度时,文本框内默认显示的提示文本 --> 将符合指定格式的文本转换为可单击的超链接形式 --> android:shadowDx="原创 2012-09-06 16:17:06 · 657 阅读 · 0 评论 -
android环境的搭建
ADT的安装将解压后的ADT里的features,plugins文件夹里的文件全部复制到eclipse的features,plugins里SDK的安装Window-Preferences找到android点击android右边填上sdk的路径如:D:\android\android-sdk-windowsAndroid环境变量设置1、ANDROID_SDK_HOME原创 2012-08-27 10:06:18 · 245 阅读 · 0 评论 -
用adb命令安装APK文件到android系统
查看当前运行的模拟器adb -devices把电脑里的文件复制到模拟器的sdcard目录里adb push E:/SogouInput.apk /sdcard/把模拟器sdcard里的文件复制到电脑上adb pull /sdcard/SogouInput.apk d:/在模拟器里安装apk文件(我的可以直接安装电脑里的文件,在模拟器里的文件却安装不了,不知道原因)abd原创 2012-08-24 10:53:31 · 969 阅读 · 0 评论 -
Android高级界面组件(1)
一、自动完成文本框AutoCompleteTextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:completionHint="请选择您喜欢的图书" android:dropDownHorizonta原创 2012-09-10 15:55:04 · 1178 阅读 · 0 评论 -
Android高级界面组件(2)
十、可展开的列表组件ExpandableListView android:layout_width="fill_parent" android:layout_height="wrap_content" android:childIndicator="@drawable/icon"/> //创建一个BaseExpanda原创 2012-09-20 14:31:33 · 665 阅读 · 0 评论