How to make an EditText look like a TextView that is done in Java but not in XML..
I have seen how to do it using xml file like
style=\"@android:styl
This was all I needed to create the effect.
In code:
ET.setFocusable(false);
And in layout:
android:background="@android:color/transparent"
Setting the background in the layout completely removes the under bar, as apposed to just hiding it in code.
Make it editable again with:
ET.setFocusableInTouchMode(true);
EditText Et; // initialize your edittext//
Et.setCursorVisible(false);
Et.setLongClickable(false);
Et.setClickable(false);
Et.setFocusable(false);
Et.setSelected(false);
Et.setKeyListener(null);
Et.setBackgroundResource(android.R.color.transparent);
And you'll never see it like an EditText again.