Now I get a new way. Since I turned off most features of
EditText
, it should be better to think how to "beautify" the ugly white background of
TextView
. And the answer is in the source code: Just adding
android:background="@android:drawable/edit_text"
to a
TextView
makes the same effects. Thanks again Matthew.
android:editable="false"
android:focusable="false"
android:focusableInTouchMode="false"
android:cursorVisible="false"
android:longClickable="false"
<style name="Widget.TextView"> <item name="android:textAppearance">?android:attr/textAppearanceSmall</item> </style>
http://stackoverflow.com/questions/5359420/disable-edittext-editability-and-focus-like-textview