android-er: edittext with drawable icon - EditText 2Bwith 2Bdrawable 2Bicon - Android-er: EditText with drawable icon
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_margin="20dp"
    android:orientation="vertical"
    tools:context="com.blogspot.android_er.androidedittextchanged.MainActivity">

    <FrameLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent">
        <ImageView
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:src="http://android-er.blogspot.com/@android:mipmap/sym_def_app_"/>
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="vertical">
            <TextView
                android:id="@+id/title"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_horizontal"
                android:layout_marginTop="10dp"
                android:layout_marginBottom="10dp"
                android:autoLink="web"
                android:text="http://android-er.blogspot.com/"
                android:textStyle="bold"/>
            <
                android:id="@+id/1"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:text="normal "/>
            <
                android:id="@+id/2"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:text=" with drawableLeft"
                android:drawableLeft="@mipmap/ic_launcher"/>
            <
                android:id="@+id/3"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:text=" with drawableRight"
                android:drawableRight="@mipmap/ic_launcher_round"/>
            <
                android:id="@+id/4"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:text=" with drawableTop"
                android:drawableTop="@mipmap/ic_launcher"/>
            <
                android:id="@+id/"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:text=" with drawableBottom"
                android:drawableBottom="@mipmap/ic_launcher_round"/>
            <
                android:id="@+id/6"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:text=" with background"
                android:background="@mipmap/ic_launcher"/>
        </LinearLayout>
    </FrameLayout>


</LinearLayout>




Source link

LEAVE A REPLY

Please enter your comment!
Please enter your name here