1. reference:參考某一資源ID老玛。
(1)屬性定義:
(2)屬性使用:
android:layout_width="42dip"
android:layout_height="42dip"
android:background="@drawable/圖片ID"/>
2. color:顏色值。
(1)屬性定義:
[html]view plaincopy
print?
(2)屬性使用:
[html]view plaincopy
print?
android:layout_width="42dip"
android:layout_height="42dip"
android:textColor="#00FF00"/>
3. boolean:布爾值渊啰。
(1)屬性定義:
[html]view plaincopy
print?
(2)屬性使用:
[html]view plaincopy
print?
android:layout_width="42dip"
android:layout_height="42dip"
android:focusable="true"/>
4. dimension:尺寸值等太。
(1)屬性定義:
[html]view plaincopy
print?
(2)屬性使用:
[html]view plaincopy
print?
android:layout_width="42dip"
android:layout_height="42dip"/>
5. float:浮點(diǎn)值捂齐。
(1)屬性定義:
[html]view plaincopy
print?
(2)屬性使用:
[html]view plaincopy
print?
android:fromAlpha="1.0"
android:toAlpha="0.7"/>
6. integer:整型值。
(1)屬性定義:
[html]view plaincopy
print?
(2)屬性使用:
[html]view plaincopy
print?
android:frameDuration="100"
android:framesCount="12"
/>
7. string:字符串缩抡。
(1)屬性定義:
[html]view plaincopy
print?
(2)屬性使用:
[html]view plaincopy
print?
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:apiKey="0jOkQ80oD1JL9C6HAja99uGXCRiS2CGjKO_bc_g"/>
8. fraction:百分?jǐn)?shù)奠宜。
(1)屬性定義:
[html]view plaincopy
print?
(2)屬性使用:
[html]view plaincopy
print?
android:pivotX="200%"
android:pivotY="300%"
/>
9. enum:枚舉值。
(1)屬性定義:
[html]view plaincopy
print?
(2)屬性使用:
[html]view plaincopy
print?
android:orientation="vertical">
10. flag:位或運(yùn)算瞻想。
(1)屬性定義:
(2)屬性使用:
android:windowSoftInputMode="stateUnspecified?|?stateUnchanged | stateHidden">
注意:屬性定義時(shí)可以指定多種類型值:
(1)屬性定義:
(2)屬性使用:
android:layout_width="42dip"
android:layout_height="42dip"
android:background="@drawable/圖片ID|#00FF00"/>
android開發(fā)(37)
?Android SDK無法更新2013-11-08閱讀808
?Android View繪制流程2013-11-06閱讀792
?Android onTouch事件傳遞機(jī)制2013-10-31閱讀622
?解決韓版I9100刷4.0系統(tǒng)后不能鎖屏的問題2012-09-13閱讀1116
?Android中Shape Drawable在xml中的使用2012-06-18閱讀9733
?eclipse中的快捷鍵2012-06-11閱讀455
?在eclipse的工具欄中不顯示Android SDK and AVD Manager2013-11-08閱讀14881
?Android中的viewStub压真、requestFocus、include蘑险、merge標(biāo)簽2013-11-01閱讀3225
?adb shell命令詳解2012-11-13閱讀551
?Android反編譯apk得到j(luò)ava源碼的方法2012-08-06閱讀399
?git代碼管理工具使用2012-06-12閱讀704
Android5.0新特征詳解(Material Design入門篇)
Android開發(fā)-零基礎(chǔ)到精通瘋狂實(shí)戰(zhàn)教程第二季