मैं रैखिक ढाल के आकार को रैखिक स्तर पर पृष्ठभूमि के रूप में कैसे रख सकता हूं? यहाँ है कि मैं क्या वर्तमान में है:रेडियल ग्रेडियेंट पृष्ठभूमि को कैसे स्थिति दें
आकार:
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient
android:endColor="#e6e6e6"
android:gradientRadius="800"
android:startColor="#fafaf9"
android:type="radial"/>
</shape>
LinearLayout:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/accueil_bg_gradient">
</LinearLayout>
मैं सिर्फ अपनी ढाल स्क्रीन के बाएँ ऊपरी कोने से शुरू, और अंत करना चाहते हैं दाएं कोने पर।
बहुत बहुत धन्यवाद!
आप ढाल के कोण बदलने के लिए 'उपयोग करने के लिए एंड्रॉयड की कोशिश करना चाहते हैं: में angle' < [ढाल] (http://developer.android.com/guide/topics/resources/drawable-resource.html#Shape)> तत्व। – m039
उत्तर के लिए धन्यवाद लेकिन यह एक रेडियल ढाल – alxscms