Open top menu

 

 Example- How to Show Plaintext as an EditText in Android?

 style="@android:style/Widget.DeviceDefault.EditText"

 .......................................................................................................................................................................................................................
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
   
android:layout_width="match_parent"
   
android:layout_height="match_parent"
   
android:orientation="vertical">

    <
TextView
       
android:id="@+id/textView55"
       
android:layout_width="wrap_content"
       
android:layout_height="wrap_content"
       
android:layout_gravity="center_horizontal"
       
android:text="New Text show"
       
android:textSize="35dp"
       
android:textStyle="bold" />

    <
TextView
       
android:id="@+id/textView5"
       
style="@android:style/Widget.DeviceDefault.EditText"
       
android:layout_width="wrap_content"
       
android:layout_height="wrap_content"
       
android:layout_marginTop="100dp"
       
android:layout_gravity="center_horizontal"
       
android:text="New Text show"
       
android:textSize="35dp"
       
android:textStyle="bold" />
</
LinearLayout>
.............................................................................................





0 comments