CLICK HERE TO EARN MONEY FREE

Saturday, November 24, 2012

HOW TO CREATE A BUTTON BY USING XML IN ANDRODI


<RelativeLayout 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" >



    <Button
        android:id="@+id/button1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true"
        android:layout_marginTop="86dp"
        android:layout_toLeftOf="@+id/textView1"
        android:text="Button" />

</RelativeLayout>
THE LETTER IN BLUE WHICH INDICATES LAYOUT
THE LETTER IN RED WHICH INDICATES BUTTON XML CODE
OR
BY USING GUI IT CAN BE USED DRAG AND DROP METHOD

0 comments:

Post a Comment

 

TEKONOLOGY Copyright © 2011 -- Template created by TEKONOLOGY -- Powered by Blogger