new list marker

This commit is contained in:
Pavol Zibrita 2012-06-02 14:34:37 +02:00
parent 4575b08964
commit 15f307a155
8 changed files with 8 additions and 8 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 698 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 531 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 524 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

View file

@ -2,10 +2,10 @@
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<!-- checked -->
<item android:state_expanded="true" android:drawable="@drawable/list_activities_dot_marker1_pressed"/>
<!-- unchecked empty -->
<item android:state_expanded="false" android:state_empty="false" android:drawable="@drawable/list_activities_dot_marker1_content"/>
<!-- unchecked nonempty -->
<item android:drawable="@drawable/list_activities_dot_marker1_empty"/>
<item android:state_expanded="true" android:drawable="@drawable/list_activities_background_pushed"/>
<!-- unchecked noempty -->
<item android:state_expanded="false" android:state_empty="false" android:drawable="@drawable/list_activities_background_unpushed"/>
<!-- unchecked nempty -->
<item android:drawable="@drawable/list_activities_dot_marker1_unpressed"/>
</selector>

View file

@ -11,12 +11,12 @@ public abstract class OsmandBaseExpandableListAdapter extends BaseExpandableList
ImageView indicator = (ImageView) row.findViewById(R.id.explist_indicator);
if (!isExpanded) {
if (getChildrenCount(groupPosition) == 0) {
indicator.setImageResource(R.drawable.list_activities_dot_marker1_empty);
indicator.setImageResource(R.drawable.list_activities_dot_marker1_unpressed);
} else {
indicator.setImageResource(R.drawable.list_activities_dot_marker1_content);
indicator.setImageResource(R.drawable.list_activities_background_unpushed);
}
} else {
indicator.setImageResource(R.drawable.list_activities_dot_marker1_pressed);
indicator.setImageResource(R.drawable.list_activities_background_pushed);
}
}