Improve editor choice & expanded stream UI

This commit is contained in:
Rahul Kumar Patel
2021-02-22 00:10:08 +05:30
parent 86fac3e7c7
commit 548cced8a2
14 changed files with 318 additions and 57 deletions

View File

@@ -0,0 +1,25 @@
<?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/>.
~
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="8dp" />
<solid android:color="@color/colorScrim" />
</shape>

View File

@@ -17,18 +17,37 @@
~
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<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:orientation="vertical">
<ViewStub
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inflatedId="@+id/recycler_view" />
android:layout_gravity="start"
android:layout_marginStart="@dimen/margin_small"
android:layout_marginEnd="@dimen/margin_small"
android:orientation="horizontal">
<ViewStub
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:inflatedId="@+id/title_view" />
</LinearLayout>
android:layout_centerVertical="true"
android:inflatedId="@+id/header_view" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toEndOf="@+id/header_view"
android:orientation="vertical"
tools:ignore="UnknownIdInLayout">
<ViewStub
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inflatedId="@+id/section_view" />
<ViewStub
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inflatedId="@+id/recycler_view" />
</LinearLayout>
</RelativeLayout>

View File

@@ -21,21 +21,15 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="@dimen/padding_large"
android:paddingTop="@dimen/padding_small"
android:paddingEnd="@dimen/padding_large"
android:paddingBottom="@dimen/padding_small">
android:padding="@dimen/padding_small">
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/title"
android:textAppearance="@style/TextAppearance.Aurora.Line1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:drawableStart="@drawable/ic_arrow_right"
android:drawablePadding="@dimen/padding_small"
android:maxLines="4"
android:gravity="center_vertical"
android:singleLine="false"
android:layout_centerInParent="true"
android:maxLines="4"
android:singleLine="false"
android:textAppearance="@style/TextAppearance.Aurora.Line1"
app:drawableTint="?colorControlNormal" />
</RelativeLayout>

View File

@@ -23,6 +23,6 @@
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/img"
android:layout_width="@dimen/icon_size_large"
android:layout_height="@dimen/icon_size_large" />
android:layout_width="match_parent"
android:layout_height="match_parent" />
</RelativeLayout>

View File

@@ -0,0 +1,29 @@
<?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/>.
~
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/img"
android:layout_width="@dimen/screenshot_width_mini"
android:layout_height="@dimen/screenshot_height_mini"
android:adjustViewBounds="true" />
</RelativeLayout>

View File

@@ -47,6 +47,10 @@
<dimen name="screenshot_height">192dp</dimen>
<dimen name="screenshot_width">108dp</dimen>
<dimen name="screenshot_height_mini">120dp</dimen>
<dimen name="screenshot_width_mini">68dp</dimen>
<dimen name="height_bottom_adj">64dp</dimen>
<dimen name="cluster_size">128dp</dimen>