Resource house keeping + color cleanup

This commit is contained in:
Rahul Patel
2024-07-22 23:12:04 +05:30
parent bf7e8bf347
commit 2b65eeb742
120 changed files with 337 additions and 1133 deletions

View File

@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
<?xml version="1.0" encoding="utf-8"?><!--
~ Aurora Store
~ Copyright (C) 2021, Rahul Kumar Patel <whyorean@gmail.com>
~
@@ -20,9 +19,9 @@
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools">
android:layout_height="match_parent">
<androidx.fragment.app.FragmentContainerView
android:id="@+id/nav_host_fragment"

View File

@@ -76,10 +76,9 @@
<com.google.android.material.button.MaterialButton
android:id="@+id/playStoreButton"
style="@style/Widget.Material3.Button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:insetTop="@dimen/margin_small"
android:insetTop="@dimen/margin_xsmall"
android:insetBottom="@dimen/margin_xsmall"
android:text="@string/action_enable"
android:textColorHighlight="?colorOnPrimary"
@@ -113,10 +112,9 @@
<com.google.android.material.button.MaterialButton
android:id="@+id/marketButton"
style="@style/Widget.Material3.Button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:insetTop="@dimen/margin_small"
android:insetTop="@dimen/margin_xsmall"
android:insetBottom="@dimen/margin_xsmall"
android:text="@string/action_enable"
android:textColorHighlight="?colorOnPrimary"

View File

@@ -61,8 +61,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:autoLink="all"
android:textIsSelectable="true"
android:textAppearance="@style/TextAppearance.Aurora.Line1" />
android:textAppearance="@style/TextAppearance.Aurora.Line1"
android:textIsSelectable="true" />
<com.aurora.store.view.custom.layouts.ActionHeaderLayout
android:layout_width="match_parent"

View File

@@ -38,9 +38,9 @@
android:layout_height="match_parent">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"

View File

@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
<?xml version="1.0" encoding="utf-8"?><!--
~ Aurora Store
~ Copyright (C) 2021, Rahul Kumar Patel <whyorean@gmail.com>
~

View File

@@ -20,7 +20,6 @@
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"

View File

@@ -28,8 +28,8 @@
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:translationZ="1dp"
android:background="@color/colorTransparent"
android:translationZ="1dp"
app:layout_scrollFlags="enterAlways|exitUntilCollapsed" />
<com.airbnb.epoxy.EpoxyRecyclerView

View File

@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
<?xml version="1.0" encoding="utf-8"?><!--
~ Aurora Store
~ Copyright (C) 2021, Rahul Kumar Patel <whyorean@gmail.com>
~

View File

@@ -32,6 +32,7 @@
android:id="@+id/header_rating_reviews"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:headerSubtitle="@string/details_beta_available"
app:headerTitle="@string/details_beta" />
<RelativeLayout
@@ -42,40 +43,29 @@
android:layout_marginTop="@dimen/margin_small"
android:orientation="vertical">
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/txt_beta_title"
style="@style/AuroraTextStyle.Subtitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_toStartOf="@id/img_beta"
android:text="@string/details_beta_available" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/img_beta"
android:layout_width="@dimen/icon_size_medium"
android:layout_height="@dimen/icon_size_medium" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/txt_beta_subtitle"
style="@style/AuroraTextStyle.Line2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/txt_beta_title"
android:layout_alignStart="@id/txt_beta_title"
android:layout_alignEnd="@id/txt_beta_title"
android:layout_marginTop="@dimen/margin_small"
android:layout_marginStart="@dimen/margin_small"
android:layout_toEndOf="@id/img_beta"
android:maxLines="5"
android:text="@string/details_beta_description" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/img_beta"
android:layout_width="@dimen/icon_size_medium"
android:layout_height="@dimen/icon_size_medium"
android:layout_alignParentEnd="true"
android:layout_marginStart="@dimen/margin_normal" />
</RelativeLayout>
<com.google.android.material.button.MaterialButton
android:id="@+id/btn_beta_Action"
style="@style/Widget.Material3.Button.OutlinedButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:insetTop="@dimen/margin_xsmall"
android:insetBottom="@dimen/margin_xsmall"
android:minWidth="128dp"
android:text="@string/action_join" />
android:text="@string/action_join"
app:cornerRadius="@dimen/radius_small" />
</LinearLayout>

View File

@@ -40,12 +40,12 @@
android:scrollbars="none">
<LinearLayout
android:padding="@dimen/padding_small"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:divider="@drawable/divider_line"
android:dividerPadding="@dimen/padding_xsmall"
android:orientation="horizontal"
android:padding="@dimen/padding_small"
android:showDividers="middle">
<androidx.appcompat.widget.AppCompatTextView

View File

@@ -1,158 +0,0 @@
<?xml version="1.0" encoding="utf-8"?><!--
~ Aurora Store
~ Copyright (C) 2021, Rahul Kumar Patel <whyorean@gmail.com>
~
~ Aurora Store is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 2 of the License, or
~ (at your option) any later version.
~
~ Aurora Store is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with Aurora Store. If not, see <http://www.gnu.org/licenses/>.
~
-->
<ViewFlipper xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/view_flipper"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:layout_height="250dp">
<RelativeLayout
android:id="@+id/info_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/img_cover"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop" />
<LinearLayout
android:id="@+id/gradient_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:background="@drawable/bg_gradient_linear"
android:divider="@drawable/divider_alt"
android:orientation="horizontal"
android:showDividers="middle" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/progress_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg_sharp">
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/txt_progress_percent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginEnd="@dimen/margin_normal"
android:layout_toStartOf="@id/div"
android:text="0%"
android:textAppearance="@style/TextAppearance.Aurora.Title"
android:textSize="32sp" />
<View
android:id="@+id/div"
android:layout_width="4dp"
android:layout_height="64dp"
android:layout_centerInParent="true"
android:layout_marginStart="@dimen/margin_xsmall"
android:layout_marginTop="@dimen/margin_small"
android:background="@drawable/bg_sharp"
android:backgroundTint="?android:textColorPrimary" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginStart="@dimen/margin_large"
android:layout_toEndOf="@id/div"
android:orientation="vertical">
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/txt_speed"
style="@style/TextAppearance.Aurora.SubTitle.Alt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/download_speed_estimating" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/txt_eta"
style="@style/TextAppearance.Aurora.Line2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/download_eta_calculating" />
</LinearLayout>
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/img_cancel"
android:layout_width="@dimen/icon_size_category"
android:layout_height="@dimen/icon_size_category"
android:layout_below="@id/div"
android:layout_centerHorizontal="true"
android:layout_marginTop="@dimen/margin_normal"
android:background="@drawable/bg_round_solid"
android:padding="@dimen/padding_medium"
app:srcCompat="@drawable/ic_cancel" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/action_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/img_cover2"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop" />
<LinearLayout
android:id="@+id/gradient_layout2"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:divider="@drawable/divider"
android:gravity="center"
android:orientation="horizontal"
android:showDividers="middle">
<com.google.android.material.button.MaterialButton
android:id="@+id/btn_uninstall"
style="@style/Widget.Material3.Button.OutlinedButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/action_uninstall"
android:textAllCaps="false"
android:textColor="?android:textColorPrimary"
app:cornerRadius="28sp"
app:strokeColor="?android:textColorPrimary" />
<com.google.android.material.button.MaterialButton
android:id="@+id/btn_open"
style="@style/Widget.Material3.Button.UnelevatedButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/action_open"
android:textAllCaps="false"
android:textColor="?android:textColorPrimary"
app:cornerRadius="28sp"
app:strokeColor="?colorAccent" />
</LinearLayout>
</RelativeLayout>
</ViewFlipper>

View File

@@ -56,15 +56,15 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="@dimen/margin_normal"
android:orientation="vertical"
android:divider="@drawable/divider"
android:orientation="vertical"
android:showDividers="middle">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/input_title"
android:layout_width="match_parent"
android:layout_height="42dp"
android:background="@drawable/bg_search"
android:background="@drawable/bg_changelog"
android:gravity="center_vertical|center_horizontal"
android:hint="@string/details_ratings_title_hint"
android:imeOptions="flagNoExtractUi|actionDone"
@@ -78,7 +78,7 @@
android:id="@+id/input_review"
android:layout_width="match_parent"
android:layout_height="42dp"
android:background="@drawable/bg_search"
android:background="@drawable/bg_changelog"
android:gravity="center_vertical|center_horizontal"
android:hint="@string/details_think_this_app"
android:imeOptions="flagNoExtractUi|actionDone"
@@ -90,12 +90,11 @@
<com.google.android.material.button.MaterialButton
android:id="@+id/btn_post_review"
style="@style/Widget.Material3.Button.OutlinedButton"
app:cornerRadius="@dimen/margin_small"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:text="@string/action_post" />
android:text="@string/action_post"
app:cornerRadius="@dimen/margin_small" />
</LinearLayout>
</LinearLayout>
@@ -141,7 +140,7 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="3"
android:divider="@drawable/divider_alt"
android:divider="@drawable/divider"
android:orientation="vertical"
android:showDividers="middle" />
</LinearLayout>

View File

@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
<?xml version="1.0" encoding="utf-8"?><!--
~ Aurora Store
~ Copyright (C) 2021, Rahul Kumar Patel <whyorean@gmail.com>
~
@@ -26,8 +25,8 @@
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/img"
android:src="@mipmap/ic_launcher"
android:layout_width="@dimen/icon_size_small"
android:layout_height="@dimen/icon_size_small"
android:src="@mipmap/ic_launcher"
app:srcCompat="@drawable/bg_placeholder" />
</RelativeLayout>

View File

@@ -34,8 +34,8 @@
android:id="@+id/permission_labels"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_alignParentTop="true"
android:layout_marginStart="8dp"
android:layout_toEndOf="@id/img"
android:orientation="vertical"
android:textAppearance="@style/TextAppearance.Aurora.Line1" />

View File

@@ -1,50 +0,0 @@
<?xml version="1.0" encoding="utf-8"?><!--
~ Aurora Store
~ Copyright (C) 2021, Rahul Kumar Patel <whyorean@gmail.com>
~
~ Aurora Store is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 2 of the License, or
~ (at your option) any later version.
~
~ Aurora Store is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with Aurora Store. If not, see <http://www.gnu.org/licenses/>.
~
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<ViewFlipper
android:id="@+id/view_flipper"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:ignore="UselessParent">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/shimmer_recycler"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:overScrollMode="never" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/data_recycler"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipToPadding="true"
android:overScrollMode="never" />
<RelativeLayout
android:id="@+id/error_layout"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</ViewFlipper>
</LinearLayout>

View File

@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Derived from https://github.com/androidx/androidx/blob/8cb282cc/preference/preference/res/layout/preference_widget_switch_compat.xml -->
<?xml version="1.0" encoding="utf-8"?><!-- Derived from https://github.com/androidx/androidx/blob/8cb282cc/preference/preference/res/layout/preference_widget_switch_compat.xml -->
<com.google.android.material.materialswitch.MaterialSwitch xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/switchWidget"

View File

@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
@@ -22,8 +21,8 @@
android:id="@+id/img_icon"
android:layout_width="@dimen/icon_size_category"
android:layout_height="@dimen/icon_size_category"
android:src="@drawable/ic_download_manager"
android:layout_centerVertical="true"
android:src="@drawable/ic_download_manager"
app:tint="@color/colorAccent" />
<TextView

View File

@@ -40,7 +40,7 @@
android:layout_width="@dimen/icon_size_category"
android:layout_height="@dimen/icon_size_category"
android:layout_centerVertical="true"
tools:src="@drawable/bg_circle" />
tools:src="@drawable/bg_placeholder" />
<TextView
android:id="@+id/txt_header"

View File

@@ -41,7 +41,7 @@
android:layout_width="@dimen/icon_size_category"
android:layout_height="@dimen/icon_size_category"
android:layout_centerVertical="true"
tools:src="@drawable/bg_circle" />
tools:src="@drawable/bg_placeholder" />
<TextView
android:id="@+id/txt_header"

View File

@@ -19,15 +19,15 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:padding="@dimen/padding_xsmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:padding="@dimen/padding_xsmall">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/img_icon"
android:layout_width="@dimen/icon_size_cluster"
android:layout_height="@dimen/icon_size_cluster"
android:layout_centerHorizontal="true"/>
android:layout_centerHorizontal="true" />
<TextView
android:id="@+id/txt_name"

View File

@@ -55,7 +55,7 @@
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/margin_normal"
android:layout_toEndOf="@id/img_icon"
android:background="@color/colorPrimaryAlt"
android:background="?colorShimmer"
android:maxLines="1"
android:textAppearance="@style/TextAppearance.Aurora.Line2" />
@@ -69,7 +69,7 @@
android:layout_centerVertical="true"
android:layout_marginTop="@dimen/margin_xxsmall"
android:layout_marginBottom="@dimen/margin_xxsmall"
android:background="@color/colorPrimaryAlt"
android:background="?colorShimmer"
android:maxLines="2"
android:textAppearance="@style/TextAppearance.Aurora.Line3" />

View File

@@ -21,7 +21,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="@dimen/padding_xsmall">
android:padding="@dimen/padding_xxsmall">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/img_icon"

View File

@@ -20,7 +20,6 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_gravity="center_horizontal"
android:layout_margin="@dimen/margin_xsmall">
@@ -28,7 +27,7 @@
android:id="@+id/img_icon"
android:layout_width="@dimen/icon_size_cluster"
android:layout_height="@dimen/icon_size_cluster"
android:layout_centerInParent="true"
android:scaleX="0.5"
android:scaleY="0.5"
android:layout_centerInParent="true" />
android:scaleY="0.5" />
</RelativeLayout>

View File

@@ -18,17 +18,19 @@
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="@dimen/padding_small"
>
android:background="?android:selectableItemBackground"
android:padding="@dimen/padding_small">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/img_background"
android:layout_width="@dimen/icon_size_category"
android:layout_height="@dimen/icon_size_category"
android:layout_centerVertical="true" />
android:layout_width="@dimen/icon_size_default"
android:layout_height="@dimen/icon_size_default"
android:layout_centerVertical="true"
app:tint="?colorAccent" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/txt_name"
@@ -39,7 +41,8 @@
android:layout_marginStart="@dimen/margin_normal"
android:layout_toEndOf="@id/img_background"
android:ellipsize="end"
android:maxLines="2"
android:maxLines="1"
android:singleLine="true"
android:textSize="16sp"
tools:text="Category" />
</RelativeLayout>

View File

@@ -1,10 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:tools="http://schemas.android.com/tools"
android:background="@drawable/bg_outlined_padded"
android:orientation="horizontal">
android:background="?android:selectableItemBackground"
android:orientation="horizontal"
android:padding="@dimen/padding_small">
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/url"

View File

@@ -24,9 +24,9 @@
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/title"
android:backgroundTint="?colorControlNormal"
android:layout_width="48dp"
android:layout_height="2dp"
android:layout_centerInParent="true"
android:background="@drawable/divider_line" />
android:background="@drawable/divider_line"
android:backgroundTint="?colorControlNormal" />
</RelativeLayout>

View File

@@ -18,7 +18,6 @@
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="@dimen/padding_small">
@@ -27,5 +26,5 @@
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerInParent="true"/>
android:layout_centerInParent="true" />
</RelativeLayout>

View File

@@ -18,42 +18,42 @@
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:padding="@dimen/padding_small"
android:textIsSelectable="true">
<LinearLayout
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/txt_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingStart="@dimen/padding_large"
android:paddingEnd="@dimen/padding_normal"
android:textIsSelectable="true">
android:ellipsize="end"
android:maxLines="1"
android:textAppearance="@style/TextAppearance.Aurora.Line1"
android:textIsSelectable="true"
tools:text="Line1" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/txt_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLines="1"
android:textIsSelectable="true"
android:textAppearance="@style/TextAppearance.Aurora.Line1" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/txt_subtitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/txt_title"
android:ellipsize="end"
android:maxLines="2"
android:textAppearance="@style/TextAppearance.Aurora.Line2"
android:textIsSelectable="true"
tools:text="Line2" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/txt_subtitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLines="2"
android:textIsSelectable="true"
android:textAppearance="@style/TextAppearance.Aurora.Line2" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/txt_description"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLines="1"
android:textIsSelectable="true"
android:textAppearance="@style/TextAppearance.Aurora.Line3" />
</LinearLayout>
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/txt_description"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/txt_subtitle"
android:ellipsize="end"
android:maxLines="1"
android:textAppearance="@style/TextAppearance.Aurora.Line3"
android:textIsSelectable="true"
tools:text="Line3" />
</RelativeLayout>

View File

@@ -22,7 +22,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingStart="@dimen/padding_normal"
android:paddingStart="@dimen/padding_small"
android:paddingEnd="@dimen/padding_small">
<androidx.appcompat.widget.AppCompatImageView

View File

@@ -21,9 +21,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="@dimen/padding_medium"
android:paddingTop="@dimen/padding_xsmall"
android:paddingEnd="@dimen/padding_small">
android:padding="@dimen/padding_xsmall">
<TextView
android:id="@+id/line1"

View File

@@ -51,7 +51,6 @@
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:layout_marginStart="@dimen/margin_small"
android:background="?selectableItemBackgroundBorderless"
android:contentDescription="@string/expand"
android:padding="@dimen/padding_xsmall"
app:srcCompat="@drawable/ic_arrow_right"

View File

@@ -21,10 +21,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingStart="@dimen/padding_medium"
android:paddingTop="@dimen/padding_xsmall"
android:paddingEnd="@dimen/padding_small"
android:paddingBottom="@dimen/padding_xsmall">
android:padding="@dimen/padding_xsmall">
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/txt_title"

View File

@@ -20,8 +20,9 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/bg_outlined_padded"
android:orientation="horizontal">
android:background="?android:selectableItemBackground"
android:orientation="horizontal"
android:padding="@dimen/padding_small">
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/line1"

View File

@@ -18,12 +18,10 @@
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="@dimen/padding_small"
android:paddingEnd="@dimen/padding_small">
android:padding="@dimen/padding_xsmall">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/img"
@@ -36,12 +34,12 @@
android:id="@+id/line1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/margin_normal"
android:layout_marginStart="@dimen/margin_small"
android:layout_toEndOf="@id/img"
android:maxLines="1"
android:textAlignment="viewStart"
android:textAppearance="@style/TextAppearance.Aurora.Line1"
tools:text="File Name" />
tools:text="Line1" />
<TextView
android:id="@+id/line2"
@@ -53,5 +51,5 @@
android:maxLines="1"
android:textAlignment="viewStart"
android:textAppearance="@style/TextAppearance.Aurora.Line2"
tools:text="File Size" />
tools:text="Line2" />
</RelativeLayout>

View File

@@ -28,7 +28,7 @@
android:layout_width="@dimen/icon_size"
android:layout_height="@dimen/icon_size"
android:layout_centerInParent="true"
app:tint="?android:textColorPrimary"
app:tint="?colorPrimary"
tools:src="@drawable/ic_updates" />
<TextView

View File

@@ -46,9 +46,9 @@
style="@style/Widget.Material3.Button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:insetTop="@dimen/margin_small"
android:insetTop="@dimen/margin_xsmall"
android:insetBottom="@dimen/margin_xsmall"
android:text="@string/action_grant"
android:textColorHighlight="?colorOnPrimary"
app:cornerRadius="@dimen/margin_small" />
android:textColor="?colorSurface"
app:cornerRadius="@dimen/radius_small" />
</LinearLayout>

View File

@@ -34,7 +34,8 @@
android:layout_marginEnd="@dimen/margin_small"
android:textAppearance="@style/TextAppearance.Aurora.Line1"
android:textColor="?android:attr/textColorPrimary"
android:textStyle="bold" />
android:textStyle="bold"
tools:text="4.0" />
<com.google.android.material.progressindicator.LinearProgressIndicator
android:id="@+id/avg_rating"
@@ -44,8 +45,8 @@
android:layout_centerVertical="true"
android:layout_toEndOf="@+id/avg_num"
android:indeterminate="false"
app:indicatorColor="@color/colorAccent"
app:trackColor="@android:color/darker_gray"
app:indicatorColor="?colorPrimary"
app:trackColor="?colorControlNormal"
app:trackCornerRadius="10dp"
app:trackThickness="8dp"
tools:progress="40" />

View File

@@ -20,9 +20,9 @@
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:tools="http://schemas.android.com/tools"
android:background="?selectableItemBackground"
android:padding="@dimen/padding_large">

View File

@@ -25,20 +25,14 @@
<com.google.android.material.button.MaterialButton
android:id="@+id/btn"
style="@style/Widget.Material3.Button.OutlinedButton.Icon"
style="@style/Widget.Material3.Button.IconButton.Outlined"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:backgroundTint="?android:colorBackground"
android:paddingVertical="@dimen/padding_normal"
android:paddingStart="24dp"
android:paddingEnd="48dp"
android:textAlignment="viewStart"
android:textAllCaps="false"
android:textAppearance="@style/TextAppearance.Aurora.Line1"
android:textColor="?android:textColorPrimary"
app:iconPadding="@dimen/padding_large"
app:iconPadding="@dimen/padding_normal"
app:iconTint="?colorAccent"
app:strokeColor="?colorAccent"
tools:icon="@drawable/ic_anonymous"
tools:text="Button Name" />
@@ -49,11 +43,7 @@
android:layout_height="@dimen/icon_size_default"
android:layout_alignEnd="@id/btn"
android:layout_centerVertical="true"
android:layout_marginEnd="@dimen/icon_size_default"
android:layout_marginEnd="@dimen/margin_large"
android:elevation="8dp"
android:visibility="invisible" />
</RelativeLayout>

View File

@@ -28,6 +28,5 @@
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?android:windowBackground"
app:layout_scrollFlags="enterAlways|exitUntilCollapsed" />
</com.google.android.material.appbar.AppBarLayout>

View File

@@ -36,7 +36,6 @@
<com.google.android.material.button.MaterialButton
android:id="@+id/btnPositive"
style="@style/Widget.Material3.Button.OutlinedButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/action_update"
@@ -49,7 +48,6 @@
<com.google.android.material.button.MaterialButton
android:id="@+id/btnQueued"
style="@style/Widget.Material3.Button.OutlinedButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:enabled="false"
@@ -63,7 +61,6 @@
<com.google.android.material.button.MaterialButton
android:id="@+id/btnNegative"
style="@style/Widget.Material3.Button.OutlinedButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/action_cancel"