fix buttons layout
This commit is contained in:
parent
5473df3e42
commit
bf42efa486
4 changed files with 6 additions and 2 deletions
|
@ -61,7 +61,7 @@
|
|||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/bottom_sheet_descr_height"
|
||||
android:layout_height="@dimen/wikivoyage_show_images_dialog_buttons_height"
|
||||
android:paddingLeft="@dimen/list_header_padding"
|
||||
android:paddingStart="@dimen/list_header_padding"
|
||||
android:paddingRight="@dimen/list_header_padding"
|
||||
|
|
|
@ -210,5 +210,6 @@
|
|||
<dimen name="wikivoyage_explore_card_image_height">216dp</dimen>
|
||||
<dimen name="wikivoyage_travel_card_button_padding">24dp</dimen>
|
||||
<dimen name="wikivoyage_start_editing_card_text_image_padding">60dp</dimen>
|
||||
<dimen name="wikivoyage_show_images_dialog_buttons_height">66dp</dimen>
|
||||
|
||||
</resources>
|
|
@ -294,6 +294,8 @@
|
|||
<dimen name="wikivoyage_search_divider_margin_start">64dp</dimen>
|
||||
<dimen name="wikivoyage_travel_card_button_padding">16dp</dimen>
|
||||
<dimen name="wikivoyage_start_editing_card_text_image_padding">40dp</dimen>
|
||||
<dimen name="wikivoyage_show_images_dialog_buttons_height">44dp</dimen>
|
||||
<dimen name="wikivoyage_show_images_dialog_shadow_height">16dp</dimen>
|
||||
|
||||
<dimen name="wikivoyage_explore_card_image_height">144dp</dimen>
|
||||
|
||||
|
|
|
@ -102,7 +102,8 @@ public class WikivoyageShowPicturesDialogFragment extends BottomSheetDialogFragm
|
|||
final int statusBarHeight = AndroidUtils.getStatusBarHeight(activity);
|
||||
final int contentHeight = screenHeight - statusBarHeight
|
||||
- AndroidUtils.getNavBarHeight(activity)
|
||||
- getResources().getDimensionPixelSize(R.dimen.bottom_sheet_descr_height);
|
||||
- getResources().getDimensionPixelSize(R.dimen.wikivoyage_show_images_dialog_buttons_height)
|
||||
- getResources().getDimensionPixelSize(R.dimen.wikivoyage_show_images_dialog_shadow_height);
|
||||
|
||||
mainView.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue