1
android:inputType="textCapSentences"
適用於EditText
。 TextView
有相同的功能嗎?android TextView相當於textCapSentences
android:inputType="textCapSentences"
適用於EditText
。 TextView
有相同的功能嗎?android TextView相當於textCapSentences
// try this
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@android:style/Widget.TextView"
android:text="hi how are you"
android:background="@android:color/transparent"
android:inputType="textCapSentences"/>
依靠Android API,你能做到這一點,但我已經嘗試過,它不工作,所以我繼續搜索,最好的辦法是我們必須定製的TextView
類:讓嘗試this
編輯:或者你可以用EditText
哪個不能editable
:) 格魯克!
很酷的想法。但它不起作用。 –