मैं एडिटटेक्स्ट इनपुट गतिविधि बनाने के लिए here वर्णित विधि का पालन कर रहा हूं। लेकिन दृश्य स्क्रीन की चौड़ाई को भरता नहीं है। मैं स्क्रीन चौड़ाई फिट करने के लिए कैसे कह सकता हूँ?स्क्रीन चौड़ाई के लिए एक थीमाधारित गतिविधि चौड़ाई कैसे सेट करें?
alt text http://img405.imageshack.us/img405/5057/activitythemed.png
<activity android:name="TextEntryActivity"
android:label="My Activity"
android:theme="@android:style/Theme.Dialog"/>
-
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:orientation="vertical"
android:gravity="right"
android:layout_height="wrap_content">
<EditText
android:text="@+id/txtValue"
android:id="@+id/txtValue"
android:layout_width="fill_parent"
android:layout_height="wrap_content"></EditText>
<Button
android:text="Done"
android:id="@+id/btnDone"
android:layout_width="wrap_content"
android:layout_height="wrap_content"></Button>
</LinearLayout>
मुझे संदेह है कि यह एक डुप्लिकेट है। यह प्रश्न संवाद थीम्ड गतिविधि के बारे में है जो एक संवाद के समान नहीं है। – jimmy0251