Skip to content

Commit

Permalink
Improvement app heading design
Browse files Browse the repository at this point in the history
  • Loading branch information
WSTxda committed Mar 10, 2024
1 parent a9f17db commit 6eaa599
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 28 deletions.
16 changes: 16 additions & 0 deletions play-services-base/core/src/main/res/drawable/ic_patcher.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:tint="?colorControlNormal"
android:viewportWidth="24"
android:viewportHeight="24">
<group>
<clip-path android:pathData="M0 0H24V24H0z" />
<group>
<path
android:fillColor="#000000"
android:pathData="M18.85 21.98c-0.13 0-0.26-0.03-0.38-0.07-0.11-0.04-0.22-0.11-0.32-0.21l-5.1-5.1c-0.1-0.1-0.17-0.2-0.21-0.33-0.04-0.11-0.06-0.24-0.06-0.37s0.02-0.26 0.06-0.38c0.04-0.11 0.11-0.22 0.21-0.32l2.13-2.13c0.1-0.1 0.2-0.17 0.32-0.2 0.12-0.05 0.24-0.07 0.38-0.07 0.13 0 0.25 0.02 0.37 0.06 0.12 0.04 0.23 0.12 0.32 0.21l5.1 5.1c0.1 0.1 0.18 0.21 0.22 0.33 0.04 0.12 0.06 0.24 0.06 0.38 0 0.13-0.02 0.25-0.06 0.37-0.04 0.12-0.12 0.23-0.21 0.32l-2.13 2.13c-0.1 0.1-0.2 0.17-0.32 0.21-0.12 0.04-0.25 0.07-0.38 0.07Zm0-2.38l0.72-0.73-3.67-3.67-0.72 0.73 3.67 3.67ZM5.12 22C5 22 4.87 21.98 4.75 21.93 4.6 21.88 4.5 21.8 4.4 21.7l-2.1-2.1c-0.1-0.1-0.17-0.21-0.22-0.34C2.02 19.14 2 19.01 2 18.87c0-0.13 0.02-0.25 0.08-0.37 0.04-0.12 0.12-0.23 0.22-0.32l5.3-5.3h2.13l0.84-0.86L6.45 7.9H5.03L2 4.87l2.83-2.82 3.02 3.03V6.5l4.13 4.13 2.9-2.9-1.08-1.08 1.4-1.4h-2.82l-0.7-0.7L15.21 1l0.7 0.7v2.83l1.4-1.4 3.55 3.54c0.29 0.29 0.5 0.6 0.65 0.97 0.16 0.36 0.23 0.74 0.23 1.14 0 0.4-0.07 0.78-0.23 1.15-0.14 0.36-0.36 0.69-0.64 0.97l-2.13-2.13-1.4 1.4-1.05-1.04-5.18 5.17v2.1l-5.3 5.3c-0.1 0.1-0.2 0.18-0.32 0.23C5.38 21.98 5.26 22 5.12 22Zm0-2.4l4.25-4.25v-0.72H8.65L4.4 18.87l0.72 0.73Zm0 0L4.4 18.87l0.38 0.36 0.34 0.37Z" />
</group>
</group>
</vector>
Original file line number Diff line number Diff line change
Expand Up @@ -3,66 +3,74 @@
~ SPDX-FileCopyrightText: 2023 microG Project Team
~ SPDX-License-Identifier: Apache-2.0
-->

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/card"
style="?attr/materialCardViewFilledStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="?attr/listPreferredItemPaddingStart"
android:paddingTop="32dp"
android:paddingEnd="?attr/listPreferredItemPaddingEnd"
android:paddingBottom="32dp">
android:layout_margin="17dp"
android:clickable="true"
android:focusable="true"
app:cardBackgroundColor="?colorSurfaceContainer"
app:cardCornerRadius="28dp">

<LinearLayout
android:layout_width="wrap_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:gravity="center_horizontal"
android:orientation="vertical">
android:orientation="vertical"
android:paddingLeft="24dp"
android:paddingTop="24dp"
android:paddingRight="24dp"
android:paddingBottom="20dp">

<ImageView
android:id="@android:id/icon"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_gravity="center"
android:antialias="true"
android:scaleType="fitCenter"
tools:src="@android:mipmap/sym_def_app_icon" />
android:scaleType="fitCenter" />

<TextView
android:id="@android:id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_gravity="center"
android:layout_marginTop="12dp"
android:ellipsize="marquee"
android:gravity="center"
android:singleLine="false"
android:textAppearance="@style/TextAppearance.AppCompat.Title"
android:textColor="?android:attr/textColorPrimary"
tools:text="@tools:sample/lorem" />
android:textAppearance="?attr/textAppearanceTitleLarge"
android:textColor="?android:attr/textColorPrimary" />

<TextView
android:id="@+id/version_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="8dp"
android:textAppearance="@style/TextAppearance.AppCompat.Subhead"
android:textColor="?android:textColorPrimary"
tools:text="1.0.0" />
android:textAppearance="?attr/textAppearanceTitleMedium"
android:textColor="?android:textColorPrimary" />

<TextView
android:id="@+id/package_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="@style/TextAppearance.AppCompat.Subhead"
android:textColor="?android:textColorSecondary"
tools:text="com.example.package" />
android:layout_gravity="center"
android:layout_marginBottom="12dp"
android:textAppearance="?attr/textAppearanceBodyMedium"
android:textColor="?android:attr/textColorSecondary" />

<TextView
<com.google.android.material.chip.Chip
android:id="@+id/patcher_name"
style="@style/Widget.Material3.Chip.Assist"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="@style/TextAppearance.AppCompat.Body2"
android:textColor="?android:colorAccent"
tools:text="ReVanced" />
android:layout_gravity="center"
android:clickable="false"
app:chipBackgroundColor="?colorPrimaryContainer"
app:chipIcon="@drawable/ic_patcher"
app:chipStrokeWidth="0dp" />
</LinearLayout>
</RelativeLayout>
</com.google.android.material.card.MaterialCardView>

0 comments on commit 6eaa599

Please sign in to comment.