मैं इस तरह एक कस्टम दृश्य बनाना चाहता हूँ। एंड्रॉइड में छवि पर बटन कैसे रखें?
मैं निम्नलिखित
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:orientation="vertical" >
<ImageView
android:id="@+id/customView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:src="@drawable/sample_image" />
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right|top"
android:text="Button" />
<Button
android:id="@+id/button2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right|bottom"
android:text="Button" />
</FrameLayout>
कैसे मैं इस तरह एक दृश्य बना सकते हैं की कोशिश की? मैं इस तरह छविदृश्य पर बटन कैसे रख सकता हूं?
अग्रिम धन्यवाद
उपयोग रिश्तेदार लेआउट के लिए हल किया। – SKK
नीचे मेरा जवाब देखें। मैंने स्क्रीन का एक स्नैपशॉट संलग्न किया है। – SKK