I have a somewhat simple home screen, which I'm beginning to out grow.  The
view itself looks like the home screen to the Facebook app, but here's a
screen shot for reference (
http://chriswstewart.com/wp-content/uploads/2010/08/ff-home-60.png).

Essentially what I have is a parent LinearLayout, with three more
LinearLayouts inside of it.  In one of those three contains the core
functionality buttons of my application.  That's the area I want to scroll.
 I've included the layout of this view below.  I have tried adding
"android:scrollbars" to the LinearLayout in question, but that didn't do the
trick.  Any feedback (on the overall structure of this UI as well!) is
greatly appreciated.  Thanks.


<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android";
    android:id="@+id/home_root"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">

    <LinearLayout style="@style/TitleBar">
        <TextView
         android:id="@+id/txtTitle"
         style="@style/TitleBarText" />
    </LinearLayout>

    <LinearLayout
        android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:padding="6dip"
        android:scrollbars="vertical">
        <LinearLayout
            android:orientation="horizontal"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_weight="1">
            <Button android:id="@+id/btnMyMfl"
                style="@style/HomeButton"
                android:text="My MFL"
                android:drawableTop="@drawable/icon_mfl" />
            <Button android:id="@+id/btnMflScores"
                style="@style/HomeButton"
                android:text="My MFL Scores"
                android:drawableTop="@drawable/icon_radp" />
        </LinearLayout>

        ....... (more two button groups of LinearLayout elements here)
......
    </LinearLayout>

    <LinearLayout
        android:id="@+id/mflSpot"
        android:layout_width="fill_parent"
        android:layout_height="@dimen/mflSpot_height"
        android:orientation="horizontal"
        android:background="#ffffff"
        android:gravity="center">
        <ImageView
         android:id="@+id/imgMflSpot"
         android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:background="@drawable/mflspot" />
    </LinearLayout>
</LinearLayout>


--
Chris Stewart
http://chriswstewart.com

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to