- 博客(20)
- 收藏
- 关注
原创 Bundle的使用
注册界面布局:content_main.xml <TableLayout xmlns: android ="http://schemas.android.com/apk/res/android" android :layout_width= "match_parent" android :layout_height= "match_parent" android
2016-05-21 17:55:53 542
原创 计算质数
布局文件代码 <LinearLayout xmlns: android ="http://schemas.android.com/apk/res/android" android :layout_width= "match_parent" android :layout_height= "match_parent" android :orientation= "verti
2016-05-19 13:13:33 563
原创 Handler--消息处理机制
页面布局 content_main.xml android :layout_width= "match_parent" android :layout_height= "match_parent" android :orientation= "vertical" > android :layout_marginTop=
2016-05-19 12:16:02 312
原创 Configration--获取屏幕属性
android :layout_width= "match_parent" android :layout_height= "match_parent" android :orientation= "vertical" > android :id= "@+id/ori" android :hint= "显示屏幕方向"
2016-05-19 11:24:39 471
原创 StackView
content_main.xml布局 <LinearLayout xmlns: android ="http://schemas.android.com/apk/res/android" android :layout_width= "match_parent" android :layout_height= "match_parent" android :orientat
2016-05-18 20:08:53 387
原创 ProgressBar-进度条案例
content_main.xml布局 <LinearLayout xmlns: android ="http://schemas.android.com/apk/res/android" android :orientation= "vertical" android :layout_width= "match_parent" android :layout_height=
2016-05-18 20:06:17 474
原创 Calendar(日历)--选择日期
content_main.xml布局 <LinearLayout xmlns: android ="http://schemas.android.com/apk/res/android" android :layout_width= "match_parent" android :layout_height= "match_parent" android :ori
2016-05-18 20:03:59 1175
原创 TabHost--选项卡案例
页面布局content_main.xml <TabHost xmlns: android ="http://schemas.android.com/apk/res/android" android :layout_width= "match_parent" android :layout_height= "match_parent" android :layout_wei
2016-05-18 19:56:28 320
原创 SearchView--搜索框案例
页面布局content_main.xml android :layout_width= "match_parent" android :layout_height= "match_parent" android :orientation= "vertical"> android :id= "@+id/sea
2016-05-18 19:51:08 501
原创 onTouchEvent--触摸事件案例
自定义控件DrawView继承View package com.eson.ontouchevent ; import android.content.Context ; import android.graphics.Canvas ; import android.graphics.Color ; import android.graphics.Paint ; import
2016-05-18 19:48:10 898
原创 PlaneGame--飞机小游戏案例
PlaneView负责绘制游戏的的飞机 package com.eson.planegame ; import android.content.Context ; import android.graphics.Bitmap ; import android.graphics.BitmapFactory ; import android.graphics.Canvas ;
2016-05-18 19:41:54 1601
原创 AdapterViewFlipper使用案例
用AdapterViewFlipper设置页面布局 android :layout_width= "match_parent" android :layout_height= "match_parent" > android :id= "@+id/flipper" android :layout_width=
2016-05-15 14:33:48 422
原创 Gallery事例
页面布局content_main.xml android :orientation= "vertical" android :layout_width= "match_parent" android :layout_height= "match_parent" > android :id= "@+id/i
2016-05-15 13:32:42 289
原创 Spinner的使用案例
事例图片 页面布局content_main.xml android :orientation= "vertical" android :layout_width= "match_parent" android :layout_height= "match_parent" >
2016-05-15 11:00:12 584
原创 BaseAdapter使用案例
在页面布局上用ListView显示adapter传过来的数据。 android :orientation= "vertical" android :layout_width= "match_parent" android :layout_height= "match_parent" > android :id=
2016-05-12 09:23:06 469
原创 SimpleAdapter使用案例
页面布局 android :layout_width= "match_parent" android :layout_height= "match_parent" android :orientation= "horizontal"> android :id= "@+id/img" android :
2016-05-10 18:06:45 601
原创 SimpleCursorAdapter-获取电话簿中联系人并显示在类表中
下面的程序是从手机中把联系人显示到类表中。 先在通讯录中添加一个联系人作为数 据库的数据。然后获得一个指向数据库的 Cursor 并且定义一个布局文件(当然也可以使用 系统自带的)。 package com.eson.simplecursoradapter ; import android.database.Cursor ; import android.os.Bund
2016-05-10 14:20:31 525
原创 Android Studio下jni应用
Android Studio下jni应用 最近在将一个小应用从eclipse开发迁移到android studio,程序中有native代码实现,在eclipse是靠Android.mk这么个mk文件来组织编译的,但到android studio上就不行了,因其是靠gradle组织,所以makefile里的配置要转换为build.gradle里的语句(尽管实际上gradle也是组
2016-05-09 19:23:42 315
原创 表格布局—计算器
android :id= "@+id/root" android :layout_width= "match_parent" android :layout_height= "match_parent" android :columnCount= "4" android :rowCount= "6"> android :layout_width
2016-05-09 18:40:07 3112
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人