<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/topHeader"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<!-- Header aligned to top -->
<!-- <include layout="@layout/header_layout" /> -->
<!-- Footer aligned to bottom -->
<!-- <include layout="@layout/footer_layout" /> -->
<!-- Content below header and above footer -->
<!-- <include layout="@layout/intermediate_layout" /> -->
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="center">
<ImageView
android:id="@+id/imgLogo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:src="@drawable/header" />
</RelativeLayout>
</RelativeLayout>
में सामने करने के लिए बटन (subview) लाना चाहते हैं। मैं इस लेआउट पर गतिशील रूप से कुछ टेक्स्टव्यू, इमेजव्यू इत्यादि जोड़ रहा हूं और एक केंद्रीकृत बटन सामने लाया जाना चाहिए। आईओएस में यह संभव है और मैं एंड्रॉइड में चाहता हूं। इस विचार के लिए कोई सुझाव? मेरे ऊपर है TopHeaderlayout.xml इस एक्सएमएल में, मैं गतिशील रूप से दृश्य जोड़ता हूं। और एक बटन दृश्य के सामने होना चाहिए।मैं मैं लेआउट एक्सएमएल, जिसमें मैं center.And में एक बटन डाल कर मैं हमेशा सामने है कि बटन चाहते एंड्रॉयड
hehe..thanks एक बहुत, @ kvirair। यह मेरे लिए काम करता है। – immodi