Fix 3 dots menu in night theme

This commit is contained in:
PavelRatushny 2017-08-17 10:29:32 +03:00
parent e093ed94f2
commit 227e58780a
4 changed files with 6 additions and 3 deletions

View file

@ -273,7 +273,7 @@
android:paddingLeft="16dp"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:src="@drawable/ic_overflow_menu_dark"/>
tools:src="@drawable/ic_overflow_menu_dark"/>
<net.osmand.plus.widgets.TextViewEx
android:background="?attr/selectableItemBackground"

View file

@ -291,7 +291,7 @@
android:paddingLeft="16dp"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:src="@drawable/ic_overflow_menu_dark"/>
tools:src="@drawable/ic_overflow_menu_dark"/>
<net.osmand.plus.widgets.TextViewEx
android:background="?attr/selectableItemBackground"

View file

@ -273,7 +273,7 @@
android:paddingLeft="16dp"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:src="@drawable/ic_overflow_menu_dark"/>
tools:src="@drawable/ic_overflow_menu_dark"/>
<net.osmand.plus.widgets.TextViewEx
android:background="?attr/selectableItemBackground"

View file

@ -1347,6 +1347,7 @@ public class TrackSegmentFragment extends OsmAndListFragment {
});
}
if (!gpxItem.group.getTrack().generalTrack) {
((ImageView) view.findViewById(R.id.overflow_menu)).setImageDrawable(ic.getThemedIcon(R.drawable.ic_overflow_menu_dark));
view.findViewById(R.id.overflow_menu).setVisibility(View.VISIBLE);
view.findViewById(R.id.overflow_menu).setOnClickListener(new View.OnClickListener() {
@Override
@ -1440,6 +1441,7 @@ public class TrackSegmentFragment extends OsmAndListFragment {
});
}
if (!gpxItem.group.getTrack().generalTrack) {
((ImageView) view.findViewById(R.id.overflow_menu)).setImageDrawable(ic.getThemedIcon(R.drawable.ic_overflow_menu_dark));
view.findViewById(R.id.overflow_menu).setVisibility(View.VISIBLE);
view.findViewById(R.id.overflow_menu).setOnClickListener(new View.OnClickListener() {
@Override
@ -1532,6 +1534,7 @@ public class TrackSegmentFragment extends OsmAndListFragment {
});
}
if (!gpxItem.group.getTrack().generalTrack) {
((ImageView) view.findViewById(R.id.overflow_menu)).setImageDrawable(ic.getThemedIcon(R.drawable.ic_overflow_menu_dark));
view.findViewById(R.id.overflow_menu).setVisibility(View.VISIBLE);
view.findViewById(R.id.overflow_menu).setOnClickListener(new View.OnClickListener() {
@Override