I have TextView where I apply the EditText style to it, as follows:
<TextView android:id="@+id/textView1" android:layout_width="match_parent"
android:layout_height="wrap_content" android:hint="Click here"
android:theme="@android:style/Widget.EditText"
android:singleLine="true" android:layout_marginTop="16dp"
android:onClick="openDialog"
android:clickable="true"
android:textAppearance="?android:attr/textAppearanceMedium" />
In Design mode everything looks fine (API 22), but on the device (API16), the TextView doesn't have the style of the EditText.
What am I missing?
EDIT
Using Api 19 or Api 16 in design mode, the TextView style is not the same as the EditText. So it's API-related.
Do I need an appcompat jar?