You say in your 2nd post that you want to replace the table layout with a
list view. Is this after the user does something..like select something or
is done entering something and presses a button.. you want to hide the table
layout view and show some new stuff.. the list view?

I would strongly recommend you pick up Mark Murphy's books online, read them
all the way through. It will most likely help you.


"I want replace TableLayout with ListView. But i don't know how i can do
it.. I had try put simple ListView , into that ListView i had also put two
static TextView but when i run my application that time i can see the list."


On Wed, Jan 13, 2010 at 4:25 PM, Justin Anderson <[email protected]>wrote:

> Any reason why you are using AbsoluteLayout?  I believe it has been
> deprecated...
>
> On Jan 13, 2010 10:30 AM, "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 Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> [email protected]<android-beginners%[email protected]>
>
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> [email protected]<android-beginners%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>
>
-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to