android - TextView ignoring EditText style on device -
i have textview apply edittext style it, 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 looks fine (api 22), on device (api16), textview doesn't have style of edittext.
what missing?
edit
using api 19 or api 16 in design mode, textview style not same edittext. it's api-related.
do need appcompat jar?
Comments
Post a Comment