摘要:
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... 阅读全文
摘要:
This page defines more types of resources you can externalize, including: 阅读全文
摘要:
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 ... 阅读全文
摘要:
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... 阅读全文
摘要:
1. Menu Resource A menu resource defines an application menu (Options Menu, Context Menu, or submenu) that can be inflated with MenuInflater.//res/me... 阅读全文
摘要:
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 ... 阅读全文
摘要:
1. Drawable Resources There are several different types of drawables as follow2. Bitmap A bitmap image. Android supports bitmap files in a three for... 阅读全文
摘要:
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... 阅读全文
摘要:
1. Animation Resources An animation resource can define one of two types of animations: Property Animation Creates an animation by modifying an o... 阅读全文
摘要:
Google 自带 package mirror.android.miniweb;import android.app.Activity;import android.os.Bundle;import android.suppor... 阅读全文