打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
Android项目开发笔记(一)

一:文本的颜色选择器:

在res目录下面创建color文件夹,在color文件夹下面创建font_style_colors.xml文件







在布局文件中使用字体颜色选择器
<>
android:id="@+id/bt_ok"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/feedback_selector"
android:text="确定"

android:textColor="@color/font_style_colors" />

二、关于Calener的比较

calendar的compareto测试时出现了两个时间相等,但比较结果不是我断言的,经高人指点,这才明白,
原来calendar.set(year,month,day,hour,min,sec)没有设置ccalendar.millisecond,需要设置calendar.millisecond为0
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
Android新布局方式ConstraintLayout介绍与学习资料
android开发:ImageView中android:maxHeight属性的作用
【译】[干货] Android 开发规范与应用
[Learn Android Studio 汉化教程]第五章:Reminders实验:第一部分
[Android] 從 ActionBar 轉換到 Toolbar
android 文件夹的命名和作用,屏幕适配很有用!
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服