diff options
author | Stefan Niedermann <info@niedermann.it> | 2020-06-16 10:23:42 +0300 |
---|---|---|
committer | Stefan Niedermann <info@niedermann.it> | 2020-06-16 10:23:42 +0300 |
commit | 6fec0079757c2d356693e9934af7ec5dc3464eff (patch) | |
tree | 84295e475e1310784c8308d64f741271916724f0 | |
parent | 664aee51ee09a72cff535ec338b7f25a09179373 (diff) |
Remove obsolete attributes starting with minSdk 17
31 files changed, 17 insertions, 87 deletions
diff --git a/app/src/main/res/layout/activity_edit.xml b/app/src/main/res/layout/activity_edit.xml index ae9a160d0..16f310fb8 100644 --- a/app/src/main/res/layout/activity_edit.xml +++ b/app/src/main/res/layout/activity_edit.xml @@ -22,7 +22,6 @@ android:layout_height="wrap_content" app:theme="@style/EditTextOnPrimaryBackground" android:layout_marginEnd="16dp" - android:layout_marginRight="16dp" android:importantForAutofill="no" android:inputType="textMultiLine" android:maxLines="5" diff --git a/app/src/main/res/layout/activity_exception.xml b/app/src/main/res/layout/activity_exception.xml index b7e55d3b4..782b401e8 100644 --- a/app/src/main/res/layout/activity_exception.xml +++ b/app/src/main/res/layout/activity_exception.xml @@ -40,9 +40,7 @@ android:layout_width="match_parent" android:layout_height="0dp" android:layout_marginStart="@dimen/spacer_2x" - android:layout_marginLeft="@dimen/spacer_2x" android:layout_marginEnd="@dimen/spacer_2x" - android:layout_marginRight="@dimen/spacer_2x" android:layout_weight="1" android:background="@color/bg_highlighted"> @@ -70,7 +68,6 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginEnd="@dimen/spacer_1x" - android:layout_marginRight="@dimen/spacer_1x" android:layout_weight=".5" android:text="@string/simple_close" /> @@ -80,7 +77,6 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="@dimen/spacer_1x" - android:layout_marginLeft="@dimen/spacer_1x" android:layout_weight=".5" android:text="@string/simple_copy" /> diff --git a/app/src/main/res/layout/activity_import_account.xml b/app/src/main/res/layout/activity_import_account.xml index cdce39b42..b4294db7b 100644 --- a/app/src/main/res/layout/activity_import_account.xml +++ b/app/src/main/res/layout/activity_import_account.xml @@ -45,10 +45,8 @@ android:layout_below="@id/welcome_text" android:layout_centerHorizontal="true" android:paddingStart="32dp" - android:paddingLeft="32dp" android:paddingTop="24dp" android:paddingEnd="32dp" - android:paddingRight="32dp" android:paddingBottom="24dp" android:text="@string/choose_account" /> diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index da71b30a2..d3b024d98 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -41,9 +41,7 @@ android:drawablePadding="@dimen/spacer_1hx" android:gravity="center" android:paddingStart="@dimen/spacer_1hx" - android:paddingLeft="@dimen/spacer_1hx" android:paddingEnd="@dimen/spacer_1hx" - android:paddingRight="@dimen/spacer_1hx" android:text="@string/info_box_maintenance_mode" android:textColor="@color/grey600" app:drawableLeftCompat="@drawable/ic_info_outline_grey600_24dp" @@ -69,9 +67,7 @@ android:drawablePadding="@dimen/spacer_1hx" android:gravity="center" android:paddingStart="@dimen/spacer_1hx" - android:paddingLeft="@dimen/spacer_1hx" android:paddingEnd="@dimen/spacer_1hx" - android:paddingRight="@dimen/spacer_1hx" android:text="@string/info_box_version_not_supported" android:textColor="@android:color/white" app:drawableLeftCompat="@drawable/ic_warning_white_24dp" diff --git a/app/src/main/res/layout/activity_prepare_create.xml b/app/src/main/res/layout/activity_prepare_create.xml index 932e74855..f4aff7cb8 100644 --- a/app/src/main/res/layout/activity_prepare_create.xml +++ b/app/src/main/res/layout/activity_prepare_create.xml @@ -72,7 +72,6 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginEnd="@dimen/spacer_1x" - android:layout_marginRight="@dimen/spacer_1x" android:layout_weight=".5" android:text="@android:string/cancel" /> @@ -82,7 +81,6 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginStart="@dimen/spacer_1x" - android:layout_marginLeft="@dimen/spacer_1x" android:layout_weight=".5" android:text="@string/simple_add" /> </LinearLayout> diff --git a/app/src/main/res/layout/activity_push_notification.xml b/app/src/main/res/layout/activity_push_notification.xml index 25a71830c..6fb41be3a 100644 --- a/app/src/main/res/layout/activity_push_notification.xml +++ b/app/src/main/res/layout/activity_push_notification.xml @@ -79,7 +79,6 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginEnd="@dimen/spacer_1x" - android:layout_marginRight="@dimen/spacer_1x" android:layout_weight=".5" android:text="@string/simple_close" /> @@ -89,7 +88,6 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginStart="@dimen/spacer_1x" - android:layout_marginLeft="@dimen/spacer_1x" android:layout_weight=".5" android:enabled="false" android:text="@string/updating_card" /> diff --git a/app/src/main/res/layout/dialog_account_switcher.xml b/app/src/main/res/layout/dialog_account_switcher.xml index 35fae4617..4de7c1d7e 100644 --- a/app/src/main/res/layout/dialog_account_switcher.xml +++ b/app/src/main/res/layout/dialog_account_switcher.xml @@ -29,9 +29,7 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginStart="@dimen/spacer_2x" - android:layout_marginLeft="@dimen/spacer_2x" android:layout_marginEnd="@dimen/spacer_2x" - android:layout_marginRight="@dimen/spacer_2x" android:layout_weight="1" android:orientation="vertical"> @@ -89,10 +87,8 @@ android:background="?attr/selectableItemBackground" android:orientation="horizontal" android:paddingStart="@dimen/spacer_3x" - android:paddingLeft="@dimen/spacer_3x" android:paddingTop="@dimen/spacer_1x" android:paddingEnd="@dimen/spacer_3x" - android:paddingRight="@dimen/spacer_3x" android:paddingBottom="@dimen/spacer_1x"> <androidx.appcompat.widget.AppCompatImageView @@ -108,7 +104,6 @@ android:layout_height="wrap_content" android:layout_gravity="center" android:layout_marginStart="@dimen/spacer_2x" - android:layout_marginLeft="@dimen/spacer_2x" android:ellipsize="middle" android:singleLine="true" android:text="@string/add_account" @@ -125,10 +120,8 @@ android:background="?attr/selectableItemBackground" android:orientation="horizontal" android:paddingStart="@dimen/spacer_3x" - android:paddingLeft="@dimen/spacer_3x" android:paddingTop="@dimen/spacer_1x" android:paddingEnd="@dimen/spacer_3x" - android:paddingRight="@dimen/spacer_3x" android:paddingBottom="@dimen/spacer_1x"> <androidx.appcompat.widget.AppCompatImageView @@ -144,7 +137,6 @@ android:layout_height="wrap_content" android:layout_gravity="center" android:layout_marginStart="@dimen/spacer_2x" - android:layout_marginLeft="@dimen/spacer_2x" android:ellipsize="middle" android:singleLine="true" android:text="@string/manage_accounts" diff --git a/app/src/main/res/layout/fragment_about_credits_tab.xml b/app/src/main/res/layout/fragment_about_credits_tab.xml index cb2e4e1a3..5c6d11b54 100644 --- a/app/src/main/res/layout/fragment_about_credits_tab.xml +++ b/app/src/main/res/layout/fragment_about_credits_tab.xml @@ -31,7 +31,6 @@ android:layout_height="wrap_content" android:padding="10dp" android:paddingEnd="0dp" - android:paddingRight="0dp" android:text="@string/last_background_sync" tools:ignore="RtlSymmetry" /> @@ -41,7 +40,6 @@ android:layout_height="wrap_content" android:padding="10dp" android:paddingStart="5dp" - android:paddingLeft="5dp" tools:hint="20 seconds ago" tools:ignore="RtlSymmetry" /> </LinearLayout> @@ -69,7 +67,6 @@ android:layout_height="wrap_content" android:padding="10dp" android:paddingEnd="0dp" - android:paddingRight="0dp" android:text="@string/about_server_app_version_text" tools:ignore="RtlSymmetry" /> @@ -79,7 +76,6 @@ android:layout_height="wrap_content" android:padding="10dp" android:paddingStart="5dp" - android:paddingLeft="5dp" tools:hint="v0.6.5" tools:ignore="RtlSymmetry" /> </LinearLayout> diff --git a/app/src/main/res/layout/fragment_card_edit_tab_comments.xml b/app/src/main/res/layout/fragment_card_edit_tab_comments.xml index ca5ff8ca0..8ce3ebb73 100644 --- a/app/src/main/res/layout/fragment_card_edit_tab_comments.xml +++ b/app/src/main/res/layout/fragment_card_edit_tab_comments.xml @@ -37,7 +37,6 @@ android:layout_width="@dimen/icon_size_details" android:layout_height="match_parent" android:layout_marginEnd="@dimen/spacer_2x" - android:layout_marginRight="@dimen/spacer_2x" android:contentDescription="@null" android:tint="@color/grey600" app:srcCompat="@drawable/ic_comment_white_24dp" /> @@ -48,7 +47,6 @@ android:layout_height="wrap_content" android:layout_gravity="center" android:layout_marginStart="@dimen/spacer_2x" - android:layout_marginLeft="@dimen/spacer_2x" android:layout_weight="1" android:autofillHints="@null" android:hint="@string/add_comment" @@ -56,7 +54,6 @@ android:inputType="text" android:maxLength="@integer/comment_max_length" android:paddingEnd="@dimen/spacer_1x" - android:paddingRight="@dimen/spacer_1x" tools:ignore="RtlSymmetry"> <requestFocus /> diff --git a/app/src/main/res/layout/fragment_card_edit_tab_details.xml b/app/src/main/res/layout/fragment_card_edit_tab_details.xml index d70fdb8b7..b1d52378a 100644 --- a/app/src/main/res/layout/fragment_card_edit_tab_details.xml +++ b/app/src/main/res/layout/fragment_card_edit_tab_details.xml @@ -21,7 +21,6 @@ android:layout_width="@dimen/icon_size_details" android:layout_height="match_parent" android:layout_marginEnd="@dimen/spacer_2x" - android:layout_marginRight="@dimen/spacer_2x" android:contentDescription="@null" app:srcCompat="@drawable/ic_label_grey600_24dp" /> @@ -39,7 +38,6 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginStart="40dp" - android:layout_marginLeft="40dp" android:animateLayoutChanges="true" /> <LinearLayout @@ -53,7 +51,6 @@ android:layout_width="@dimen/icon_size_details" android:layout_height="match_parent" android:layout_marginEnd="@dimen/spacer_2x" - android:layout_marginRight="@dimen/spacer_2x" android:contentDescription="@null" app:srcCompat="@drawable/calendar_blank_grey600_24dp" /> @@ -92,9 +89,7 @@ android:layout_height="match_parent" android:contentDescription="@string/label_clear_due_date" android:paddingStart="@dimen/spacer_1x" - android:paddingLeft="@dimen/spacer_1x" android:paddingEnd="@dimen/spacer_1x" - android:paddingRight="@dimen/spacer_1x" app:srcCompat="@drawable/ic_close_circle_grey600" /> </LinearLayout> @@ -108,7 +103,6 @@ android:layout_width="@dimen/icon_size_details" android:layout_height="match_parent" android:layout_marginEnd="@dimen/spacer_2x" - android:layout_marginRight="@dimen/spacer_2x" android:contentDescription="@null" app:srcCompat="@drawable/ic_person_grey600_24dp" /> @@ -126,7 +120,6 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginStart="40dp" - android:layout_marginLeft="40dp" android:orientation="horizontal" /> <LinearLayout @@ -140,7 +133,6 @@ android:layout_height="wrap_content" android:layout_marginTop="10dp" android:layout_marginEnd="@dimen/spacer_2x" - android:layout_marginRight="@dimen/spacer_2x" android:contentDescription="@null" app:srcCompat="@drawable/ic_format_align_left_black_24dp" /> diff --git a/app/src/main/res/layout/item_access_control.xml b/app/src/main/res/layout/item_access_control.xml index ecb05349e..e245969a8 100644 --- a/app/src/main/res/layout/item_access_control.xml +++ b/app/src/main/res/layout/item_access_control.xml @@ -13,7 +13,6 @@ android:layout_width="@dimen/avatar_size" android:layout_height="match_parent" android:layout_marginEnd="@dimen/spacer_2x" - android:layout_marginRight="@dimen/spacer_2x" android:contentDescription="@null" app:srcCompat="@drawable/ic_person_grey600_24dp" tools:srcCompat="@tools:sample/avatars" /> diff --git a/app/src/main/res/layout/item_access_control_owner.xml b/app/src/main/res/layout/item_access_control_owner.xml index ff41573ec..0bacae453 100644 --- a/app/src/main/res/layout/item_access_control_owner.xml +++ b/app/src/main/res/layout/item_access_control_owner.xml @@ -13,7 +13,6 @@ android:layout_width="@dimen/avatar_size" android:layout_height="match_parent" android:layout_marginEnd="@dimen/spacer_2x" - android:layout_marginRight="@dimen/spacer_2x" android:contentDescription="@null" app:srcCompat="@drawable/ic_person_grey600_24dp" tools:srcCompat="@tools:sample/avatars" /> diff --git a/app/src/main/res/layout/item_account_choose.xml b/app/src/main/res/layout/item_account_choose.xml index f74ca5da5..d939c8d71 100644 --- a/app/src/main/res/layout/item_account_choose.xml +++ b/app/src/main/res/layout/item_account_choose.xml @@ -12,8 +12,7 @@ <FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginEnd="@dimen/spacer_1hx" - android:layout_marginRight="@dimen/spacer_1hx"> + android:layout_marginEnd="@dimen/spacer_1hx"> <androidx.appcompat.widget.AppCompatImageView android:id="@+id/accountItemAvatar" @@ -39,9 +38,7 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginStart="@dimen/spacer_2x" - android:layout_marginLeft="@dimen/spacer_2x" android:layout_marginEnd="@dimen/spacer_2x" - android:layout_marginRight="@dimen/spacer_2x" android:layout_weight="1" android:orientation="vertical"> diff --git a/app/src/main/res/layout/item_activity.xml b/app/src/main/res/layout/item_activity.xml index 81b33eefe..85fc740f8 100644 --- a/app/src/main/res/layout/item_activity.xml +++ b/app/src/main/res/layout/item_activity.xml @@ -13,7 +13,6 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginStart="56dp" - android:layout_marginLeft="56dp" android:textAppearance="?attr/textAppearanceListItemSecondary" tools:text="4 days ago" /> @@ -27,7 +26,6 @@ android:layout_width="@dimen/avatar_size" android:layout_height="@dimen/avatar_size" android:layout_marginEnd="@dimen/spacer_2x" - android:layout_marginRight="@dimen/spacer_2x" app:srcCompat="@drawable/type_change_36dp" /> <TextView diff --git a/app/src/main/res/layout/item_archived_board.xml b/app/src/main/res/layout/item_archived_board.xml index 7e32549da..bbb425a18 100644 --- a/app/src/main/res/layout/item_archived_board.xml +++ b/app/src/main/res/layout/item_archived_board.xml @@ -20,7 +20,6 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginStart="32dp" - android:layout_marginLeft="32dp" android:layout_marginTop="@dimen/spacer_1hx" android:layout_weight="1" android:textAppearance="@style/TextAppearance.AppCompat.Body1" diff --git a/app/src/main/res/layout/item_attachment_default.xml b/app/src/main/res/layout/item_attachment_default.xml index 61145f0f3..98e3114eb 100644 --- a/app/src/main/res/layout/item_attachment_default.xml +++ b/app/src/main/res/layout/item_attachment_default.xml @@ -11,8 +11,7 @@ <FrameLayout android:layout_width="wrap_content" android:layout_height="match_parent" - android:layout_marginEnd="@dimen/spacer_1x" - android:layout_marginRight="@dimen/spacer_1x"> + android:layout_marginEnd="@dimen/spacer_1x"> <androidx.appcompat.widget.AppCompatImageView android:id="@+id/preview" diff --git a/app/src/main/res/layout/item_attachment_image.xml b/app/src/main/res/layout/item_attachment_image.xml index 9345feb70..3b41a9fe8 100644 --- a/app/src/main/res/layout/item_attachment_image.xml +++ b/app/src/main/res/layout/item_attachment_image.xml @@ -19,7 +19,6 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentEnd="true" - android:layout_alignParentRight="true" android:layout_alignParentBottom="true" android:translationX="-8dp" android:translationY="-8dp" diff --git a/app/src/main/res/layout/item_autocomplete_label.xml b/app/src/main/res/layout/item_autocomplete_label.xml index a26c66f00..adfa5bd93 100644 --- a/app/src/main/res/layout/item_autocomplete_label.xml +++ b/app/src/main/res/layout/item_autocomplete_label.xml @@ -6,9 +6,7 @@ android:background="?attr/selectableItemBackground" android:descendantFocusability="blocksDescendants" android:paddingStart="@dimen/spacer_1x" - android:paddingLeft="@dimen/spacer_1x" - android:paddingEnd="@dimen/spacer_1x" - android:paddingRight="@dimen/spacer_1x"> + android:paddingEnd="@dimen/spacer_1x"> <com.google.android.material.chip.Chip android:id="@+id/label" diff --git a/app/src/main/res/layout/item_autocomplete_user.xml b/app/src/main/res/layout/item_autocomplete_user.xml index ba32c09ef..8f1b7284c 100644 --- a/app/src/main/res/layout/item_autocomplete_user.xml +++ b/app/src/main/res/layout/item_autocomplete_user.xml @@ -21,9 +21,7 @@ android:ellipsize="middle" android:gravity="center_vertical" android:paddingStart="@dimen/spacer_1x" - android:paddingLeft="@dimen/spacer_1x" android:paddingEnd="@dimen/spacer_2x" - android:paddingRight="@dimen/spacer_2x" android:textAppearance="?attr/textAppearanceListItem" tools:text="@tools:sample/full_names" /> diff --git a/app/src/main/res/layout/item_card.xml b/app/src/main/res/layout/item_card.xml index fd2ff8e62..a3ae195fc 100644 --- a/app/src/main/res/layout/item_card.xml +++ b/app/src/main/res/layout/item_card.xml @@ -6,10 +6,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginStart="@dimen/spacer_2x" - android:layout_marginLeft="@dimen/spacer_2x" android:layout_marginTop="@dimen/spacer_1x" android:layout_marginEnd="@dimen/spacer_2x" - android:layout_marginRight="@dimen/spacer_2x" android:layout_marginBottom="@dimen/spacer_1x" android:focusable="true"> @@ -25,9 +23,7 @@ android:layout_height="wrap_content" android:orientation="horizontal" android:paddingStart="@dimen/spacer_2x" - android:paddingLeft="@dimen/spacer_2x" - android:paddingEnd="@dimen/spacer_2x" - android:paddingRight="@dimen/spacer_2x"> + android:paddingEnd="@dimen/spacer_2x"> <TextView android:id="@+id/card_title" @@ -54,7 +50,6 @@ android:layout_height="wrap_content" android:orientation="horizontal" android:paddingStart="@dimen/spacer_1hx" - android:paddingLeft="@dimen/spacer_1hx" tools:ignore="RtlSymmetry"> <androidx.appcompat.widget.AppCompatTextView @@ -79,9 +74,7 @@ android:layout_marginTop="@dimen/spacer_1x" android:animateLayoutChanges="true" android:paddingStart="@dimen/spacer_2x" - android:paddingLeft="@dimen/spacer_2x" android:paddingEnd="@dimen/spacer_2x" - android:paddingRight="@dimen/spacer_2x" app:flexWrap="nowrap" tools:layout_height="@dimen/avatar_size" /> @@ -91,9 +84,7 @@ android:layout_marginTop="@dimen/spacer_1x" android:baselineAligned="false" android:paddingStart="@dimen/spacer_1x" - android:paddingLeft="@dimen/spacer_1x" - android:paddingEnd="@dimen/spacer_1x" - android:paddingRight="@dimen/spacer_1x"> + android:paddingEnd="@dimen/spacer_1x"> <LinearLayout android:layout_width="0dp" @@ -142,9 +133,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="@dimen/spacer_1x" - android:layout_marginLeft="@dimen/spacer_1x" android:layout_marginEnd="@dimen/spacer_1x" - android:layout_marginRight="@dimen/spacer_1x" android:gravity="end" android:orientation="horizontal" tools:layout_height="match_parent" diff --git a/app/src/main/res/layout/item_comment.xml b/app/src/main/res/layout/item_comment.xml index 32199805a..0ebe0f50a 100644 --- a/app/src/main/res/layout/item_comment.xml +++ b/app/src/main/res/layout/item_comment.xml @@ -13,8 +13,7 @@ <FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginEnd="@dimen/spacer_1x" - android:layout_marginRight="@dimen/spacer_1x"> + android:layout_marginEnd="@dimen/spacer_1x"> <androidx.appcompat.widget.AppCompatImageView android:id="@+id/avatar" diff --git a/app/src/main/res/layout/item_filter_duetype.xml b/app/src/main/res/layout/item_filter_duetype.xml index 54726ae2f..a5943ff2f 100644 --- a/app/src/main/res/layout/item_filter_duetype.xml +++ b/app/src/main/res/layout/item_filter_duetype.xml @@ -20,7 +20,6 @@ android:layout_width="22dp" android:layout_height="22dp" android:layout_marginStart="@dimen/spacer_1x" - android:layout_marginLeft="@dimen/spacer_1x" app:layout_alignSelf="center" app:layout_flexShrink="0" app:srcCompat="@drawable/selected" diff --git a/app/src/main/res/layout/item_filter_label.xml b/app/src/main/res/layout/item_filter_label.xml index 57870eb2c..133724140 100644 --- a/app/src/main/res/layout/item_filter_label.xml +++ b/app/src/main/res/layout/item_filter_label.xml @@ -18,7 +18,6 @@ android:layout_width="22dp" android:layout_height="22dp" android:layout_marginStart="@dimen/spacer_1x" - android:layout_marginLeft="@dimen/spacer_1x" app:srcCompat="@drawable/selected" app:layout_alignSelf="center" app:layout_flexShrink="0" diff --git a/app/src/main/res/layout/item_filter_user.xml b/app/src/main/res/layout/item_filter_user.xml index 8177a1c94..2c29bf5ad 100644 --- a/app/src/main/res/layout/item_filter_user.xml +++ b/app/src/main/res/layout/item_filter_user.xml @@ -12,15 +12,13 @@ <FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginEnd="@dimen/spacer_1hx" - android:layout_marginRight="@dimen/spacer_1hx"> + android:layout_marginEnd="@dimen/spacer_1hx"> <ImageView android:id="@+id/avatar" android:layout_width="@dimen/avatar_size" android:layout_height="@dimen/avatar_size" android:layout_marginEnd="10dp" - android:layout_marginRight="10dp" android:contentDescription="@null" app:srcCompat="@drawable/ic_person_grey600_24dp" tools:srcCompat="@tools:sample/avatars" /> diff --git a/app/src/main/res/layout/item_prepare_create_account.xml b/app/src/main/res/layout/item_prepare_create_account.xml index b9f651557..f21c71326 100644 --- a/app/src/main/res/layout/item_prepare_create_account.xml +++ b/app/src/main/res/layout/item_prepare_create_account.xml @@ -12,7 +12,6 @@ android:layout_width="@dimen/avatar_size" android:layout_height="@dimen/avatar_size" android:layout_marginEnd="@dimen/spacer_2x" - android:layout_marginRight="@dimen/spacer_2x" android:contentDescription="@null" app:srcCompat="@drawable/ic_person_grey600_24dp" tools:srcCompat="@tools:sample/avatars" /> diff --git a/app/src/main/res/layout/item_prepare_create_board.xml b/app/src/main/res/layout/item_prepare_create_board.xml index 1ace7d569..9fc5defa1 100644 --- a/app/src/main/res/layout/item_prepare_create_board.xml +++ b/app/src/main/res/layout/item_prepare_create_board.xml @@ -13,7 +13,6 @@ android:layout_width="@dimen/avatar_size" android:layout_height="@dimen/avatar_size" android:layout_marginEnd="@dimen/spacer_2x" - android:layout_marginRight="@dimen/spacer_2x" android:contentDescription="@null" app:srcCompat="@drawable/circle_grey600_36dp" tools:tint="@color/board_default_color" /> diff --git a/app/src/main/res/layout/item_prepare_create_stack.xml b/app/src/main/res/layout/item_prepare_create_stack.xml index 494b6ca91..f5a1f97b1 100644 --- a/app/src/main/res/layout/item_prepare_create_stack.xml +++ b/app/src/main/res/layout/item_prepare_create_stack.xml @@ -6,10 +6,8 @@ android:layout_height="wrap_content" android:ellipsize="middle" android:paddingStart="72dp" - android:paddingLeft="72dp" android:paddingTop="@dimen/spacer_2x" android:paddingEnd="@dimen/spacer_2x" - android:paddingRight="@dimen/spacer_2x" android:paddingBottom="@dimen/spacer_2x" android:singleLine="true" android:textAppearance="?attr/textAppearanceListItem" diff --git a/app/src/main/res/layout/item_tip.xml b/app/src/main/res/layout/item_tip.xml index 2e186d42e..96df0e431 100644 --- a/app/src/main/res/layout/item_tip.xml +++ b/app/src/main/res/layout/item_tip.xml @@ -26,9 +26,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="40dp" - android:layout_marginLeft="40dp" android:layout_marginEnd="@dimen/spacer_1x" - android:layout_marginRight="@dimen/spacer_1x" android:visibility="visible" tools:text="@string/error_action_open_deck_info" tools:visibility="visible" /> diff --git a/app/src/main/res/layout/nav_header_main.xml b/app/src/main/res/layout/nav_header_main.xml index 272284a6e..6f65fba00 100644 --- a/app/src/main/res/layout/nav_header_main.xml +++ b/app/src/main/res/layout/nav_header_main.xml @@ -18,11 +18,10 @@ <TextView android:id="@+id/app_name" - android:layout_width="match_parent" + android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:layout_toEndOf="@id/logo" - android:layout_toRightOf="@id/logo" android:ellipsize="end" android:fontFamily="sans-serif-light" android:gravity="center_vertical" diff --git a/app/src/main/res/layout/widget_empty_content_view.xml b/app/src/main/res/layout/widget_empty_content_view.xml index 1a8f4672f..474ffaec0 100644 --- a/app/src/main/res/layout/widget_empty_content_view.xml +++ b/app/src/main/res/layout/widget_empty_content_view.xml @@ -35,9 +35,7 @@ android:layout_below="@id/title" android:layout_centerHorizontal="true" android:paddingStart="@dimen/spacer_2x" - android:paddingLeft="@dimen/spacer_2x" android:paddingEnd="@dimen/spacer_2x" - android:paddingRight="@dimen/spacer_2x" android:textAlignment="center" hint:text="@string/add_a_new_card_using_the_button" /> </RelativeLayout>
\ No newline at end of file diff --git a/tab-layout-helper/src/main/java/it/niedermann/android/tablayouthelper/TabLayoutHelper.java b/tab-layout-helper/src/main/java/it/niedermann/android/tablayouthelper/TabLayoutHelper.java index 2402fb1de..449e9db8c 100644 --- a/tab-layout-helper/src/main/java/it/niedermann/android/tablayouthelper/TabLayoutHelper.java +++ b/tab-layout-helper/src/main/java/it/niedermann/android/tablayouthelper/TabLayoutHelper.java @@ -16,6 +16,8 @@ package it.niedermann.android.tablayouthelper; +import android.os.Build.VERSION; +import android.os.Build.VERSION_CODES; import android.view.Gravity; import android.view.View; import android.widget.LinearLayout; @@ -304,8 +306,13 @@ public class TabLayoutHelper { // NOTE: slidingTabStrip.getMeasuredWidth() method does not return correct width! // Need to measure each tabs and calculate the sum of them. - int tabLayoutWidth = tabLayout.getMeasuredWidth() - tabLayout.getPaddingLeft() - tabLayout.getPaddingRight(); - int tabLayoutHeight = tabLayout.getMeasuredHeight() - tabLayout.getPaddingTop() - tabLayout.getPaddingBottom(); + final int tabLayoutWidth; + if (VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN_MR1) { + tabLayoutWidth = tabLayout.getMeasuredWidth() - tabLayout.getPaddingStart() - tabLayout.getPaddingEnd(); + } else { + tabLayoutWidth = tabLayout.getMeasuredWidth() - tabLayout.getPaddingLeft() - tabLayout.getPaddingRight(); + } + final int tabLayoutHeight = tabLayout.getMeasuredHeight() - tabLayout.getPaddingTop() - tabLayout.getPaddingBottom(); if (childCount == 0) { return TabLayout.MODE_FIXED; |