mardi 12 mai 2015

Redesigning Loging page with arrow

I need to add a image in login page has shown below ,i had design a page but i need to redesign has shown in below image replacing login button to a arrow,how to add a image right to textboxes ?

enter image description here

and i designed the page without arrow has

<LinearLayout xmlns:android="http://ift.tt/nIICcg"
    xmlns:andriod="http://ift.tt/LrGmb4"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/loginbackmain"
    android:orientation="vertical">


    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_margin="5dp"
        android:orientation="vertical" >

        <ImageView
            android:id="@+id/imageView1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:src="@drawable/ic_launcher" />
    </LinearLayout>
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_margin="5dp"
        android:layout_weight="1"
        android:gravity="center"
        android:orientation="vertical" >
       <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_margin="10dp"
        android:gravity="center"
        android:background="@drawable/loginformback"
        android:orientation="vertical"
        android:weightSum="1">

          <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="horizontal" >

            <EditText
                android:id="@+id/editText1"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_margin="15dp"
                android:layout_weight="1"
                android:drawableLeft="@android:drawable/ic_menu_day"
                android:ems="10"
                android:hint="username" >

                <requestFocus />
            </EditText>
        </LinearLayout>

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="horizontal"
            >

            <EditText
                android:id="@+id/editText2"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_margin="15dp"
                android:drawableLeft="@android:drawable/ic_menu_day"
                android:ems="10"
                android:hint="password"
                android:inputType="textPassword" />
        </LinearLayout>


        <Button
            android:id="@+id/button1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:layout_margin="5dp"
            android:onClick="login"
            android:text="Login"
            andriod:background="#A0522D"/>
           <ProgressBar
               android:id="@+id/progressBar1"
               android:layout_width="wrap_content"
               android:layout_height="wrap_content"
               android:layout_gravity="center_horizontal"
               android:visibility="invisible"
               />

       </LinearLayout>
</LinearLayout>
</LinearLayout>

Aucun commentaire:

Enregistrer un commentaire