2010年12月15日

Android_文档学习_Building Custom Components

摘要: Building Custom ComponentsAndroid提供了一套精巧的强大的组件化的模型供你创建你的UI,它们是基于layout的View和ViewGroup的类.这个平台提供了许许多多的已经建好的View和ViewGroup子类-被称为widgets 和 layouts,正如所预期的那样.你可以用这些构造你自己的UI.一部分可用的widgets包括 Button, TextView, EditText, ListView,CheckBox, RadioButton, Gallery, Spinner,和更多特殊用途的widgets: AutoCompleteTextView, I 阅读全文

posted @ 2010-12-15 20:50 FengMichael 阅读(125) 评论(0) 推荐(0)

Android_文档学习_UI_Applying Styles and Themes

摘要: Applying Styles and Themes一种Style就是许多具体样子和View或者window的的格式属性的集合.一种Style可以具体化高度,间距,字体颜色,字体大小,背景色,还有其他多种属性.一种Style在一个和布局xml文件分开的xml源文件中被定义.Android中的Style类似用来覆盖在网页设计中的样式表-它们允许你将内容和设计分开来.例如用如下style将如下xml文件:<TextView android:layout_width="fill_parent" android:layout_height="wrap_content 阅读全文

posted @ 2010-12-15 11:40 FengMichael 阅读(143) 评论(0) 推荐(0)

导航