Android(八)

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" />

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值