看別人項目AndroidMainfest.xml文件的時候俯树,經(jīng)常遇到陌生的屬性,如何查看這些屬性的解釋說明呢畜挨?
1.android doc 在線站點
http://android.xsoftlab.net/reference/packages.html
搜索R.styleable
所有控件筒繁、組件的屬性在此文件中都有說明。
2.搜索具體屬性
ctrl+f 在本頁搜索
xml中控件屬性: 控件名_屬性名
ex. TextView xml中的singleLine屬性朦促,TextView_singleLine
AndroidManifest中組件屬性:AndroidManifest組件名_屬性名
ex. <activity>的android:windowSoftInputMode屬性,?
AndroidManifestActivity_windowSoftInputMode