On 02/27/2012 07:25 PM, Bluemercury wrote:
Hi again Kostya, seems that the cursor focus isnt working althought that's not the most important thing it still is default behaviour so im wondering why it doesnt work. Also the extra layout was something like this?:


<LinearLayout android:id="@+id/LinearLayout01"
android:layout_width="fill_parent"
android:layout_height="45dip"
xmlns:android="http://schemas.android.com/apk/res/android";
*android:background="@drawable/expandable_group_item">*
*<LinearLayout*
*   android:layout_width="fill_parent" *
*android:layout_height="fill_parent"*
*android:duplicateParentState="true">*

Right - that's the backgrounds "stepping on each other" that I mentioned earlier.

The extra layout should be set up like this:

<LinearLayout android:id="@+id/LinearLayout01"
android:layout_width="fill_parent"
android:layout_height="45dip"
xmlns:android="http://schemas.android.com/apk/res/android";>
<LinearLayout
   android:layout_width="fill_parent"
android:layout_height="fill_parent"
*android:background="@drawable/expandable_group_item"*
android:duplicateParentState="true">

The top-level layout will have its background modified by the expandable list view, to show selected / pressed state.

The second layout has your custom color / gradient, and because it becomes transparent when the item is selected / pressed, the background of the top-level item will show through.

-- Kostya

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to