Android UI对话框
AlertDialod生成的对话框分为4个区域:图表区、标题区、内容区和按钮区
创建对话框的步骤。
使用AlertDialod.Buider创建对象
使用AlertDialod.Buider的setTitle或者setCustomtitle方法设置标题
调用AlertDialod.Buider的setIcon方法设置图标
调用AlertDialod.Buider的相关方法设置对话框内容
调用AlertDialod.Buider的setosititveButton方法添加多个按钮
DateDlaog
用于显示事情设置
构造方法初始化month 0-11;比实际月份小
DatePickerDalogOnDatesetLengger:事件处理
自定义样式参照:alter
日期部分:
public datepickerDlalog(Context)
oneDateSertListener callBack
int year
int monthOYear
int dayOf(Month)
Android 布局部分代码显示
<TableRow
android:layout_width="match_parent"
android:layout_height="110dp" />
<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent" />
<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent" />
<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent" />
<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent" />