Android style的繼承方式 點(diǎn)(.)和parent詳解及實(shí)例

一.概述
通過繼承機(jī)制,可以利用已有的style來定義新的style。所定義的新的style型不僅擁有新定義的item,而且還同時(shí)擁有舊的item。我們稱已存在的用來派生新的style為父style。由新定義的style,又稱為子style。 比如:
<style name="pickprof_guide_text">
<item name="android:textSize">16.0sp</item>
<item name="android:textColor">#ff333333</item>
</style>
<style name="pickprof_guide_text_small" parent="@style/pickprof_guide_text">
<item name="android:textSize">13.0sp</item>
</style>
網(wǎng)頁(yè)標(biāo)題:Androidstyle的繼承方式點(diǎn)(.)和parent詳解及實(shí)例-創(chuàng)新互聯(lián)
本文網(wǎng)址:http://www.jbt999.com/article46/shhhg.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供軟件開發(fā)、Google、網(wǎng)站導(dǎo)航、App開發(fā)、網(wǎng)站維護(hù)、做網(wǎng)站
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:[email protected]。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容