Thank you both very much.

I am such a newbie. I have been stuck on this point for weeks.

Very appreciated.

On Oct 2, 4:44 am, Ramaraju naga <[email protected]> wrote:
> even I did, it works fine.
>
> see this code
>
>   ListView menuList =(ListView) findViewById(R.id.ListView_Menu);
>
>         String[] items={ getResources().getString(R.string.menu_item_play),
>                 getResources().getString(R.string.menu_item_scores),
>                 getResources().getString(R.string.menu_item_settings),
>                 getResources().getString(R.string.menu_item_help) };
>
>         ArrayAdapter<String> adapt = new ArrayAdapter<String>(this,
> R.layout.*menu_item*,items);
>         menuList.setAdapter(adapt);
>
> i think ur mistake where i put in redcolor. it is xml how the items should
> display.
>
> the xml look like (menu_item.xml)
> <TextView
>     xmlns:android="http://schemas.android.com/apk/res/android";
>     android:layout_width="fill_parent"
>     android:textSize="@dimen/menu_item_size"
>     android:text="test string"
>     android:layout_gravity="center_horizontal"
>     android:layout_height="wrap_content"
>     android:shadowRadius="5"
>     android:gravity="center"
>     android:textColor="@color/menu_color"
>     android:shadowColor="@color/menu_glow"
>     android:shadowDy="3"
>     android:shadowDx="3" />
>
> Thanks & Regards
> Ramaraju
>
> On Sat, Oct 2, 2010 at 8:59 AM, JPBerrocal <[email protected]> wrote:
> > Your problem in not in the listview, is in the layout.
> > More precisely the ImageView03 is using all the space available in the
> > screen so your listview doesnt show.
>
> > Use wrap_content or specify the correct size of the image instead.
>
> > <ImageView android:id="@+id/ImageView03"
> >     android:layout_alignParentBottom="true"
> >     android:scaleType="fitEnd"
> >      android:layout_width="wrap_content"
> >     android:layout_height="wrap_content">
> > </ImageView>
>
> > --
> > 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]<android-developers%[email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
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