android - How can I make a image at edge of a layout? -


छवि दर्ज करें यहाँ वर्णन हाय मैं एंड्रॉइड ऐप के साथ काम कर रहा हूं। मैं चित्र में एक लेआउट बनाने की कोशिश कर रहा हूं। मैंने केंद्र में दृश्य बनाया था। लेकिन मैं लेआउट के कोने पर छवि दिखाना चाहता हूं। मैं यह कैसे कर सकता हूँ ? कृपया कुछ उदाहरणों के साथ मेरी सहायता करें, पहले से धन्यवाद:) यहां छवि विवरण दर्ज करें

नीचे कोड का प्रयास करें: -

  & lt; रिलेटिव लेआउट एंड्रॉइड: layout_width = "मैच_पेरेंट" एंड्रॉइड: लेआउट_हेहेट = "200 डीपी" & gt; & Lt; RelativeLayout एंड्रॉइड: layout_width = "match_parent" android: layout_height = "200dp" एंड्रॉइड: layout_margin = "30dp" एंड्रॉइड: layout_marginLeft = "14dp" एंड्रॉइड: पृष्ठभूमि = "# 000000" & gt; & Lt; / RelativeLayout & gt; & LT; imageView एंड्रॉयड: layout_width = "50dp" एंड्रॉयड: layout_height = "50dp" एंड्रॉयड: layout_alignParentLeft = "true" एंड्रॉयड: layout_alignParentTop = "true" एंड्रॉयड: layout_marginLeft = "14dp" एंड्रॉयड: layout_marginTop = "14dp" एंड्रॉयड: src = " @ ड्रॉएबल / आकृतिकार_कार्ड_आर्ड "/ & gt; & Lt; / RelativeLayout & gt; & Lt; / RelativeLayout & gt;   

ड्रॉबल - & gt; shape_circle_red

 <कोड> & lt;? xml संस्करण = "1.0" एन्कोडिंग = "utf-8" & gt; & Lt; आकार xmlns: एंड्रॉइड = "http://schemas.android.com/apk/res/android" एंड्रॉइड: आकार = "अंडाकार" & gt; & lt; ठोस एंड्रॉइड: color = "# ff0000" / & gt; & lt; आकार एंड्रॉइड: ऊंचाई = "50 डीपी" एंड्रॉइड: width = "50dp" / & gt; & Lt; / आकार & gt;    

Comments

Popular posts from this blog

c# - The item with identity 'Id' already exists in the metadata collection. Parameter name: item -

sql - PostgreSQL automatically update row at specific date -

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -