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)
fun bind(timeRange: TimeRange) {
binding.innerContainer.minimumHeight = 48.dpToPx
binding.innerContainer.minimumHeight = 60.dpToPx
// Set capitalized title.
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.
*/
fun bind(category: String) {
binding.innerContainer.minimumHeight = 48.dpToPx
binding.innerContainer.minimumHeight = 60.dpToPx
// Set capitalized title.
binding.title.text = category

View File

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

View File

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

View File

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

View File

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