1. Check out our companion app, Forums for Android! Download from Google Play

how to place line of text at end of grid view content.

Discussion in 'Application Development' started by senthilmg, Aug 27, 2010.

  1. senthilmg

    senthilmg New Member
    Thread Starter
    5

    Aug 26, 2010
    4
    0
    5
    friend's,
    i have a task to show images in grid ,i got the view what i needed but i have to place **click here to view more..**..at bottom
    Here i'm facing problem to place the text below image has a common,
    for example
    ----------------------
    | img1 img2 img3
    | img4 ... ...
    |
    | click here to iew more..

    how can i get view has like above,

    here my code

    <merge android:layout_width="wrap_content" android:layout_height="340dip" xmlns:android="http://schemas.android.com/apk/res/android">
    <LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content">
    <GridView
    android:id="@+id/jr_lookbook_grid" android:layout_width="fill_parent"
    android:layout_height="320dip" android:numColumns="4"
    android:verticalSpacing="10dp" android:horizontalSpacing="10dp"
    android:columnWidth="90dp" android:stretchMode="columnWidth"
    android:adjustViewBounds="true"
    android:background="@drawable/shape"
    android:gravity="center" android:layout_weight="1"
    />
    </LinearLayout>
    <TextView android:text="Next" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@color/gold"/>
    </merge>
    here code for imageview xml
    <RelativeLayout android:id="@+id/RelativeLayout01" android:layout_width="100dip" android:background="@color/white"
    android:layout_height="80dip" xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_gravity="center_horizontal">
    <ImageView android:id="@+id/jr_lb_list_icon" android:layout_width="60dip" android:layout_height="65dip"
    android:scaleType="fitCenter" android:background="@drawable/border"
    android:layout_centerInParent="true" />

    </RelativeLayout>
    from where i to place the text,

    thanks in advance.
     

    Advertisement

Share This Page

Loading...