Android style的繼承方式 點(.)和parent詳解及實例
一.概述
通過繼承機制,可以利用已有的style來定義新的style。所定義的新的style型不僅擁有新定義的item,而且還同時擁有舊的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)頁標(biāo)題:Androidstyle的繼承方式點(.)和parent詳解及實例-創(chuàng)新互聯(lián)
本文網(wǎng)址:http://sd-ha.com/article46/shhhg.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供軟件開發(fā)、Google、網(wǎng)站導(dǎo)航、App開發(fā)、網(wǎng)站維護、做網(wǎng)站
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容