Norway


Examples of Setting and of :
Set background and alpha of EditText - Set 2Bbackground 2Band 2Balpha 2Bof 2BEditText - Set background and alpha of EditText
<?xml version="1.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__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=""
                android:text="http://android-er.blogspot.com/"
                android:textStyle="bold"/>
            <EditText
                android:id="@+id/edittext1"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:textSize="28dp"
                android:text="normal EditText"/>
            <EditText
                android:id="@+id/edittext2"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:text="EditText with background #50FFFFFF"
                android:textSize="28dp"
                android:background="#50FFFFFF"/>
            <EditText
                android:id="@+id/edittext3"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:text="EditText with background #FFFFFF"
                android:textSize="28dp"
                android:background="#FFFFFF"/>
            <EditText
                android:id="@+id/edittext4"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:text="EditText with background #FFFFFF and alpha=0.5"
                android:textSize="28dp"
                android:background="#FFFFFF"
                android:alpha="0.5"/>
        </LinearLayout>
    </FrameLayout>
</LinearLayout>



Source link

LEAVE A REPLY

Please enter your comment!
Please enter your name here