Fix context menu UI
This commit is contained in:
parent
3694b2b34e
commit
6c57f69291
2 changed files with 16 additions and 12 deletions
|
@ -99,56 +99,60 @@
|
|||
android:layout_gravity="bottom"
|
||||
android:background="@android:color/white">
|
||||
|
||||
<ImageButton
|
||||
<ImageView
|
||||
android:id="@+id/context_menu_route_button"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_weight="1"
|
||||
android:scaleType="center"
|
||||
android:src="@drawable/map_directions"
|
||||
android:tint="?attr/dashboard_general_button_text_color"/>
|
||||
android:tint="@color/actionbar_dark_color"/>
|
||||
|
||||
<View
|
||||
android:layout_width="1px"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#c9c9c9"/>
|
||||
|
||||
<ImageButton
|
||||
<ImageView
|
||||
android:id="@+id/context_menu_fav_button"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_weight="1"
|
||||
android:scaleType="center"
|
||||
android:src="@drawable/ic_action_fav_dark"
|
||||
android:tint="?attr/dashboard_general_button_text_color"/>
|
||||
android:tint="@color/actionbar_dark_color"/>
|
||||
|
||||
<View
|
||||
android:layout_width="1px"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#c9c9c9"/>
|
||||
|
||||
<ImageButton
|
||||
<ImageView
|
||||
android:id="@+id/context_menu_share_button"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_weight="1"
|
||||
android:scaleType="center"
|
||||
android:src="@drawable/abc_ic_menu_share_mtrl_alpha"
|
||||
android:tint="?attr/dashboard_general_button_text_color"/>
|
||||
android:tint="@color/actionbar_dark_color"/>
|
||||
|
||||
<View
|
||||
android:layout_width="1px"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#c9c9c9"/>
|
||||
|
||||
<ImageButton
|
||||
<ImageView
|
||||
android:id="@+id/context_menu_more_button"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_weight="1"
|
||||
android:scaleType="center"
|
||||
android:src="@drawable/ic_action_core_overflow_dark"
|
||||
android:tint="?attr/dashboard_general_button_text_color"/>
|
||||
android:tint="@color/actionbar_dark_color"/>
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
|
|
@ -138,7 +138,7 @@ public class MapContextMenuFragment extends Fragment {
|
|||
TextView line2 = (TextView) view.findViewById(R.id.context_menu_line2);
|
||||
line2.setText(MapContextMenu.getInstance().getLocationStr());
|
||||
|
||||
final ImageButton buttonNavigate = (ImageButton) view.findViewById(R.id.context_menu_route_button);
|
||||
final ImageView buttonNavigate = (ImageView) view.findViewById(R.id.context_menu_route_button);
|
||||
buttonNavigate.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
|
@ -146,7 +146,7 @@ public class MapContextMenuFragment extends Fragment {
|
|||
}
|
||||
});
|
||||
|
||||
final ImageButton buttonFavorite = (ImageButton) view.findViewById(R.id.context_menu_fav_button);
|
||||
final ImageView buttonFavorite = (ImageView) view.findViewById(R.id.context_menu_fav_button);
|
||||
buttonFavorite.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
|
@ -154,7 +154,7 @@ public class MapContextMenuFragment extends Fragment {
|
|||
}
|
||||
});
|
||||
|
||||
final ImageButton buttonShare = (ImageButton) view.findViewById(R.id.context_menu_share_button);
|
||||
final ImageView buttonShare = (ImageView) view.findViewById(R.id.context_menu_share_button);
|
||||
buttonShare.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
|
@ -162,7 +162,7 @@ public class MapContextMenuFragment extends Fragment {
|
|||
}
|
||||
});
|
||||
|
||||
final ImageButton buttonMore = (ImageButton) view.findViewById(R.id.context_menu_more_button);
|
||||
final ImageView buttonMore = (ImageView) view.findViewById(R.id.context_menu_more_button);
|
||||
buttonMore.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
|
|
Loading…
Reference in a new issue