2016年10月17日

Android Notification

摘要: Notification是一种具有全局效果的通知,它展示在屏幕的顶端,首先会表现为一个图标的形式,当用户向下滑动的时候,展示出通知具体的内容。 它是一种让你的应用程序在没有开启情况下或在后台运行警示用户。它是看不见的程序组件(Broadcast Receiver,Service和不活跃的Activi 阅读全文

posted @ 2016-10-17 20:26 语风6649 阅读(176) 评论(0) 推荐(0) 编辑

Android DatePickerDialog TimePickerDialog

摘要: 1 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 android:layout_width="match_parent" 3 android:layout_height="match_parent 阅读全文

posted @ 2016-10-17 11:06 语风6649 阅读(284) 评论(0) 推荐(0) 编辑

Android Toast 提示按两次返回键退出

摘要: 1 public class MainActivity extends Activity { 2 3 @Override 4 protected void onCreate(Bundle savedInstanceState) { 5 super.onCreate(savedInstanceStat 阅读全文

posted @ 2016-10-17 11:03 语风6649 阅读(248) 评论(0) 推荐(0) 编辑

Android Toast 自定义

摘要: 1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 android:layout_width="match_pare 阅读全文

posted @ 2016-10-17 11:00 语风6649 阅读(226) 评论(0) 推荐(0) 编辑

Android ProgressDialog 加载进度

摘要: 1 public class MainActivity extends Activity { 2 3 @Override 4 protected void onCreate(Bundle savedInstanceState) { 5 super.onCreate(savedInstanceStat 阅读全文

posted @ 2016-10-17 10:56 语风6649 阅读(1858) 评论(0) 推荐(0) 编辑

Android 自定义Dialog

摘要: 1、drawable 1 <shape xmlns:android="http://schemas.android.com/apk/res/android" > 2 <corners android:radius="10dp"/> 3 4 </shape> 1 <shape xmlns:androi 阅读全文

posted @ 2016-10-17 10:53 语风6649 阅读(221) 评论(0) 推荐(0) 编辑

Android Dialog AlertDialog

摘要: 1、普通的对话框 1 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 android:layout_width="match_parent" 3 android:layout_height="mat 阅读全文

posted @ 2016-10-17 10:39 语风6649 阅读(1800) 评论(0) 推荐(0) 编辑

Android BaseAdapter ListView (明星简介列表)

摘要: 1、搭建布局 1 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 android:layout_width="match_parent" 3 android:layout_height="mat 阅读全文

posted @ 2016-10-17 10:23 语风6649 阅读(443) 评论(0) 推荐(0) 编辑

Android SimpleAdapter ListView (锁定手机,解锁手机的列表)

摘要: SimpleAdapter是扩展性最好的适配器,可以定义各种你想要的布局。 构造方法: SimpleAdapter(Context context, List<? extends Map<String, ?>> data, int resource, String[] from, int[] to) 阅读全文

posted @ 2016-10-17 10:02 语风6649 阅读(357) 评论(0) 推荐(0) 编辑

导航