FOODCOURT ANDROID APP.

FIRST ANDROID APP CODING



ANDROID APP FOODCOURTS
NOW I M GOING TO START APP AND CREATE FIRST ACTIVITY AND THE NAME IS HOME.ACTIVITY AND THE ALL THE STEPS IS OVER HERE.



Create Linear Layout for Home Activity
  • Create Relative Layout & set Attributes
  • Create Action Bar via Relative Layout
  • Understand Design Basics for Action Bar
  • Image Button & Its Attributes
  • Handling Click Event
  • Add Comments





CREATE LAYOUT : (activity_home.xml)




CREATE ACTION BAR 


<RelativeLayout
android:layout_height="56dp" 
android:layout_width="fill_parent"
android:background="#7D26CD" 
android:layout_margin="1dp">

<TextView
android:layout_height="wrap_content" 
android:layout_width="wrap_content"
android:id="@+id/textView"  
android:layout_centerHorizontal="true"
android:layout_centerVertical="true" 
android:textColor="#FFFFF0"
android:textStyle="bold" 
android:textSize="30sp"
android:text="HOME"/>

<ImageButton
android:layout_height="wrap_content" 
android:layout_width="wrap_content"
android:background="#7D26CD" 
android:id="@+id/imageButton"

android:layout_marginEnd="25dp" 
android:layout_marginRight="25dp"
android:layout_toStartOf="@+id/imageButton2" 
android:layout_toLeftOf="@+id/imageButton2" 
android:layout_alignTop="@+id/imageButton2"
android:src="@drawable/ic_action_search"/>

<ImageButton 
android:layout_height="wrap_content" 
android:layout_width="wrap_content" 
android:background="#7D26CD" android:id="@+id/imageButton2" 
android:onClick="" android:src="@drawable/ic_action_settings" android:layout_alignParentEnd="true"
android:layout_alignParentRight="true" 
android:layout_alignBottom="@+id/textView"/>

<ImageButton 
android:layout_height="wrap_content" 
android:layout_width="wrap_content" 
android:background="#7D26CD" 
android:id="@+id/imageButton3" 
android:src="@drawable/ic_action" 
android:layout_alignParentStart="true" 
android:layout_alignParentLeft="true" 
android:layout_alignParentBottom="true"/>
</RelativeLayout>





more coding................ wait....













Comments

Popular posts from this blog

HELLO WORLD CODING ON ANDORID