摘要: 1. Writing the XML Each layout file must contain exactly one root element, which must be a View or ViewGroup object. Once you've defined the root el... 阅读全文
posted @ 2014-11-03 16:23 Mirrorhanman 阅读(234) 评论(0) 推荐(0)
摘要: This page defines more types of resources you can externalize, including: 阅读全文
posted @ 2014-11-03 15:40 Mirrorhanman 阅读(102) 评论(0) 推荐(0)
摘要: 1. Style Resource A style resource defines the format and look for a UI. A style can be applied to an individual View (from within a layout file) or ... 阅读全文
posted @ 2014-11-03 15:38 Mirrorhanman 阅读(143) 评论(0) 推荐(0)
摘要: 1. String//saved at res/values/strings.xml Hello!//This layout XML applies a string to a View: This application code retrieves a string:String str... 阅读全文
posted @ 2014-11-03 15:35 Mirrorhanman 阅读(217) 评论(0) 推荐(0)
摘要: 1. Menu Resource A menu resource defines an application menu (Options Menu, Context Menu, or submenu) that can be inflated with MenuInflater.//res/me... 阅读全文
posted @ 2014-11-03 14:56 Mirrorhanman 阅读(204) 评论(0) 推荐(0)
摘要: 1. Layout Resources A layout resource defines the architecture for the UI in an Activity or a component of a UI.2. Syntax //Any element ... 阅读全文
posted @ 2014-11-03 14:26 Mirrorhanman 阅读(188) 评论(0) 推荐(0)
摘要: 1. Drawable Resources There are several different types of drawables as follow2. Bitmap A bitmap image. Android supports bitmap files in a three for... 阅读全文
posted @ 2014-11-03 14:22 Mirrorhanman 阅读(168) 评论(0) 推荐(0)
摘要: 1. Color State List Resource A ColorStateList is an object you can define in XML that you can apply as a color, but will actually change colors, depe... 阅读全文
posted @ 2014-11-03 13:58 Mirrorhanman 阅读(179) 评论(0) 推荐(0)
摘要: 1. Animation Resources An animation resource can define one of two types of animations: Property Animation Creates an animation by modifying an o... 阅读全文
posted @ 2014-11-03 13:21 Mirrorhanman 阅读(149) 评论(0) 推荐(0)
摘要: Google 自带 package mirror.android.miniweb;import android.app.Activity;import android.os.Bundle;import android.suppor... 阅读全文
posted @ 2014-11-03 12:56 Mirrorhanman 阅读(752) 评论(0) 推荐(0)