Hi all, I'm trying to use the new SlidingDrawer component. My goal is to display some screen that user can slide. I created the following xml based on an example where the icon move from right to left. I replace the icon (ImageView) by a LinearLayout - for the handle - and the content by another LinearLayout. I set different element in the handle - to display my content - I don't understand where my content have to be placed (handle or content). The result is a poor result and doesn't correspond to my requirement :(
Does somebody can help me a little bit on this? <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:id="@+id/screenContentFeed"> <SlidingDrawer android:id="@+id/drawer" android:layout_width="fill_parent" android:layout_height="fill_parent" android:handle="@+id/handle" android:content="@+id/content" android:orientation="horizontal"> <LinearLayout android:id="@id/handle" android:layout_width="320px" android:orientation="horizontal" android:layout_height="fill_parent" /> <LinearLayout android:id="@id/content" android:layout_width="fill_parent" android:layout_height="fill_parent" /> </SlidingDrawer> </RelativeLayout> In my Java code LinearLayout gv = (LinearLayout)findViewById(R.id.handle); for (int j=0;j<5;j++){ TextView tv = new TextView(this); tv.setBackgroundColor(Color.WHITE); tv.setLayoutParams(new LinearLayout.LayoutParams(160, LayoutParams.WRAP_CONTENT)); tv.setText("coucou:" + j); gv.addView(tv); } --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

