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

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -