I think I have 2 methode:

- Take my list(icon+text) with my class extends ListActivity without
buttons and i will find a methode to add my button later

- Or conitnuous my code that i made with buttons and my class extends
Acitvity and find a methode to add icon for each String.

What do you think about please mark ????

Dany

On Aug 10, 3:27 pm, Dany BREARD <[email protected]> wrote:
> thanks Mark
>
> I think I have to use listView with my class extends Activty because
> in my layout I add 2 buttons at the bottom.
> Do you Think I can't use my class extends ListActivity.
>
> here my xml. And I use ListView and not TextView, is it wrong?
>
> *****************************************************************************************************************************************
> <?xml version="1.0" encoding="utf-8"?>
> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/
> android"
>         android:id="@+id/FrameLayout01"
>         android:layout_width="fill_parent"
>         android:layout_height="fill_parent">
>
>         <FrameLayout
>                 android:id="@+id/FrameLayout02"
>                 android:layout_width="fill_parent"
>                 android:layout_height="fill_parent"
>                 android:layout_marginBottom="25pt"
>                 android:background="@drawable/text_bleu">
>
>                 <ListView
>                         android:id="@+id/ListVoicemail"
>                         android:layout_height="wrap_content"
>                         android:layout_width="fill_parent">
>                 </ListView>
>
>         </FrameLayout>
>
>         <LinearLayout
>                 android:id="@+id/LinearLayout01"
>                 android:layout_height="wrap_content"
>                 android:layout_width="fill_parent"
>                 android:layout_gravity="bottom"
>                 android:gravity="center_horizontal"
>                 android:background="@drawable/black1">
>
>                 <Button
>                         android:layout_width="wrap_content"
>                         android:layout_height="wrap_content"
>                         android:id="@+id/repondre"
>                         android:text="Répondre"
>                         android:textStyle="bold"
>                         android:gravity="center">
>                 </Button>
>
>                 <Button
>                         android:layout_width="wrap_content"
>                         android:layout_height="wrap_content"
>                         android:id="@+id/effacer"
>                         android:text="   Effacer   "
>                         android:textStyle="bold">
>                 </Button>
>
>         </LinearLayout>
>
> </FrameLayout>
> **********************************************************************************************
>
> Sorry but I don't want to waste my time and I want to have the better
> methode to make what I want,
>
>             list(text+icon)
>                     +
>           button1  button2
>
> In your pdf, your make just one  layout add text+icon
>
> But about me, there are buttons in the same layout, I think its wrong
> because when i add imageView there is icon lonely on the left of my
> list.
>
> here :
> **************************************************************************************************************************************************************
> <?xml version="1.0" encoding="utf-8"?>
>
> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/
> android"
>         android:id="@+id/FrameLayout01"
>         android:layout_width="fill_parent"
>         android:layout_height="fill_parent">
>
>         <FrameLayout
>                 android:id="@+id/FrameLayout02"
>                 android:layout_width="fill_parent"
>                 android:layout_height="fill_parent"
>                 android:layout_marginBottom="25pt"
>                 android:background="@drawable/text_bleu">
>
>                 <LinearLayout
>                         android:layout_width="fill_parent"
>                         android:layout_height="wrap_content"
>                         android:orientation="horizontal">
>
>                         <ImageView
>                                 android:id="@+id/icon"
>                                 android:layout_width="22px"
>                                 android:paddingLeft="2px"
>                                 android:paddingRight="2px"
>                                 android:paddingTop="2px"
>                                 android:layout_height="wrap_content"
>                                 android:src="@drawable/check32"
>                         />
>
>                         <ListView
>                                 android:id="@+id/ListVoicemail"
>                                 android:layout_height="wrap_content"
>                                 android:layout_width="fill_parent">
>                         </ListView>
>
>                 </LinearLayout>
>
>         </FrameLayout>
>
>         <LinearLayout
>                 android:id="@+id/LinearLayout01"
>                 android:layout_height="wrap_content"
>                 android:layout_width="fill_parent"
>                 android:layout_gravity="bottom"
>                 android:gravity="center_horizontal"
>                 android:background="@drawable/black1">
>
>                 <Button
>                         android:layout_width="wrap_content"
>                         android:layout_height="wrap_content"
>                         android:id="@+id/repondre"
>                         android:text="Répondre"
>                         android:textStyle="bold"
>                         android:gravity="center">
>                 </Button>
>
>                 <Button
>                         android:layout_width="wrap_content"
>                         android:layout_height="wrap_content"
>                         android:id="@+id/effacer"
>                         android:text="   Effacer   "
>                         android:textStyle="bold">
>                 </Button>
>
>         </LinearLayout>
>
> </FrameLayout>
> ***********************************************************************************************************************************************************
>
> Dany
>
> On Aug 10, 1:40 pm, Mark Murphy <[email protected]> wrote:
>
> > Dany BREARD wrote:
> > > Hi Mark
>
> > > Even if it's the same like what you said, I guess I have to make my
> > > own getView(int position, View convertView,
> > > ViewGroup parent)
>
> > >http://developer.android.com/intl/fr/guide/samples/ApiDemos/src/com/e...
>
> > > Do you think its just possible to change severale thinks on the
> > > List14.java or I Have to create my new own getView(...).
>
> > Implementing getView() is not that hard. Here is a link to an excerpt
> > from one of my books that covers the process:
>
> >http://commonsware.com/Android/excerpt.pdf
>
> > --
> > Mark Murphy (a Commons 
> > Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> > Android 1.5 Programming Books:http://commonsware.com/books.html
--~--~---------~--~----~------------~-------~--~----~
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