Showing posts with label xml file. Show all posts
Showing posts with label xml file. Show all posts

Tuesday, December 8, 2015

ANDROID layout with fix header footer and center area

<?xml version="1.0" encoding="utf-8"?>
<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"
   xmlns:ads="http://schemas.android.com/apk/res-auto">
   <RelativeLayout
           android:id="@+id/rl_fixHeader"
   android:layout_width="match_parent"
   android:layout_height="30dp"
   android:layout_alignParentTop="true"
   android:background="#123456"
   android:gravity="center"      
                    android:layout_gravity="center">
   <TextView
       android:id="@+id/fix_header_text"
       android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
       android:text="@string/fix_header_msg"        
       android:textSize="25sp"/>
   </RelativeLayout>
   <RelativeLayout
           android:id="@+id/rl_fix_footer"
   android:layout_width="match_parent"
   android:layout_height="30dp"
   android:layout_alignParentBottom="true"
   android:background="#654321"
   android:gravity="center"      
                    android:layout_gravity="center">
   <TextView
       android:id="@+id/fix_footer_text"
       android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
       android:text="@string/footer_msg"
       android:textColor="#FFFFFF"
       android:gravity="center"
       android:textSize="25sp"/>
   </RelativeLayout>
   <ScrollView
   android:id="@+id/sv_scroll_view"
   android:layout_width="fill_parent"
   android:layout_height="fill_parent"
   android:layout_above="@+id/rl_fix_footer"
   android:layout_below="@+id/rl_fixHeader"
   android:fillViewport="true">  
<LinearLayout
   android:id="@+id/ll_myScrollLayout"
   android:orientation="vertical"
   android:layout_width="match_parent"
   android:layout_height="wrap_content"
   android:background="#FFFFFF"
   android:fillViewport="true">
   <TextView
       android:id="@+id/tvBodytext"
       android:layout_width="wrap_content"
               android:layout_height="wrap_content"
       android:text="@string/body_msg"      
       android:gravity="center"
       android:textSize="25sp"/>
</LinearLayout>
   </ScrollView>
</RelativeLayout>  

Scrum and Scrum master

Scrum  Scrum is a framework which helps a team to work together.  It is like a rugby team (the scrum name comes from rugby game). Scrum enco...