new list marker
This commit is contained in:
parent
4575b08964
commit
15f307a155
8 changed files with 8 additions and 8 deletions
BIN
OsmAnd/res/drawable-hdpi/list_activities_background_pushed.png
Normal file
BIN
OsmAnd/res/drawable-hdpi/list_activities_background_pushed.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.3 KiB |
BIN
OsmAnd/res/drawable-hdpi/list_activities_background_unpushed.png
Normal file
BIN
OsmAnd/res/drawable-hdpi/list_activities_background_unpushed.png
Normal file
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 |
|
@ -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>
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue