Adding more size to few things (#495)

* Adding more size to few things

* Fixing margins and paddings

* Reverting categories_item

* Increasing size of innerContainer
This commit is contained in:
Román 2022-01-15 22:58:39 +00:00 committed by GitHub
parent 04f284e27b
commit 3c598f459a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 33 additions and 28 deletions

View File

@ -24,7 +24,7 @@ class BiometricTimesHolder(view: View, val adapter: BiometricTimesAdapter) : Fle
*/ */
@OptIn(ExperimentalTime::class) @OptIn(ExperimentalTime::class)
fun bind(timeRange: TimeRange) { fun bind(timeRange: TimeRange) {
binding.innerContainer.minimumHeight = 48.dpToPx binding.innerContainer.minimumHeight = 60.dpToPx
// Set capitalized title. // Set capitalized title.
binding.title.text = timeRange.getFormattedString(itemView.context) binding.title.text = timeRange.getFormattedString(itemView.context)

View File

@ -22,7 +22,7 @@ class RepoHolder(view: View, val adapter: RepoAdapter) : FlexibleViewHolder(view
* @param category The category to bind. * @param category The category to bind.
*/ */
fun bind(category: String) { fun bind(category: String) {
binding.innerContainer.minimumHeight = 48.dpToPx binding.innerContainer.minimumHeight = 60.dpToPx
// Set capitalized title. // Set capitalized title.
binding.title.text = category binding.title.text = category

View File

@ -22,7 +22,7 @@ class SourceCategoryHolder(view: View, val adapter: SourceCategoryAdapter) : Fle
* @param category The category to bind. * @param category The category to bind.
*/ */
fun bind(category: String) { fun bind(category: String) {
binding.innerContainer.minimumHeight = 48.dpToPx binding.innerContainer.minimumHeight = 60.dpToPx
// Set capitalized title. // Set capitalized title.
binding.title.text = category binding.title.text = category

View File

@ -36,6 +36,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="8dp" android:layout_marginStart="8dp"
android:layout_marginTop="8dp" android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:scrollbars="none" android:scrollbars="none"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"

View File

@ -114,7 +114,7 @@
android:ellipsize="end" android:ellipsize="end"
android:maxLines="1" android:maxLines="1"
android:paddingTop="4dp" android:paddingTop="4dp"
android:paddingBottom="2dp" android:paddingBottom="1dp"
android:textAppearance="?attr/textAppearanceTitleSmall" android:textAppearance="?attr/textAppearanceTitleSmall"
android:textIsSelectable="false" android:textIsSelectable="false"
app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintLeft_toLeftOf="parent"
@ -125,7 +125,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:clickable="false" android:clickable="false"
android:paddingTop="2dp" android:paddingTop="1dp"
android:paddingBottom="4dp" android:paddingBottom="4dp"
android:textAppearance="?attr/textAppearanceBodyMedium" android:textAppearance="?attr/textAppearanceBodyMedium"
android:textColor="?android:attr/textColorSecondary" android:textColor="?android:attr/textColorSecondary"

View File

@ -82,30 +82,32 @@
<com.google.android.material.switchmaterial.SwitchMaterial <com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/eh_autoscroll" android:id="@+id/eh_autoscroll"
android:layout_width="wrap_content" android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight="1" android:layout_weight="1"
android:gravity="center_horizontal|center_vertical" android:gravity="center_horizontal|center_vertical"
android:padding="8dp" android:paddingStart="16dp"
android:paddingEnd="16dp"
android:text="@string/eh_autoscroll" android:text="@string/eh_autoscroll"
android:textColor="?attr/colorOnSurface"/> android:textColor="?attr/colorOnSurface"
android:textSize="13sp" />
<EditText <EditText
android:id="@+id/eh_autoscroll_freq" android:id="@+id/eh_autoscroll_freq"
android:layout_width="50dp" android:layout_width="100dp"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:layout_weight="0.2" android:backgroundTint="?attr/colorAccent"
android:ems="10" android:gravity="center_horizontal|center_vertical"
android:gravity="start|center_vertical"
android:importantForAutofill="no" android:importantForAutofill="no"
android:inputType="numberDecimal" android:inputType="numberDecimal"
android:maxLength="10"/> android:maxLength="10"
android:singleLine="true" />
<Button <Button
android:id="@+id/eh_autoscroll_help" android:id="@+id/eh_autoscroll_help"
style="@style/Widget.MaterialComponents.Button.TextButton" style="@style/Widget.MaterialComponents.Button.TextButton"
android:layout_width="40dp" android:layout_width="50dp"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:text="\?" android:text="\?"
android:textColor="?attr/colorOnSurface" android:textColor="?attr/colorOnSurface"
android:textSize="15sp" android:textSize="15sp"
@ -116,7 +118,7 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="0dp"
android:layout_weight="1" android:layout_weight="1"
android:orientation="horizontal"> android:orientation="horizontal">
@ -124,17 +126,18 @@
android:id="@+id/eh_retry_all" android:id="@+id/eh_retry_all"
style="@style/Widget.MaterialComponents.Button.TextButton" style="@style/Widget.MaterialComponents.Button.TextButton"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:layout_weight="1" android:layout_weight="1"
android:fontFamily="sans-serif" android:fontFamily="sans-serif"
android:text="@string/eh_retry_all" android:text="@string/eh_retry_all"
android:textColor="?attr/colorOnSurface"/> android:textColor="?attr/colorOnSurface"
android:textSize="13sp" />
<Button <Button
android:id="@+id/eh_retry_all_help" android:id="@+id/eh_retry_all_help"
style="@style/Widget.MaterialComponents.Button.TextButton" style="@style/Widget.MaterialComponents.Button.TextButton"
android:layout_width="40dp" android:layout_width="50dp"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:text="\?" android:text="\?"
android:textColor="?attr/colorOnSurface" android:textColor="?attr/colorOnSurface"
android:textSize="15sp" android:textSize="15sp"
@ -145,17 +148,18 @@
android:id="@+id/eh_boost_page" android:id="@+id/eh_boost_page"
style="@style/Widget.MaterialComponents.Button.TextButton" style="@style/Widget.MaterialComponents.Button.TextButton"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:layout_weight="1" android:layout_weight="1"
android:fontFamily="sans-serif" android:fontFamily="sans-serif"
android:text="@string/eh_boost_page" android:text="@string/eh_boost_page"
android:textColor="?attr/colorOnSurface"/> android:textColor="?attr/colorOnSurface"
android:textSize="13sp" />
<Button <Button
android:id="@+id/eh_boost_page_help" android:id="@+id/eh_boost_page_help"
style="@style/Widget.MaterialComponents.Button.TextButton" style="@style/Widget.MaterialComponents.Button.TextButton"
android:layout_width="40dp" android:layout_width="50dp"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:text="\?" android:text="\?"
android:textColor="?attr/colorOnSurface" android:textColor="?attr/colorOnSurface"
android:textSize="15sp" android:textSize="15sp"