Android
文章平均质量分 80
Bluwil
脚下走过的就成为了路。
展开
-
Android资源文件中特殊符号的含义
一、@ 代表引用资源1.引用自定义资源 格式:@[package:]type/name android:text="@String/hello"2.引用系统资源 格式:@android:type/nameandroid:textColor="@android:color/opaque_red" 注意:其实@android:type/name是@[package:]type/name原创 2015-11-28 23:25:22 · 1511 阅读 · 0 评论 -
Android LayoutInflater
在实际开发中LayoutInflater这个类还是非常有用的,它的作用类似于findViewById()。不同点是LayoutInflater是用来找res/layout/下的xml布局文件,并且实例化;而findViewById()是找xml布局文件下的具体widget控件(如Button、TextView等)。具体作用:对于一个没有被载入或者想要动态载入的界面,都需要使用LayoutInfl原创 2015-11-28 23:12:00 · 194 阅读 · 0 评论