1. Download our Official Android App: Forums for Android!

Apps adding a row containing 4 butons after list of itesms

Discussion in 'Android Development' started by malayappa, Mar 27, 2010.

  1. malayappa

    malayappa Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Mar 27, 2010

    Mar 27, 2010
    1
    0
    5
    Hi all
    we have list of items displaying following is code

    Code (Text):
    1.  
    2. <?xml version="1.0" encoding="utf-8"?>
    3. <TextView xmlns:android="http://schemas.android.com/apk/res/android"
    4.     android:layout_width="fill_parent"
    5.     android:layout_height="fill_parent"
    6.     android:padding="10dp"
    7.     android:textSize="16sp" android:background="@color/white">
    8.        
    9. </TextView>
    10.  
    11.  
    after this list we need to add a row containing 4 buttons

    please provide some help

    Thanks&Regards
     

    Advertisement

  2. KlaymenDK

    KlaymenDK Android Expert
    Rank:
    None
    Points:
    143
    Posts:
    1,217
    Joined:
    May 29, 2009

    May 29, 2009
    1,217
    130
    143
    Denmark
    Welcome to the forum! :D

    Have you read the official documentation on layouts?

    What you need is basically:
    -- one LinearLayout, in vertical orientation, with two sub-elements:
    ---- your existing TextView;
    ---- another LinearLayout, in horizontal orientation, with your four buttons as further sub-elements.
    That should put four buttons side-by-side underneath your TextView.

    :) Good luck!
     

Share This Page

Loading...