
Android
文章平均质量分 70
沙澧
这个作者很懒,什么都没留下…
展开
-
Android 多线程编程
android的应用程序支持多线程,多线程编程为我们充分利用系统资源提供了便利,同时也为设计复杂UI和耗时操作提供了途径,提升了安卓用户的使用体验。Android的多线程和JAVA没有多大变化,唯一的变化大概在于无法直接使用CANVAS修改屏幕元素,当然安卓为我们提供了surfaceview类来实现多线程中通过画布canvas修改屏幕。这为设计UI和开发游戏带来了方便。因此,研究和使用多线程编程,原创 2012-06-01 14:33:15 · 383 阅读 · 0 评论 -
spinner下拉列表
一.创建一个spinner步骤1.在布局文件中声明一个spinner android:id="@+id/spinner" android:layout_width="fill_parent" android:layout_height="wrap_content"/>2.在strings.xml添加数据 Spinne原创 2012-09-26 14:47:28 · 965 阅读 · 0 评论 -
AutoCompleteTextView
1.在布局文件里声明一个AutoCompleteTextView android:id="@+id/autocomplete" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft=原创 2012-09-26 15:28:05 · 446 阅读 · 0 评论 -
android 发送状态通知
1.创建一个activity用于传入notification的内容http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:orientation="vertical" android:layout_width="match_原创 2012-10-04 20:10:14 · 1953 阅读 · 0 评论 -
android 自定义标题文件
1.首先建立一个标题布局文件title.xmlhttp://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="match_parent" >原创 2012-10-04 19:27:01 · 666 阅读 · 0 评论 -
android编码实现软件界面
1.如果软件的界面在运行期根据不同的条件显示不同的样子,通过编码实现软件界面2.通过软件编码方式实现xml布局文件http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"原创 2012-09-29 08:00:49 · 603 阅读 · 0 评论 -
android样式与主题
1.样式与主题的区别1.1样式应用于特殊的组件,主题应用与整个应用或整个Activity1.2主题不仅单单显示内容的风格(大小、颜色),而且可以设置窗口的显示风格1.3当主题的设置属性与样式的设置属相相同时,系统按样式的设置属性显示1.4系统定义的一些常有主题:对话框风格透明风格可以通过文档reference->android->R.style查看2.在styles原创 2012-09-29 07:53:56 · 667 阅读 · 0 评论 -
RatingBar
1.在布局文件中声明一个RatingBar android:id="@+id/ratingbar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:numStars="5" android:stepSize="1.0"/>原创 2012-09-26 19:21:02 · 898 阅读 · 0 评论 -
SeekBar
1.在main.xml中声明一个SeekBarhttp://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:layout_height="match_parent" >and原创 2012-09-26 19:09:01 · 689 阅读 · 0 评论 -
RadioButton和CheckBox
1.在strings.xml中添加字符串 RadioCheck Hello world! Settings MainActivity 男 女红色黑色蓝色2.在布局文件中添加控件 xmlns:tools="http://schemas.android.com/tools" android:原创 2012-09-26 16:32:38 · 629 阅读 · 0 评论 -
ListView
1.在main.xml布局文件中设置一个listviewhttp://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:orientation="vertical" android:layout_width="fill_parent原创 2012-09-26 18:43:01 · 461 阅读 · 0 评论 -
android如何运行自带demo
1.File->New->Other2.选择android->android Sample Project 3.点击next 选择一个build target 点击next4.这就是大家期望已久的android自带demo4.原创 2012-11-10 08:59:44 · 1683 阅读 · 0 评论