2013-08-24 8 views
6

में homeAsUpIndicator की छवि बदलने के लिए मेरी एंड्रॉयड आवेदन में,कैसे डिफ़ॉल्ट थीम Theme.Holo.Light

मैं डिफ़ॉल्ट थीम Theme.Holo.Light उपयोग कर रहा हूँ।

अब मैं इस का उपयोग करते हुए "<" चिह्न जो कि डिफ़ॉल्ट है बदलना चाहते हैं:

<item name="homeAsUpIndicator">@drawable/ic_launcher</item> 

में

<item name="homeAsUpIndicator">@android:drawable/ic_ab_back_holo_light</item> 

इस बदलकर लेकिन यहाँ संकेत यह है के रूप में बनी हुई है, यह नहीं है छवि बदलें। मैं actionBar के स्क्रीन शॉट संलग्न कर रहा हूँ। किसी भी तरह की सहायता को आभार समझेंगे।

enter image description here

+0

यह मदद कर सकता है: http://stackoverflow.com/questions/13168843/actionbarsherlock-changing-homeasupindicator-doesnt-work –

उत्तर

8

अपने डिफ़ॉल्ट Activity विषय में इन रखो।

<item name="android:homeAsUpIndicator">@drawable/ic_launcher</item> 
+0

आप themes.xml फ़ाइल में क्या मतलब है? क्योंकि मैं डिफ़ॉल्ट थीम का उपयोग कर रहा हूं: Theme.Holo.Light – Ponting

+0

अपने कस्टम थीम को थीम के रूप में 'थीम.होलो.लाइट' के साथ बनाएं। '<शैली नाम =" my_custom_theme "जनक =" Theme.Holo.Light "> <आइटम नाम =" एंड्रॉयड: homeAsUpIndicator "> @ drawable/ic_launcher ' – Mihir

+0

इसलिए मैं बनाने के इस तरह कस्टम विषय: <शैली का नाम = "customTheme" parent = "Theme.Holo.Light"> @ drawable/ic_launcher style.xml फ़ाइल में? धन्यवाद। – Ponting

संबंधित मुद्दे