xml - Android layout Fix -


मुझे नीचे की छवि  यहां छवि विवरण दर्ज करें

लेकिन अब मुझे इस तरह का लेआउट मिल रहा है

 यहाँ छवि विवरण दर्ज करें

यह मेरा कोड मुख्य xml फ़ाइल में उपयोग किया जाता है।

  & lt; RelativeLayout xmlns: एंड्रॉयड = "http://schemas.android.com/apk/res/android" xmlns: उपकरण = "http://schemas.android.com/tools" एंड्रॉयड: layout_width = "match_parent" एंड्रॉयड: layout_height = "match_parent" उपकरण: संदर्भ = "। मुख्य गतिविधि" & gt; & LT; LinearLayout एंड्रॉयड: layout_width = "match_parent" एंड्रॉयड: layout_height = "wrap_content" एंड्रॉयड: layout_alignParentTop = "true" एंड्रॉयड: layout_centerHorizontal = "true" एंड्रॉयड: पृष्ठभूमि = "@ drawable / back_gradient" एंड्रॉयड: अभिविन्यास = "क्षैतिज" & gt; & LT; ImageButton एंड्रॉयड: आईडी = "@ + id / imageButton1" एंड्रॉयड: layout_width = "wrap_content" एंड्रॉयड: layout_height = "wrap_content" एंड्रॉयड: src = "@ drawable / मेनू" एंड्रॉयड: पृष्ठभूमि = "@ drawable / back_gradient" / & gt ; & LT; TextView एंड्रॉयड: आईडी = "@ + id / textView1" एंड्रॉयड: layout_width = "wrap_content" एंड्रॉयड: layout_height = "match_parent" एंड्रॉयड: layout_gravity = "fill_vertical" एंड्रॉयड: पृष्ठभूमि = "@ drawable / back_gradient" एंड्रॉयड: पाठ = " आपका स्वागत है "एंड्रॉइड: textAlignment =" center "android: textColor =" # ffffff "एंड्रॉइड: टेक्स्ट साइज़ =" 19sp "एंड्रॉइड: gravity =" center_vertical "/ & gt; & LT; imageView एंड्रॉयड: आईडी = "@ + id / imageView1" एंड्रॉयड: layout_width = "wrap_content" एंड्रॉयड: layout_height = "wrap_content" एंड्रॉयड: layout_marginEnd = "20dp" एंड्रॉयड: src = "@ drawable / खोज" / & gt; & Lt; / LinearLayout & gt; & Lt; / RelativeLayout & gt;   

क्या कोई मुझे बता सकता है कि मैं इसे कैसे प्राप्त कर सकता हूं?

अग्रिम धन्यवाद

इस लेआउट को आज़माएं।

  & lt; रिलेटिव लेआउट xmlns: android =" http://schemas.android.com/apk/res/android "xmlns: टूल = "http://schemas.android.com/tools" एंड्रॉइड: layout_width = "match_parent" एंड्रॉइड: layout_height = "match_parent" उपकरण: संदर्भ = ".मुख्य गतिविधि" & gt; & LT; LinearLayout एंड्रॉयड: layout_width = "match_parent" एंड्रॉयड: layout_height = "wrap_content" एंड्रॉयड: layout_alignParentTop = "true" एंड्रॉयड: layout_centerHorizontal = "true" एंड्रॉयड: पृष्ठभूमि = "@ drawable / back_gradient" एंड्रॉयड: अभिविन्यास = "क्षैतिज" & gt; & LT; ImageButton एंड्रॉयड: आईडी = "@ + id / imageButton1" एंड्रॉयड: layout_width = "wrap_content" एंड्रॉयड: layout_height = "wrap_content" एंड्रॉयड: src = "@ drawable / मेनू" एंड्रॉयड: layout_weight = "1" एंड्रॉयड: पृष्ठभूमि = " @ ड्रॉएबल / बैक_ग्रीडिएन्ट "/ & gt; & LT; TextView एंड्रॉयड: आईडी = "@ + id / textView1" एंड्रॉयड: layout_width = "wrap_content" एंड्रॉयड: layout_height = "match_parent" एंड्रॉयड: layout_gravity = "fill_vertical" एंड्रॉयड: पृष्ठभूमि = "@ drawable / back_gradient" एंड्रॉयड: पाठ = " आपका स्वागत है "एंड्रॉयड: textAlignment =" केन्द्र "एंड्रॉयड: textcolor =" # FFFFFF "एंड्रॉयड: textSize =" 19sp "एंड्रॉयड: layout_weight =" 1 "एंड्रॉयड: गुरुत्वाकर्षण =" center_vertical "/ & gt; & LT; imageView एंड्रॉयड: आईडी = "@ + id / imageView1" एंड्रॉयड: layout_width = "wrap_content" एंड्रॉयड: layout_height = "wrap_content" एंड्रॉयड: layout_marginEnd = "20dp" एंड्रॉयड: layout_weight = "1" एंड्रॉयड: src = "@ drawable / खोज "/ & gt; & Lt; / LinearLayout & gt;    

Comments

Popular posts from this blog

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -