Examples of Setting and of :
<?xml version=".0" encoding="utf-8"?>
<LinearLayout xmlns:="http://schemas..com/apk/res/"
    xmlns:tools="http://schemas..com/tools"
    :layout_width="match_parent"
    :layout_height="match_parent"
    :layout_margin="20dp"
    :orientation="vertical"
    tools:context="com.blogspot._er.androidedittextchanged.MainActivity">

    <FrameLayout
        :layout_width="match_parent"
        :layout_height="match_parent">
        <ImageView
            :layout_width="match_parent"
            :layout_height="match_parent"
            :src="http://-er.blogspot.com/@:mipmap/sym_def_app_icon"/>
        <LinearLayout
            :layout_width="match_parent"
            :layout_height="match_parent"
            :orientation="vertical">
            <TextView
                :id="@+id/title"
                :layout_width="wrap_content"
                :layout_height="wrap_content"
                :layout_gravity="center_horizontal"
                :layout_marginTop="10dp"
                :layout_marginBottom="10dp"
                :autoLink="web"
                :text="http://-er.blogspot.com/"
                :textStyle="bold"/>
            <EditText
                :id="@+id/edittext1"
                :layout_width="fill_parent"
                :layout_height="wrap_content"
                :textSize="28dp"
                :text="normal EditText"/>
            <EditText
                :id="@+id/edittext2"
                :layout_width="fill_parent"
                :layout_height="wrap_content"
                :text="EditText with background #50FFFFFF"
                :textSize="28dp"
                :background="#50FFFFFF"/>
            <EditText
                :id="@+id/edittext3"
                :layout_width="fill_parent"
                :layout_height="wrap_content"
                :text="EditText with background #FFFFFF"
                :textSize="28dp"
                :background="#FFFFFF"/>
            <EditText
                :id="@+id/edittext4"
                :layout_width="fill_parent"
                :layout_height="wrap_content"
                :text="EditText with background #FFFFFF and alpha=0.5"
                :textSize="28dp"
                :background="#FFFFFF"
                :alpha="0.5"/>
        </LinearLayout>
    </FrameLayout>
</LinearLayout>



Source link
thanks you RSS link
( http://android-er.blogspot.com/2017/07/-background-and-alpha-of-edittext.html)

LEAVE A REPLY

Please enter your comment!
Please enter your name here