change buttons design
This commit is contained in:
parent
b7426afc03
commit
2b6274990d
1 changed files with 82 additions and 51 deletions
|
@ -1,6 +1,7 @@
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
xmlns:osmand="http://schemas.android.com/apk/res-auto"
|
xmlns:osmand="http://schemas.android.com/apk/res-auto"
|
||||||
android:layout_gravity="bottom"
|
android:layout_gravity="bottom"
|
||||||
android:background="?attr/bottom_menu_view_bg"
|
android:background="?attr/bottom_menu_view_bg"
|
||||||
|
@ -51,59 +52,89 @@
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:paddingLeft="@dimen/list_header_padding"
|
android:layout_marginBottom="@dimen/bottom_sheet_content_margin_small"
|
||||||
android:paddingStart="@dimen/list_header_padding"
|
android:layout_marginLeft="@dimen/bottom_sheet_content_margin_small"
|
||||||
android:paddingRight="@dimen/list_header_padding"
|
android:layout_marginRight="@dimen/bottom_sheet_content_margin_small">
|
||||||
android:paddingEnd="@dimen/list_header_padding"
|
|
||||||
android:paddingBottom="@dimen/list_header_padding"
|
<FrameLayout
|
||||||
android:orientation="horizontal">
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginEnd="@dimen/bottom_sheet_content_margin_small"
|
||||||
|
android:layout_marginRight="@dimen/bottom_sheet_content_margin_small"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:background="@drawable/wikivoyage_secondary_btn_bg">
|
||||||
|
|
||||||
<net.osmand.plus.widgets.TextViewEx
|
<net.osmand.plus.widgets.TextViewEx
|
||||||
android:id="@+id/button_no"
|
android:id="@+id/button_no"
|
||||||
android:layout_width="0dp"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="@dimen/wikivoyage_card_button_height"
|
||||||
android:layout_weight="1"
|
android:layout_gravity="center"
|
||||||
android:background="?attr/ctx_menu_controller_bg"
|
android:background="?attr/selectableItemBackgroundBorderless"
|
||||||
|
android:ellipsize="end"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:padding="@dimen/context_menu_button_padding_x"
|
android:letterSpacing="@dimen/text_button_letter_spacing"
|
||||||
android:layout_marginRight="@dimen/list_header_padding"
|
android:maxLines="1"
|
||||||
android:layout_marginEnd="@dimen/list_header_padding"
|
android:text="@string/shared_string_dont"
|
||||||
osmand:typeface="@string/font_roboto_regular"
|
android:textColor="?attr/wikivoyage_active_color"
|
||||||
android:textSize="@dimen/default_list_text_size"
|
android:textSize="@dimen/text_button_text_size"
|
||||||
android:textColor="?attr/ctx_menu_controller_text_color"
|
osmand:typeface="@string/font_roboto_medium"
|
||||||
android:text="@string/shared_string_dont"/>
|
tools:ignore="UnusedAttribute" />
|
||||||
|
|
||||||
|
</FrameLayout>
|
||||||
|
|
||||||
|
<FrameLayout
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginEnd="@dimen/bottom_sheet_content_margin_small"
|
||||||
|
android:layout_marginRight="@dimen/bottom_sheet_content_margin_small"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:background="@drawable/wikivoyage_secondary_btn_bg">
|
||||||
|
|
||||||
<net.osmand.plus.widgets.TextViewEx
|
<net.osmand.plus.widgets.TextViewEx
|
||||||
android:id="@+id/button_wifi"
|
android:id="@+id/button_wifi"
|
||||||
android:layout_width="0dp"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="@dimen/wikivoyage_card_button_height"
|
||||||
android:layout_weight="1"
|
android:layout_gravity="center"
|
||||||
android:background="?attr/ctx_menu_controller_bg"
|
android:background="?attr/selectableItemBackgroundBorderless"
|
||||||
|
android:ellipsize="end"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:padding="@dimen/context_menu_button_padding_x"
|
android:letterSpacing="@dimen/text_button_letter_spacing"
|
||||||
android:layout_marginRight="@dimen/list_header_padding"
|
android:maxLines="1"
|
||||||
android:layout_marginEnd="@dimen/list_header_padding"
|
android:text="@string/shared_string_only_with_wifi"
|
||||||
osmand:typeface="@string/font_roboto_regular"
|
android:textColor="?attr/wikivoyage_active_color"
|
||||||
android:textSize="@dimen/default_list_text_size"
|
android:textSize="@dimen/text_button_text_size"
|
||||||
android:textColor="?attr/ctx_menu_controller_text_color"
|
osmand:typeface="@string/font_roboto_medium"
|
||||||
android:text="@string/shared_string_only_with_wifi"/>
|
tools:ignore="UnusedAttribute" />
|
||||||
|
|
||||||
|
</FrameLayout>
|
||||||
|
|
||||||
|
|
||||||
|
<FrameLayout
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:background="@drawable/wikivoyage_primary_btn_bg">
|
||||||
|
|
||||||
<net.osmand.plus.widgets.TextViewEx
|
<net.osmand.plus.widgets.TextViewEx
|
||||||
android:id="@+id/button_yes"
|
android:id="@+id/button_yes"
|
||||||
android:layout_width="0dp"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="@dimen/wikivoyage_card_button_height"
|
||||||
android:layout_weight="1"
|
android:layout_gravity="center"
|
||||||
android:background="?attr/ctx_menu_controller_bg"
|
android:background="?attr/selectableItemBackgroundBorderless"
|
||||||
|
android:ellipsize="end"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:padding="@dimen/context_menu_button_padding_x"
|
android:letterSpacing="@dimen/text_button_letter_spacing"
|
||||||
osmand:typeface="@string/font_roboto_regular"
|
android:maxLines="1"
|
||||||
android:textSize="@dimen/default_list_text_size"
|
android:text="@string/shared_string_do"
|
||||||
android:textColor="?attr/ctx_menu_controller_text_color"
|
android:textColor="?attr/wikivoyage_primary_btn_text_color"
|
||||||
android:text="@string/shared_string_do"/>
|
android:textSize="@dimen/text_button_text_size"
|
||||||
|
osmand:typeface="@string/font_roboto_medium"
|
||||||
|
tools:ignore="UnusedAttribute" />
|
||||||
|
|
||||||
|
</FrameLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
Loading…
Reference in a new issue