Android SDK簡要認(rèn)識(1)——android包

本篇將記錄Android SDK下包android內(nèi)API內(nèi)容:

包android包含平臺內(nèi)置的,為系統(tǒng)特性定義的權(quán)限的資源類。(Contains resource classes used by applications included in the platform and defines application permissions for system features.)

1、注意不要使用android包下的 drawable圖標(biāo)資源,因為在不同平臺版本中可能會變更,導(dǎo)致產(chǎn)生與你設(shè)計無法預(yù)見的沖突。(In particular, you should not use drawable resources from the android package, because they may change between platform versions, causing unforeseen conflicts with your design. )

2、通常來說,style資源是系統(tǒng)資源中你可以直接使用的。(Typically, styles
are the only resources you should use directly from these resources.)

3、類
android.Manifest
android.Manifest.permission
android.Manifest.permission_group

permission_group(應(yīng)用權(quán)限組)包含:
日歷 calendar
相機(jī) camera
聯(lián)系人 contacts
地理 location
麥克風(fēng) microphone
電話 phone
傳感器 sensor
短信 sms
存儲 storage

4、R資源
R.anim UI動畫效果
R.attr 屬性設(shè)置
R.id 為在java中動態(tài)創(chuàng)建的布局控件設(shè)置實例id
R.interpolator
R.layout Android系統(tǒng)布局——自帶的布局android.R.layout詳解

————————————不熟悉的單詞??——————————————
unforeseen 無法預(yù)料的
typically 通常
animator 動畫設(shè)計(師)
fraction 分?jǐn)?shù),分?jǐn)?shù),小部分
interpolator 插補(bǔ)器,插值器,內(nèi)插程序
accelerate 加速
curve 曲線,彎道,曲線

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容