Pooja Dubey
Pooja Dubey

Reputation: 683

Create a Layout in A Scroll View

I am new in Android.I want to create this Layout. Image How I Want to Create

I have tried this but i am not getting how could i do this .

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >

    <RelativeLayout
        android:id="@+id/main_relative_layout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" >



    </RelativeLayout>
</ScrollView>

See i have used ScrollView but i am not able to create the design .Please Help me

Upvotes: 0

Views: 424

Answers (2)

RRTW
RRTW

Reputation: 3190

You need this

<RelativeLayout (root)>

  <LinearHayout (head)>
    ..some other UI tag for page head
  </LinearLayout>

  <ListView />
</RelativeLayout>

And also, try to google "android custom listview" for more detail...

Upvotes: 0

Gal Ben-Haim
Gal Ben-Haim

Reputation: 17803

You should use a custom ListView for this functionality, see example - http://www.androidhive.info/2012/02/android-custom-listview-with-image-and-text/

Upvotes: 1

Related Questions