Skip to content

Commit

Permalink
Merge pull request #35 from piotr-marendowski/master
Browse files Browse the repository at this point in the history
[UI]: Add padding and app's logo in the `about` layout
  • Loading branch information
vhaudiquet authored Jan 17, 2024
2 parents bc9ec82 + e335c00 commit d8762be
Showing 1 changed file with 28 additions and 5 deletions.
33 changes: 28 additions & 5 deletions app/src/main/res/layout/settings_fragment_about.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<ScrollView 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">
Expand All @@ -9,12 +10,20 @@
android:layout_height="wrap_content"
android:orientation="vertical">

<ImageView
android:id="@+id/imageView2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
app:srcCompat="@mipmap/ic_launcher" />

<com.google.android.material.textview.MaterialTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="20dp"
android:text="@string/app_name"
android:textAlignment="center"
android:textAppearance="@style/TextAppearance.MaterialComponents.Headline3"
android:text="@string/app_name" />
android:textAppearance="@style/TextAppearance.MaterialComponents.Headline3" />

<com.google.android.material.textview.MaterialTextView
android:id="@+id/about_version_text"
Expand All @@ -25,9 +34,10 @@

<com.google.android.material.textview.MaterialTextView
android:id="@+id/about_buildtype_text"
android:textAlignment="center"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="20dp"
android:textAlignment="center"
android:textAppearance="@style/TextAppearance.MaterialComponents.Body1" />

<com.google.android.material.textview.MaterialTextView
Expand Down Expand Up @@ -63,41 +73,54 @@
android:layout_height="wrap_content"
android:textAppearance="@style/TextAppearance.MaterialComponents.Body2"
android:layout_marginTop="20dp"
android:paddingLeft="20dp"
android:paddingRight="20dp"
android:text="@string/about_libraries_used" />

<com.google.android.material.textview.MaterialTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="20dp"
android:paddingRight="20dp"
android:textAppearance="@style/TextAppearance.MaterialComponents.Body2"
android:text="- Android Jetpack, license Apache 2.0, Copyright 2018 The Android Open Source Project, github.com/androidx/androidx"
tools:ignore="HardcodedText" />

<com.google.android.material.textview.MaterialTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="20dp"
android:paddingRight="20dp"
android:textAppearance="@style/TextAppearance.MaterialComponents.Body2"
android:text="- Picasso, license Apache 2.0, Copyright 2013 Square, Inc., github.com/square/picasso"
tools:ignore="HardcodedText" />

<com.google.android.material.textview.MaterialTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="20dp"
android:paddingRight="20dp"
android:textAppearance="@style/TextAppearance.MaterialComponents.Body2"
android:text="- Retrofit, license Apache 2.0, Copyright 2013 Square, Inc., github.com/square/retrofit"
tools:ignore="HardcodedText" />

<com.google.android.material.textview.MaterialTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="20dp"
android:paddingRight="20dp"
android:textAppearance="@style/TextAppearance.MaterialComponents.Body2"
android:text="- Spotify Android Auth, license Apache 2.0, Copyright 2015-2016 Spotify AB, github.com/spotify/android-auth"
tools:ignore="HardcodedText" />

<com.google.android.material.textview.MaterialTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textAppearance="@style/TextAppearance.MaterialComponents.Body2"
android:layout_marginBottom="20dp"
android:paddingLeft="20dp"
android:paddingRight="20dp"
android:text="- librespot-java, license Apache 2.0, Copyright 2021 devgianlu, github.com/librespot-org/librespot-java"
android:textAppearance="@style/TextAppearance.MaterialComponents.Body2"
tools:ignore="HardcodedText" />
</LinearLayout>
</ScrollView>
</ScrollView>

0 comments on commit d8762be

Please # to comment.