2016年3月2日

摘要: 碎片是一种可以嵌入在活动中的UI片段,它能让程序更加合理与充分地使用大屏幕的空间,碎片通常都是在平板电脑开发中才会使用 简单实例 左碎片布局 <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schem 阅读全文
posted @ 2016-03-02 11:04 android开发进阶者 阅读(953) 评论(0) 推荐(0) 编辑
 

2016年3月1日

摘要: 自定义标题控件,使标题控件上的按钮有了触发事件 package com.example.uicustomviews;import android.app.Activity;import android.content.Context;import android.util.AttributeSet; 阅读全文
posted @ 2016-03-01 15:01 android开发进阶者 阅读(255) 评论(0) 推荐(0) 编辑
 
摘要: 引入的标题布局title.xml <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="h 阅读全文
posted @ 2016-03-01 14:22 android开发进阶者 阅读(733) 评论(0) 推荐(0) 编辑
 

2016年2月29日

摘要: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_ 阅读全文
posted @ 2016-02-29 21:16 android开发进阶者 阅读(284) 评论(0) 推荐(0) 编辑
 
摘要: package com.example.uiwidgettest2;import android.app.Activity;import android.app.AlertDialog;import android.app.ProgressDialog;import android.content. 阅读全文
posted @ 2016-02-29 19:42 android开发进阶者 阅读(710) 评论(0) 推荐(0) 编辑
 
摘要: package com.example.uiwidgettest2;import android.app.Activity;import android.app.AlertDialog;import android.content.DialogInterface;import android.os. 阅读全文
posted @ 2016-02-29 19:25 android开发进阶者 阅读(1447) 评论(0) 推荐(0) 编辑
 
摘要: ProgressBar用于在界面上显示一个进度条,表示我们的程序正在加载一些数据。 <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/androi 阅读全文
posted @ 2016-02-29 17:18 android开发进阶者 阅读(5329) 评论(0) 推荐(0) 编辑
 
摘要: <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android: 阅读全文
posted @ 2016-02-29 15:15 android开发进阶者 阅读(289) 评论(0) 推荐(0) 编辑
 
摘要: <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android: 阅读全文
posted @ 2016-02-29 14:36 android开发进阶者 阅读(292) 评论(0) 推荐(0) 编辑
 
摘要: <?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.c 阅读全文
posted @ 2016-02-29 14:15 android开发进阶者 阅读(1090) 评论(0) 推荐(0) 编辑