Change add button and divider color
This commit is contained in:
parent
8db57b5ac8
commit
f1b0b9b6fc
5 changed files with 14 additions and 8 deletions
5
OsmAnd/res/drawable/keyboard_item_add_button_bg.xml
Normal file
5
OsmAnd/res/drawable/keyboard_item_add_button_bg.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@color/keyboard_item_add_button_bg_pressed" android:state_pressed="true"/>
|
||||
<item android:drawable="@color/keyboard_item_add_button_bg"/>
|
||||
</selector>
|
|
@ -177,9 +177,10 @@
|
|||
android:id="@+id/keyboard_divider"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="?attr/dashboard_divider"/>
|
||||
android:background="@color/keyboard_item_add_button_bg_pressed"/>
|
||||
|
||||
<android.support.v7.widget.AppCompatTextView
|
||||
android:background="@drawable/keyboard_item_add_button_bg"
|
||||
android:id="@+id/add_marker_button"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="52dp"
|
||||
|
|
|
@ -186,15 +186,15 @@
|
|||
android:id="@+id/keyboard_divider"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="?attr/dashboard_divider"/>
|
||||
android:background="@color/keyboard_item_add_button_bg_pressed"/>
|
||||
|
||||
<LinearLayout
|
||||
android:background="?attr/bg_color"
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="56dp">
|
||||
|
||||
<android.support.v7.widget.AppCompatTextView
|
||||
android:background="@drawable/keyboard_item_add_button_bg"
|
||||
android:maxLines="1"
|
||||
android:ellipsize="end"
|
||||
android:id="@+id/add_marker_button"
|
||||
|
@ -210,11 +210,11 @@
|
|||
<View
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="?attr/dashboard_divider"/>
|
||||
android:background="@color/keyboard_item_add_button_bg_pressed"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/show_hide_keyboard_icon"
|
||||
android:background="?attr/selectableItemBackground"
|
||||
android:background="@drawable/keyboard_item_add_button_bg"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
|
|
|
@ -271,6 +271,8 @@
|
|||
<color name="keyboard_item_control_light_bg_pressed">#536dfe</color>
|
||||
<color name="keyboard_item_control_dark_bg">#f2f2f2</color>
|
||||
<color name="keyboard_item_control_dark_bg_pressed">#536dfe</color>
|
||||
<color name="keyboard_item_add_button_bg">#536dfe</color>
|
||||
<color name="keyboard_item_add_button_bg_pressed">#4b62e3</color>
|
||||
|
||||
<color name="coordinate_input_status_bar_color">#4257c9</color>
|
||||
|
||||
|
|
|
@ -234,9 +234,7 @@ public class CoordinateInputDialogFragment extends DialogFragment implements Osm
|
|||
}
|
||||
});
|
||||
|
||||
TextView addMarkerButton = (TextView) mainView.findViewById(R.id.add_marker_button);
|
||||
addMarkerButton.setBackgroundResource(lightTheme ? R.drawable.keyboard_item_light_bg : R.drawable.keyboard_item_dark_bg);
|
||||
addMarkerButton.setOnClickListener(new View.OnClickListener() {
|
||||
mainView.findViewById(R.id.add_marker_button).setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
addMapMarker();
|
||||
|
|
Loading…
Reference in a new issue