मैं http://bakhtiyor.com/2009/10/iphonish-tabs/ में पोस्ट किए गए उदाहरण को देख रहा था, वास्तव में यहां उन्होंने रेडियो बटन को टैबव्यू के प्रतिस्थापन के रूप में रखा है।रेडियो बटन के केंद्र में छवि को कैसे आकर्षित करें
लेकिन समस्या यह है कि, मैं छवि को केंद्र में सेट करने में असमर्थ हूं। यह हमेशा बाईं ओर गठबंधन हो रही है।
यहां स्क्रीनशॉट है। मैं चाहता हूं कि मेरा विचार इस तरह दिखना चाहिए, बल्कि इसके बजाय मैं छवि को केंद्र में रखना चाहता हूं।
यह कैसे मेरे लेआउट एक्सएमएल फ़ाइल लग रहा है
<?xml version="1.0" encoding="utf-8"?>
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<FrameLayout android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:padding="20dip"/>
<RadioGroup android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:checkedButton="@+id/allcontacts"
android:gravity="center"
android:id="@+id/contactgroup">
<RadioButton android:id="@+id/allcontacts"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical"
android:background="@drawable/button_radio"/>
<RadioButton
android:id="@+id/categories"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/button_radio"
android:orientation="vertical"
android:layout_gravity="center|right"/>
<RadioButton android:id="@+id/favourites"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="vertical"
android:layout_weight="1"
android:background="@drawable/button_radio"/>
</RadioGroup>
<TabWidget android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="0" android:visibility="gone" />
</LinearLayout>
</TabHost>
कृपया मुझे सलाह है
डिफ़ॉल्ट टैब विजेटउपयोग करने के बाद
बेहतर छवि रेडियो बटन ऊपर की तरह अनुकूलित करने के लिए क्या यह संभव है डिफ़ॉल्ट टैबव्यू में।
आप को पता है एक रेडियो बटन के बीच में एक कस्टम छवि के लिए कैसे या आप कह रहे हैं कि कैसे TabView केंद्रित करने के लिए करना चाहते हैं? सवाल मेरे लिए अस्पष्ट है। – TryTryAgain
नहीं, मैं चाहता हूं कि मेरी छवि केंद्र में हो, सभी – Naruto
हाय @ एलएलएल क्या आप आखिर में इसे प्राप्त करने में सक्षम हैं? –