वहाँ एक ढाल के लिए एक ऊपर और नीचे स्ट्रोक निर्धारित करें, या बनाने के लिए एक यौगिक आकार drawable ?:आयताकार आकार खींचने योग्य, ऊपर और नीचे स्ट्रोक रंग निर्दिष्ट करें?
// option1:
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:startColor="#f00"
android:endColor="#0f0"
/>
<stroke
top=1dip, yellow
bottom=1dip, purple
/>
</shape>
// option2
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<shape
android:shape="rectangle"
height=1dip, color=yellow />
<gradient
android:startColor="#f00"
android:endColor="#0f0"
/>
<shape
android:shape="rectangle"
height=1dip, color=purple />
</shape>
मुझे नहीं लगता कि या तो संभव हो रहे हैं कोई तरीका है?
धन्यवाद
करने के लिए 3 से आइटम की संख्या को कम देखते हैं कि यह: http://stackoverflow.com/questions/1598119/is-there-an-easy-way-to-add- एक-सीमा-से-द-टॉप-एंड-डाउन-ऑफ-एंड-एंड्रॉइड-व्यू – Kenumir