Hi

What do u mean that u cannot select what the row ? in a listview ?

Maybe u can tell what u want ro accomplish,

Regards

Per

On Jan 11, 5:54 pm, jaydip makadia <[email protected]>
wrote:
> Hi,
>
> I m new comers in Android Development. Now I am creating one demo
> application into which i had faced one problem while displaying the
> ListView. Please let me know can i display ListView with AbsoluteLayout.
> Please find the below xml file.
>
> <?xml version="1.0" encoding="utf-8"?>
> <AbsoluteLayout android:id="@+id/widget0"
>     android:layout_width="fill_parent" android:layout_height="fill_parent"
>     android:background="@drawable/background" 
> xmlns:android="http://schemas.android.com/apk/res/android";>
>     <Button android:id="@+id/btnAway" android:layout_width="179px"
>         android:layout_height="68px" android:text="@string/btnAwayCaption"
>         android:layout_x="70px" android:layout_y="12px"
> android:textColor="#0000ff" android:clickable="true">
>     </Button>
>     <TextView android:id="@+id/widget32" android:layout_width="wrap_content"
>         android:layout_height="wrap_content" android:text="RECENTLY USED"
>         android:layout_x="110px" android:layout_y="82px"
> android:textColor="#0000ff">
>     </TextView>
>     *<TableLayout android:id="@+id/recentlyUsedTable"
>         android:layout_width="249px" android:layout_height="95px"
>         android:orientation="vertical" android:layout_x="30px"
>         android:layout_y="102px"
>         android:addStatesFromChildren="true"
>         android:clickable="true"
>         android:focusable="true"
>         android:focusableInTouchMode="true"
>         android:isScrollContainer="true"
>         android:longClickable="true"
>         android:scrollbarAlwaysDrawVerticalTrack="true"
>         android:scrollbars="vertical"
>         android:scrollbarStyle="insideOverlay">
>     <TableRow android:focusable="true" android:clickable="true"> <TextView
> android:id="@+id/one" android:text="One"
> android:textColor="#0000ff"/></TableRow>
>         <TableRow android:focusable="true" android:clickable="true">
> <TextView android:id="@+id/two" android:text="Two"
> android:textColor="#0000ff" /></TableRow>
>         <TableRow android:focusable="true" android:clickable="true">
> <TextView android:id="@+id/three" android:text="Three"
> android:textColor="#0000ff"/></TableRow>
>         <TableRow android:focusable="true" android:clickable="true">
> <TextView android:id="@+id/four" android:text="Four"
> android:textColor="#0000ff" /></TableRow>
>         <TableRow android:focusable="true" android:clickable="true">
> <TextView android:id="@+id/five" android:text="Five"
> android:textColor="#0000ff"/></TableRow>
>         <TableRow android:focusable="true" android:clickable="true">
> <TextView android:id="@+id/six" android:text="Six"
> android:textColor="#0000ff" /></TableRow> -->
>     </TableLayout>*
>     <EditText android:id="@+id/editTextNewMessage"
>         android:layout_width="255px" android:layout_height="105px"
>         android:textSize="18sp" android:layout_x="30px"
> android:layout_y="232px">
>     </EditText>
>     <TextView android:id="@+id/widget33" android:layout_width="wrap_content"
>         android:layout_height="wrap_content" android:text="NEW MESSAGE"
>         android:layout_x="110px" android:layout_y="212px"
> android:textColor="#0000ff">
>     </TextView>
>     <Button android:id="@+id/btnDriving" android:layout_width="195px"
>         android:layout_height="67px"
> android:text="@string/btnDrivingCaption"
>         android:layout_x="60px" android:layout_y="352px"
> android:textColor="#0000ff" android:clickable="true">
>     </Button>
> </AbsoluteLayout>
>
> in above XML file I have to used ListView rather than TableLayout, because
> in tableLayout we can not select row. but in listview can selected the raw
> so.
>
> Please help me how can i used ListView in above XML code. Thanks in advance.
>
> Thanks & Warm Regards,
> Jaydip
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to