ऐसा लगता है कि यह कभी भी सबसे अजीब चीज है जिसे मैंने कभी पार किया है।एंड्रॉइड एडिटटेक्स्ट संकेत दिखाई नहीं देता
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<EditText
android:id="@+id/GuessAppEditText"
android:lines="1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:gravity="center_horizontal"
android:inputType="textCapWords"
android:hint="@string/Hint" />
</RelativeLayout>
EditText
की hint
नहीं दिखाया गया है:
यहाँ एक लेआउट है।
अगर मैं android:gravity="center_horizontal"
या android:inputType="textCapWords"
हटा देता हूं, तो संकेत दिखाई देता है।
मुझे बिल्कुल पता नहीं है कि gravity
और textCapWords
hint
के साथ क्या करने के लिए है। क्या यह एक और एंड्रॉइड बग है या क्या मैं कुछ गलत कर रहा हूं? पूर्व मामले में, एक कामकाज क्या होगा? मैं चाहता हूं कि मेरा टेक्स्ट केंद्र-गठबंधन और पूंजीकृत हो और संकेत दिखाया जाए। या मैं गरीब एंड्रॉइड से बहुत ज्यादा चाहता हूँ?
संबंधित सवाल देखें http://stackoverflow.com/a/3643494/1134705: सायन, संकेत रंग की स्थापना करके संकेत प्रदर्शन कर देगा – jnthnjns
क्या आपने संकेत को हटाने और इसे प्रोग्रामेटिक रूप से सेट करने का प्रयास किया है, यह देखने के लिए कि क्या यह एक कामकाज है? – jnthnjns
एंड्रॉइड: गुरुत्वाकर्षण = "center_horizontal" समस्या बनाता है ... –