diff options
Diffstat (limited to 'main/res')
-rw-r--r-- | main/res/layout-land-v31/sud_glif_blank_template_content.xml | 1 | ||||
-rw-r--r-- | main/res/layout-land-v31/sud_glif_list_template_content.xml | 1 | ||||
-rw-r--r-- | main/res/layout-land-v31/sud_glif_preference_template_content.xml | 1 | ||||
-rw-r--r-- | main/res/layout-land-v31/sud_glif_recycler_template_content.xml | 1 | ||||
-rw-r--r-- | main/res/layout-land-v31/sud_glif_template_content.xml | 1 | ||||
-rw-r--r-- | main/res/values-land/dimens.xml | 5 | ||||
-rw-r--r-- | main/res/values/attrs.xml | 4 | ||||
-rw-r--r-- | main/res/values/dimens.xml | 1 | ||||
-rw-r--r-- | main/res/values/styles.xml | 24 |
9 files changed, 35 insertions, 4 deletions
diff --git a/main/res/layout-land-v31/sud_glif_blank_template_content.xml b/main/res/layout-land-v31/sud_glif_blank_template_content.xml index c8e49d6..69965a0 100644 --- a/main/res/layout-land-v31/sud_glif_blank_template_content.xml +++ b/main/res/layout-land-v31/sud_glif_blank_template_content.xml @@ -28,6 +28,7 @@ android:orientation="horizontal"> <LinearLayout + android:id="@+id/suc_landscape_header_area" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" diff --git a/main/res/layout-land-v31/sud_glif_list_template_content.xml b/main/res/layout-land-v31/sud_glif_list_template_content.xml index 8352a2d..3fb76b8 100644 --- a/main/res/layout-land-v31/sud_glif_list_template_content.xml +++ b/main/res/layout-land-v31/sud_glif_list_template_content.xml @@ -28,6 +28,7 @@ android:orientation="horizontal"> <LinearLayout + android:id="@+id/suc_landscape_header_area" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" diff --git a/main/res/layout-land-v31/sud_glif_preference_template_content.xml b/main/res/layout-land-v31/sud_glif_preference_template_content.xml index 9f41222..2a60352 100644 --- a/main/res/layout-land-v31/sud_glif_preference_template_content.xml +++ b/main/res/layout-land-v31/sud_glif_preference_template_content.xml @@ -28,6 +28,7 @@ android:orientation="horizontal"> <LinearLayout + android:id="@+id/suc_landscape_header_area" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" diff --git a/main/res/layout-land-v31/sud_glif_recycler_template_content.xml b/main/res/layout-land-v31/sud_glif_recycler_template_content.xml index d89d693..7b46bc7 100644 --- a/main/res/layout-land-v31/sud_glif_recycler_template_content.xml +++ b/main/res/layout-land-v31/sud_glif_recycler_template_content.xml @@ -29,6 +29,7 @@ android:orientation="horizontal"> <LinearLayout + android:id="@+id/suc_landscape_header_area" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" diff --git a/main/res/layout-land-v31/sud_glif_template_content.xml b/main/res/layout-land-v31/sud_glif_template_content.xml index 0fab9ca..8d24b6a 100644 --- a/main/res/layout-land-v31/sud_glif_template_content.xml +++ b/main/res/layout-land-v31/sud_glif_template_content.xml @@ -28,6 +28,7 @@ android:orientation="horizontal"> <LinearLayout + android:id="@+id/suc_landscape_header_area" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" diff --git a/main/res/values-land/dimens.xml b/main/res/values-land/dimens.xml index 88a97be..1867d3b 100644 --- a/main/res/values-land/dimens.xml +++ b/main/res/values-land/dimens.xml @@ -17,6 +17,11 @@ <resources> + <!-- General --> + <dimen name="sud_glif_button_min_height">36dp</dimen> + <dimen name="sud_glif_footer_min_height">52dp</dimen> + <dimen name="sud_glif_footer_padding_vertical">0dp</dimen> + <!-- Card layout (for tablets) --> <dimen name="sud_card_title_padding_end">32dp</dimen> <dimen name="sud_card_title_padding_start">56dp</dimen> diff --git a/main/res/values/attrs.xml b/main/res/values/attrs.xml index 63125ee..bd2902c 100644 --- a/main/res/values/attrs.xml +++ b/main/res/values/attrs.xml @@ -152,6 +152,10 @@ <attr name="android:width" /> </declare-styleable> + <attr name="sudContentIllustrationMaxWidth" format="dimension" /> + <attr name="sudContentIllustrationMaxHeight" format="dimension" /> + <attr name="sudContentIllustrationPaddingTop" format="dimension" /> + <attr name="sudContentIllustrationPaddingBottom" format="dimension" /> <declare-styleable name="SudFillContentLayout"> <attr name="android:maxHeight" /> <attr name="android:maxWidth" /> diff --git a/main/res/values/dimens.xml b/main/res/values/dimens.xml index aa2c16c..57b37c0 100644 --- a/main/res/values/dimens.xml +++ b/main/res/values/dimens.xml @@ -26,6 +26,7 @@ <!-- Calculated by (sud_glif_margin_start - sud_glif_button_padding) --> <dimen name="sud_glif_button_margin_start">8dp</dimen> <dimen name="sud_glif_button_padding">16dp</dimen> + <dimen name="sud_glif_button_min_height">48dp</dimen> <!-- Negative of sud_glif_button_padding --> <dimen name="sud_glif_negative_button_padding">-16dp</dimen> <dimen name="sud_glif_footer_padding_vertical">8dp</dimen> diff --git a/main/res/values/styles.xml b/main/res/values/styles.xml index 17e31d2..70a81a8 100644 --- a/main/res/values/styles.xml +++ b/main/res/values/styles.xml @@ -55,6 +55,10 @@ <item name="sudMarginEnd">@dimen/sud_layout_margin_sides</item> <item name="sudNavBarTheme">@style/SudNavBarThemeDark</item> <item name="textAppearanceListItemSmall">@style/TextAppearance.SudItemSummary</item> + <item name="sudContentIllustrationMaxWidth">@dimen/sud_content_illustration_max_width</item> + <item name="sudContentIllustrationMaxHeight">@dimen/sud_content_illustration_max_height</item> + <item name="sudContentIllustrationPaddingTop">@dimen/sud_content_illustration_padding_vertical</item> + <item name="sudContentIllustrationPaddingBottom">@dimen/sud_content_illustration_padding_vertical</item> </style> <style name="SudThemeMaterial.Light" parent="Theme.AppCompat.Light.NoActionBar"> @@ -93,6 +97,10 @@ <item name="sudMarginEnd">@dimen/sud_layout_margin_sides</item> <item name="sudNavBarTheme">@style/SudNavBarThemeLight</item> <item name="textAppearanceListItemSmall">@style/TextAppearance.SudItemSummary</item> + <item name="sudContentIllustrationMaxWidth">@dimen/sud_content_illustration_max_width</item> + <item name="sudContentIllustrationMaxHeight">@dimen/sud_content_illustration_max_height</item> + <item name="sudContentIllustrationPaddingTop">@dimen/sud_content_illustration_padding_vertical</item> + <item name="sudContentIllustrationPaddingBottom">@dimen/sud_content_illustration_padding_vertical</item> </style> <style name="SudBaseThemeGlif" parent="Theme.AppCompat.NoActionBar"> @@ -160,6 +168,10 @@ <item name="sucFooterBarMinHeight">@dimen/sud_glif_footer_min_height</item> <item name="sucFooterButtonPaddingStart">@dimen/sud_glif_button_padding</item> <item name="sucFooterButtonPaddingEnd">@dimen/sud_glif_button_padding</item> + <item name="sudContentIllustrationMaxWidth">@dimen/sud_content_illustration_max_width</item> + <item name="sudContentIllustrationMaxHeight">@dimen/sud_content_illustration_max_height</item> + <item name="sudContentIllustrationPaddingTop">@dimen/sud_content_illustration_padding_vertical</item> + <item name="sudContentIllustrationPaddingBottom">@dimen/sud_content_illustration_padding_vertical</item> </style> <style name="SudThemeGlif" parent="SudBaseThemeGlif"/> @@ -228,6 +240,10 @@ <item name="sucFooterBarMinHeight">@dimen/sud_glif_footer_min_height</item> <item name="sucFooterButtonPaddingStart">@dimen/sud_glif_button_padding</item> <item name="sucFooterButtonPaddingEnd">@dimen/sud_glif_button_padding</item> + <item name="sudContentIllustrationMaxWidth">@dimen/sud_content_illustration_max_width</item> + <item name="sudContentIllustrationMaxHeight">@dimen/sud_content_illustration_max_height</item> + <item name="sudContentIllustrationPaddingTop">@dimen/sud_content_illustration_padding_vertical</item> + <item name="sudContentIllustrationPaddingBottom">@dimen/sud_content_illustration_padding_vertical</item> </style> <style name="SudThemeGlif.Light" parent="SudBaseThemeGlif.Light"/> @@ -385,10 +401,10 @@ <style name="SudFillContentLayout"> <item name="android:minWidth">@dimen/sud_content_illustration_min_width</item> <item name="android:minHeight">@dimen/sud_content_illustration_min_height</item> - <item name="android:maxWidth">@dimen/sud_content_illustration_max_width</item> - <item name="android:maxHeight">@dimen/sud_content_illustration_max_height</item> - <item name="android:paddingTop">@dimen/sud_content_illustration_padding_vertical</item> - <item name="android:paddingBottom">@dimen/sud_content_illustration_padding_vertical</item> + <item name="android:maxWidth">?attr/sudContentIllustrationMaxWidth</item> + <item name="android:maxHeight">?attr/sudContentIllustrationMaxHeight</item> + <item name="android:paddingTop">?attr/sudContentIllustrationPaddingTop</item> + <item name="android:paddingBottom">?attr/sudContentIllustrationPaddingBottom</item> </style> <!-- Ignore UnusedResources: used by clients --> |