Layout update with constraints and font correction

This commit is contained in:
h4h13 2019-10-03 00:24:39 +05:30
parent 034767dfda
commit 012921f886
24 changed files with 384 additions and 486 deletions

View file

@ -0,0 +1,54 @@
/*
* Copyright (c) 2019 Hemanth Savarala.
*
* Licensed under the GNU General Public License v3
*
* This 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 3 of the License, or (at your option) any later version.
*
* This software 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.
*/
package code.name.monkey.retromusic.views
import android.content.Context
import android.util.AttributeSet
import android.view.View
import android.widget.FrameLayout
import code.name.monkey.retromusic.R
import code.name.monkey.retromusic.extensions.hide
import kotlinx.android.synthetic.main.list_item_view.view.*
/**
* Created by hemanths on 2019-10-02.
*/
class ListItemView : FrameLayout {
constructor(context: Context) : super(context) {
init(context, null)
}
constructor(context: Context, attrs: AttributeSet) : super(context, attrs) {
init(context, attrs)
}
constructor(context: Context, attrs: AttributeSet, defStyleAttr: Int) : super(context, attrs, defStyleAttr) {
init(context, attrs)
}
private fun init(context: Context, attrs: AttributeSet?) {
View.inflate(context, R.layout.list_item_view, this)
val typedArray = context.obtainStyledAttributes(attrs, R.styleable.ListItemView)
appCompatImageView.setImageDrawable(typedArray.getDrawable(R.styleable.ListItemView_listItemIcon))
title.text = typedArray.getText(R.styleable.ListItemView_listItemTitle)
if (typedArray.hasValue(R.styleable.ListItemView_listItemSummary)) {
summary.text = typedArray.getText(R.styleable.ListItemView_listItemSummary)
} else {
summary.hide()
}
typedArray.recycle()
}
}

View file

@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
~ Copyright (c) 2019 Hemanth Savarala. ~ Copyright (c) 2019 Hemanth Savarala.
~ ~
~ Licensed under the GNU General Public License v3 ~ Licensed under the GNU General Public License v3
@ -15,6 +14,7 @@
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" <androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent">
@ -53,7 +53,9 @@
android:id="@+id/toolbar" android:id="@+id/toolbar"
style="@style/Toolbar" style="@style/Toolbar"
app:layout_collapseMode="pin" app:layout_collapseMode="pin"
app:navigationIcon="@drawable/ic_keyboard_backspace_black_24dp" /> app:navigationIcon="@drawable/ic_keyboard_backspace_black_24dp"
app:titleTextAppearance="@style/ToolbarTextAppearanceNormal"
tools:title="@string/action_settings" />
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout> </androidx.coordinatorlayout.widget.CoordinatorLayout>

View file

@ -16,7 +16,8 @@
android:id="@+id/toolbar" android:id="@+id/toolbar"
style="@style/Toolbar" style="@style/Toolbar"
app:navigationIcon="@drawable/ic_keyboard_backspace_black_24dp" app:navigationIcon="@drawable/ic_keyboard_backspace_black_24dp"
app:title="@string/profile" /> app:title="@string/profile"
app:titleTextAppearance="@style/ToolbarTextAppearanceNormal" />
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>

View file

@ -15,6 +15,7 @@
android:id="@+id/toolbar" android:id="@+id/toolbar"
style="@style/Toolbar" style="@style/Toolbar"
app:layout_collapseMode="pin" app:layout_collapseMode="pin"
app:titleTextAppearance="@style/ToolbarTextAppearanceNormal"
app:navigationIcon="@drawable/ic_keyboard_backspace_black_24dp" app:navigationIcon="@drawable/ic_keyboard_backspace_black_24dp"
app:title="@string/action_about" /> app:title="@string/action_about" />

View file

@ -16,7 +16,8 @@
android:id="@+id/toolbar" android:id="@+id/toolbar"
style="@style/Toolbar" style="@style/Toolbar"
app:layout_collapseMode="pin" app:layout_collapseMode="pin"
app:title="@string/report_bug" /> app:title="@string/report_bug"
app:titleTextAppearance="@style/ToolbarTextAppearanceNormal" />
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>

View file

@ -10,27 +10,16 @@
android:id="@+id/appBarLayout" android:id="@+id/appBarLayout"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:elevation="0dp" app:liftOnScroll="true">
app:elevation="0dp">
<com.google.android.material.appbar.CollapsingToolbarLayout <com.google.android.material.appbar.MaterialToolbar
android:layout_width="match_parent" android:id="@+id/toolbar"
android:layout_height="wrap_content" style="@style/Toolbar"
app:titleEnabled="false"> app:layout_collapseMode="pin"
app:title="@string/support_development"
app:titleTextAppearance="@style/ToolbarTextAppearanceNormal"
tools:ignore="UnusedAttribute" />
<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar"
style="@style/Toolbar"
app:layout_collapseMode="pin"
app:title="@string/support_development"
tools:ignore="UnusedAttribute" />
</com.google.android.material.appbar.CollapsingToolbarLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?dividerColor" />
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>
<androidx.core.widget.NestedScrollView <androidx.core.widget.NestedScrollView

View file

@ -15,7 +15,8 @@
style="@style/Toolbar" style="@style/Toolbar"
app:layout_collapseMode="pin" app:layout_collapseMode="pin"
app:navigationIcon="@drawable/ic_keyboard_backspace_black_24dp" app:navigationIcon="@drawable/ic_keyboard_backspace_black_24dp"
app:title="@string/equalizer" /> app:title="@string/equalizer"
app:titleTextAppearance="@style/ToolbarTextAppearanceNormal" />
<androidx.appcompat.widget.SwitchCompat <androidx.appcompat.widget.SwitchCompat

File diff suppressed because one or more lines are too long

View file

@ -19,6 +19,7 @@
app:layout_collapseMode="pin" app:layout_collapseMode="pin"
app:navigationIcon="@drawable/ic_keyboard_backspace_black_24dp" app:navigationIcon="@drawable/ic_keyboard_backspace_black_24dp"
app:title="@string/licenses" app:title="@string/licenses"
app:titleTextAppearance="@style/ToolbarTextAppearanceNormal"
tools:ignore="UnusedAttribute" /> tools:ignore="UnusedAttribute" />
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>

View file

@ -26,6 +26,7 @@
style="@style/Toolbar" style="@style/Toolbar"
app:layout_collapseMode="pin" app:layout_collapseMode="pin"
app:title="@string/queue" app:title="@string/queue"
app:titleTextAppearance="@style/ToolbarTextAppearanceNormal"
tools:ignore="UnusedAttribute" /> tools:ignore="UnusedAttribute" />
</com.google.android.material.appbar.CollapsingToolbarLayout> </com.google.android.material.appbar.CollapsingToolbarLayout>

View file

@ -40,6 +40,7 @@
style="@style/Toolbar" style="@style/Toolbar"
app:layout_collapseMode="pin" app:layout_collapseMode="pin"
app:title="@string/buy_retro_music_pro" app:title="@string/buy_retro_music_pro"
app:titleTextAppearance="@style/ToolbarTextAppearanceNormal"
tools:ignore="UnusedAttribute" /> tools:ignore="UnusedAttribute" />
</com.google.android.material.appbar.CollapsingToolbarLayout> </com.google.android.material.appbar.CollapsingToolbarLayout>

View file

@ -37,6 +37,7 @@
style="@style/Toolbar" style="@style/Toolbar"
app:navigationIcon="@drawable/ic_keyboard_backspace_black_24dp" app:navigationIcon="@drawable/ic_keyboard_backspace_black_24dp"
app:title="@string/action_tag_editor" app:title="@string/action_tag_editor"
app:titleTextAppearance="@style/ToolbarTextAppearanceNormal"
tools:ignore="UnusedAttribute" /> tools:ignore="UnusedAttribute" />
</com.google.android.material.appbar.CollapsingToolbarLayout> </com.google.android.material.appbar.CollapsingToolbarLayout>
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>

View file

@ -15,7 +15,8 @@
<com.google.android.material.appbar.MaterialToolbar <com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar" android:id="@+id/toolbar"
style="@style/Toolbar" style="@style/Toolbar"
app:title="@string/profile" /> app:title="@string/profile"
app:titleTextAppearance="@style/ToolbarTextAppearanceNormal" />
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>

View file

@ -17,7 +17,8 @@
style="@style/Toolbar" style="@style/Toolbar"
app:layout_collapseMode="pin" app:layout_collapseMode="pin"
app:navigationIcon="@drawable/ic_keyboard_backspace_black_24dp" app:navigationIcon="@drawable/ic_keyboard_backspace_black_24dp"
app:title="@string/whats_new" /> app:title="@string/whats_new"
app:titleTextAppearance="@style/ToolbarTextAppearanceNormal" />
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>

View file

@ -6,21 +6,30 @@
app:cardCornerRadius="8dp" app:cardCornerRadius="8dp"
app:cardUseCompatPadding="true"> app:cardUseCompatPadding="true">
<LinearLayout <androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"> android:orientation="vertical">
<code.name.monkey.appthemehelper.common.views.ATEAccentTextView <code.name.monkey.appthemehelper.common.views.ATEAccentTextView
android:id="@+id/sb1"
style="@style/SubTitleTextAppearance" style="@style/SubTitleTextAppearance"
android:text="@string/credit_title" android:text="@string/credit_title"
android:textAppearance="@style/TextViewOverline" android:textAppearance="@style/TextViewOverline"
android:textColor="?colorAccent" /> android:textColor="?colorAccent"
app:layout_constrainedWidth="true"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<androidx.recyclerview.widget.RecyclerView <androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerView" android:id="@+id/recyclerView"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" /> android:layout_height="wrap_content"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/sb1" />
</LinearLayout> </androidx.constraintlayout.widget.ConstraintLayout>
</com.google.android.material.card.MaterialCardView> </com.google.android.material.card.MaterialCardView>

View file

@ -7,15 +7,22 @@
app:cardCornerRadius="8dp" app:cardCornerRadius="8dp"
app:cardUseCompatPadding="true"> app:cardUseCompatPadding="true">
<LinearLayout <androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"> android:orientation="vertical">
<code.name.monkey.appthemehelper.common.views.ATEAccentTextView <code.name.monkey.appthemehelper.common.views.ATEAccentTextView
android:id="@+id/sb4"
style="@style/SubTitleTextAppearance" style="@style/SubTitleTextAppearance"
android:text="@string/others" android:text="@string/others"
android:textAppearance="@style/TextViewOverline" /> android:textAppearance="@style/TextViewOverline"
android:textColor="?colorAccent"
app:layout_constrainedWidth="true"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<LinearLayout <LinearLayout
android:id="@+id/changelog" android:id="@+id/changelog"
@ -29,6 +36,11 @@
android:paddingTop="8dp" android:paddingTop="8dp"
android:paddingEnd="12dp" android:paddingEnd="12dp"
android:paddingBottom="8dp" android:paddingBottom="8dp"
app:layout_constrainedWidth="true"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/sb4"
tools:ignore="PrivateResource"> tools:ignore="PrivateResource">
@ -36,7 +48,8 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/changelog" android:text="@string/changelog"
android:textAppearance="@style/TextViewSubtitle1" /> android:textAppearance="@style/TextViewSubtitle1"
android:textStyle="bold" />
<code.name.monkey.retromusic.views.BaselineGridTextView <code.name.monkey.retromusic.views.BaselineGridTextView
android:layout_width="match_parent" android:layout_width="match_parent"
@ -57,13 +70,19 @@
android:paddingTop="8dp" android:paddingTop="8dp"
android:paddingEnd="12dp" android:paddingEnd="12dp"
android:paddingBottom="8dp" android:paddingBottom="8dp"
app:layout_constrainedWidth="true"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/changelog"
tools:ignore="PrivateResource"> tools:ignore="PrivateResource">
<com.google.android.material.textview.MaterialTextView <com.google.android.material.textview.MaterialTextView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/pref_title_open_source_licences" android:text="@string/pref_title_open_source_licences"
android:textAppearance="@style/TextViewSubtitle1" /> android:textAppearance="@style/TextViewSubtitle1"
android:textStyle="bold" />
<code.name.monkey.retromusic.views.BaselineGridTextView <code.name.monkey.retromusic.views.BaselineGridTextView
android:layout_width="match_parent" android:layout_width="match_parent"
@ -73,6 +92,7 @@
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:id="@+id/version"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/rectSelector" android:background="?attr/rectSelector"
@ -83,13 +103,19 @@
android:paddingTop="8dp" android:paddingTop="8dp"
android:paddingEnd="12dp" android:paddingEnd="12dp"
android:paddingBottom="8dp" android:paddingBottom="8dp"
app:layout_constrainedWidth="true"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/openSource"
tools:ignore="PrivateResource"> tools:ignore="PrivateResource">
<com.google.android.material.textview.MaterialTextView <com.google.android.material.textview.MaterialTextView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/version" android:text="@string/version"
android:textAppearance="@style/TextViewSubtitle1" /> android:textAppearance="@style/TextViewSubtitle1"
android:textStyle="bold" />
<code.name.monkey.retromusic.views.BaselineGridTextView <code.name.monkey.retromusic.views.BaselineGridTextView
android:id="@+id/appVersion" android:id="@+id/appVersion"
@ -101,12 +127,17 @@
<com.google.android.material.textview.MaterialTextView <com.google.android.material.textview.MaterialTextView
android:id="@+id/madeText" android:id="@+id/madeText"
android:layout_width="wrap_content" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
android:gravity="center" android:gravity="center"
android:padding="16dp" android:padding="16dp"
android:text="@string/made_with_love" android:text="@string/made_with_love"
android:textAppearance="@style/TextViewBody1" /> android:textAppearance="@style/TextViewBody1"
</LinearLayout> app:layout_constrainedWidth="true"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/version" />
</androidx.constraintlayout.widget.ConstraintLayout>
</com.google.android.material.card.MaterialCardView> </com.google.android.material.card.MaterialCardView>

View file

@ -1,312 +1,120 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android" <com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
app:cardBackgroundColor="?colorSurface" app:cardBackgroundColor="?colorSurface"
app:cardCornerRadius="8dp" app:cardCornerRadius="8dp"
app:cardUseCompatPadding="true"> app:cardUseCompatPadding="true">
<LinearLayout <androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"> android:orientation="vertical">
<code.name.monkey.appthemehelper.common.views.ATEAccentTextView <code.name.monkey.appthemehelper.common.views.ATEAccentTextView
android:id="@+id/sb2"
style="@style/SubTitleTextAppearance" style="@style/SubTitleTextAppearance"
android:text="@string/support_development" android:text="@string/support_development"
android:textAppearance="@style/TextViewOverline" /> android:textAppearance="@style/TextViewOverline"
android:textColor="?colorAccent"
app:layout_constrainedWidth="true"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<LinearLayout <code.name.monkey.retromusic.views.ListItemView
android:id="@+id/appGithub" android:id="@+id/appGithub"
android:layout_width="match_parent" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/rectSelector" app:layout_constrainedWidth="true"
android:clickable="true" app:layout_constraintEnd_toEndOf="parent"
android:focusable="true" app:layout_constraintHorizontal_bias="0"
android:minHeight="@dimen/md_listitem_height" app:layout_constraintStart_toStartOf="parent"
android:orientation="horizontal" app:layout_constraintTop_toBottomOf="@id/sb2"
tools:ignore="PrivateResource"> app:listItemIcon="@drawable/ic_github_circle_white_24dp"
app:listItemSummary="@string/git_hub_summary"
app:listItemTitle="@string/git_hub" />
<androidx.appcompat.widget.AppCompatImageView <code.name.monkey.retromusic.views.ListItemView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/social_buttons"
android:padding="16dp"
app:srcCompat="@drawable/ic_github_circle_white_24dp"
app:tint="?colorOnSurface" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingStart="12dp"
android:paddingTop="8dp"
android:paddingEnd="12dp"
android:paddingBottom="8dp">
<com.google.android.material.textview.MaterialTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/circular"
android:text="@string/git_hub"
android:textAppearance="@style/TextViewSubtitle1" />
<code.name.monkey.retromusic.views.BaselineGridTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/git_hub_summary"
app:lineHeightHint="24sp" />
</LinearLayout>
</LinearLayout>
<LinearLayout
android:id="@+id/appTranslation" android:id="@+id/appTranslation"
android:layout_width="match_parent" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/rectSelector" app:layout_constrainedWidth="true"
android:clickable="true" app:layout_constraintEnd_toEndOf="parent"
android:focusable="true" app:layout_constraintHorizontal_bias="0"
android:minHeight="@dimen/md_listitem_height" app:layout_constraintStart_toStartOf="parent"
android:orientation="horizontal" app:layout_constraintTop_toBottomOf="@id/appGithub"
tools:ignore="PrivateResource"> app:listItemIcon="@drawable/ic_flag_white_24dp"
app:listItemSummary="@string/translate_community"
app:listItemTitle="@string/translate" />
<androidx.appcompat.widget.AppCompatImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/social_buttons"
android:padding="16dp"
app:srcCompat="@drawable/ic_flag_white_24dp"
app:tint="?colorOnSurface" />
<LinearLayout <code.name.monkey.retromusic.views.ListItemView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingStart="12dp"
android:paddingTop="8dp"
android:paddingEnd="12dp"
android:paddingBottom="8dp">
<com.google.android.material.textview.MaterialTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/translate"
android:textAppearance="@style/TextViewSubtitle1" />
<code.name.monkey.retromusic.views.BaselineGridTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/translate_community"
app:lineHeightHint="24sp" />
</LinearLayout>
</LinearLayout>
<LinearLayout
android:id="@+id/appRate" android:id="@+id/appRate"
android:layout_width="match_parent" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/rectSelector" app:layout_constrainedWidth="true"
android:clickable="true" app:layout_constraintEnd_toEndOf="parent"
android:focusable="true" app:layout_constraintHorizontal_bias="0"
android:minHeight="@dimen/md_listitem_height" app:layout_constraintStart_toStartOf="parent"
android:orientation="horizontal" app:layout_constraintTop_toBottomOf="@id/appTranslation"
tools:ignore="PrivateResource"> app:listItemIcon="@drawable/ic_star_white_24dp"
app:listItemSummary="@string/rate_on_google_play_summary"
app:listItemTitle="@string/rate_app" />
<androidx.appcompat.widget.AppCompatImageView <code.name.monkey.retromusic.views.ListItemView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/social_buttons"
android:padding="16dp"
app:srcCompat="@drawable/ic_star_white_24dp"
app:tint="?colorOnSurface" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingStart="12dp"
android:paddingTop="8dp"
android:paddingEnd="12dp"
android:paddingBottom="8dp">
<com.google.android.material.textview.MaterialTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/rate_app"
android:textAppearance="@style/TextViewSubtitle1" />
<code.name.monkey.retromusic.views.BaselineGridTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/rate_on_google_play_summary"
app:lineHeightHint="24sp" />
</LinearLayout>
</LinearLayout>
<LinearLayout
android:id="@+id/donateLink" android:id="@+id/donateLink"
android:layout_width="match_parent" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/rectSelector" app:layout_constrainedWidth="true"
android:clickable="true" app:layout_constraintEnd_toEndOf="parent"
android:focusable="true" app:layout_constraintHorizontal_bias="0"
android:minHeight="@dimen/md_listitem_height" app:layout_constraintStart_toStartOf="parent"
android:orientation="horizontal" app:layout_constraintTop_toBottomOf="@id/appRate"
tools:ignore="PrivateResource"> app:listItemIcon="@drawable/ic_card_giftcard_white_24dp"
app:listItemSummary="@string/donate_summary"
<androidx.appcompat.widget.AppCompatImageView app:listItemTitle="@string/donate" />
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/social_buttons"
android:padding="16dp"
app:srcCompat="@drawable/ic_card_giftcard_white_24dp"
app:tint="?colorOnSurface" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingStart="12dp"
android:paddingTop="8dp"
android:paddingEnd="12dp"
android:paddingBottom="8dp">
<com.google.android.material.textview.MaterialTextView <code.name.monkey.retromusic.views.ListItemView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/donate"
android:textAppearance="@style/TextViewSubtitle1" />
<code.name.monkey.retromusic.views.BaselineGridTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/donate_summary"
app:lineHeightHint="24sp" />
</LinearLayout>
</LinearLayout>
<LinearLayout
android:id="@+id/bugReportLink" android:id="@+id/bugReportLink"
android:layout_width="match_parent" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/rectSelector" app:layout_constrainedWidth="true"
android:clickable="true" app:layout_constraintEnd_toEndOf="parent"
android:focusable="true" app:layout_constraintHorizontal_bias="0"
android:minHeight="@dimen/md_listitem_height" app:layout_constraintStart_toStartOf="parent"
android:orientation="horizontal" app:layout_constraintTop_toBottomOf="@id/donateLink"
tools:ignore="PrivateResource"> app:listItemIcon="@drawable/ic_bug_report_white_24dp"
app:listItemSummary="@string/bug_report_summary"
app:listItemTitle="@string/report_bug" />
<androidx.appcompat.widget.AppCompatImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/social_buttons"
android:padding="16dp"
app:srcCompat="@drawable/ic_bug_report_white_24dp"
app:tint="?colorOnSurface" />
<LinearLayout <code.name.monkey.retromusic.views.ListItemView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingStart="12dp"
android:paddingTop="8dp"
android:paddingEnd="12dp"
android:paddingBottom="8dp">
<com.google.android.material.textview.MaterialTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/report_bug"
android:textAppearance="@style/TextViewSubtitle1" />
<code.name.monkey.retromusic.views.BaselineGridTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/bug_report_summary"
app:lineHeightHint="24sp" />
</LinearLayout>
</LinearLayout>
<LinearLayout
android:id="@+id/appShare" android:id="@+id/appShare"
android:layout_width="match_parent" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/rectSelector" app:layout_constrainedWidth="true"
android:clickable="true" app:layout_constraintEnd_toEndOf="parent"
android:focusable="true" app:layout_constraintHorizontal_bias="0"
android:gravity="center_vertical" app:layout_constraintStart_toStartOf="parent"
android:minHeight="@dimen/md_listitem_height" app:layout_constraintTop_toBottomOf="@id/bugReportLink"
android:orientation="horizontal" app:listItemIcon="@drawable/ic_share_white_24dp"
tools:ignore="PrivateResource"> app:listItemTitle="@string/action_share" />
<androidx.appcompat.widget.AppCompatImageView <code.name.monkey.retromusic.views.ListItemView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/social_buttons"
android:padding="16dp"
app:srcCompat="@drawable/ic_share_white_24dp"
app:tint="?colorOnSurface" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="vertical"
android:paddingStart="12dp"
android:paddingTop="8dp"
android:paddingEnd="12dp"
android:paddingBottom="8dp">
<com.google.android.material.textview.MaterialTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/action_share"
android:textAppearance="@style/TextViewSubtitle1" />
</LinearLayout>
</LinearLayout>
<LinearLayout
android:id="@+id/faqLink" android:id="@+id/faqLink"
android:layout_width="match_parent" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/rectSelector" app:layout_constrainedWidth="true"
android:clickable="true" app:layout_constraintEnd_toEndOf="parent"
android:focusable="true" app:layout_constraintHorizontal_bias="0"
android:gravity="center_vertical" app:layout_constraintStart_toStartOf="parent"
android:minHeight="@dimen/md_listitem_height" app:layout_constraintTop_toBottomOf="@id/appShare"
android:orientation="horizontal" app:listItemIcon="@drawable/ic_help_white_24dp"
tools:ignore="PrivateResource"> app:listItemTitle="@string/faq" />
<androidx.appcompat.widget.AppCompatImageView </androidx.constraintlayout.widget.ConstraintLayout>
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/social_buttons"
android:padding="16dp"
app:srcCompat="@drawable/ic_help_white_24dp"
app:tint="?colorOnSurface" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="vertical"
android:paddingStart="12dp"
android:paddingTop="8dp"
android:paddingEnd="12dp"
android:paddingBottom="8dp">
<com.google.android.material.textview.MaterialTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/faq"
android:textAppearance="@style/TextViewSubtitle1" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</com.google.android.material.card.MaterialCardView> </com.google.android.material.card.MaterialCardView>

View file

@ -1,187 +1,80 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android" <com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
app:cardCornerRadius="8dp" app:cardCornerRadius="8dp"
app:cardUseCompatPadding="true"> app:cardUseCompatPadding="true">
<LinearLayout <androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"> android:orientation="vertical">
<code.name.monkey.appthemehelper.common.views.ATEAccentTextView <code.name.monkey.appthemehelper.common.views.ATEAccentTextView
android:id="@+id/sb3"
style="@style/SubTitleTextAppearance" style="@style/SubTitleTextAppearance"
android:text="@string/social" android:text="@string/social"
android:textAppearance="@style/TextViewOverline" /> android:textAppearance="@style/TextViewOverline"
android:textColor="?colorAccent"
app:layout_constrainedWidth="true"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<LinearLayout <code.name.monkey.retromusic.views.ListItemView
android:id="@+id/pinterestLink" android:id="@+id/pinterestLink"
android:layout_width="match_parent" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/rectSelector" app:layout_constrainedWidth="true"
android:clickable="true" app:layout_constraintEnd_toEndOf="parent"
android:focusable="true" app:layout_constraintHorizontal_bias="0"
android:minHeight="@dimen/md_listitem_height" app:layout_constraintStart_toStartOf="parent"
android:orientation="horizontal" app:layout_constraintTop_toBottomOf="@id/sb3"
tools:ignore="PrivateResource"> app:listItemIcon="@drawable/ic_pinterest_white_24dp"
app:listItemSummary="@string/pinterest_page_summary"
app:listItemTitle="@string/pinterest_page" />
<code.name.monkey.retromusic.views.ListItemView
<androidx.appcompat.widget.AppCompatImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="16dp"
app:srcCompat="@drawable/ic_pinterest_white_24dp"
app:tint="?colorOnSurface" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingStart="12dp"
android:paddingTop="8dp"
android:paddingEnd="12dp"
android:paddingBottom="8dp">
<com.google.android.material.textview.MaterialTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/pinterest_page"
android:textAppearance="@style/TextViewSubtitle1" />
<code.name.monkey.retromusic.views.BaselineGridTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/pinterest_page_summary"
app:lineHeightHint="24sp" />
</LinearLayout>
</LinearLayout>
<LinearLayout
android:id="@+id/instagramLink" android:id="@+id/instagramLink"
android:layout_width="match_parent" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/rectSelector" app:layout_constrainedWidth="true"
android:clickable="true" app:layout_constraintEnd_toEndOf="parent"
android:focusable="true" app:layout_constraintHorizontal_bias="0"
android:minHeight="@dimen/md_listitem_height" app:layout_constraintStart_toStartOf="parent"
android:orientation="horizontal" app:layout_constraintTop_toBottomOf="@id/pinterestLink"
tools:ignore="PrivateResource"> app:listItemIcon="@drawable/ic_instagram_white_24dp"
app:listItemSummary="@string/instagram_page_summary"
<androidx.appcompat.widget.AppCompatImageView app:listItemTitle="@string/instagram_page" />
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="16dp"
app:srcCompat="@drawable/ic_instagram_white_24dp"
app:tint="?colorOnSurface" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingStart="12dp"
android:paddingTop="8dp"
android:paddingEnd="12dp"
android:paddingBottom="8dp">
<com.google.android.material.textview.MaterialTextView <code.name.monkey.retromusic.views.ListItemView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/instagram_page"
android:textAppearance="@style/TextViewSubtitle1" />
<code.name.monkey.retromusic.views.BaselineGridTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/instagram_page_summary"
app:lineHeightHint="24sp" />
</LinearLayout>
</LinearLayout>
<LinearLayout
android:id="@+id/twitterLink" android:id="@+id/twitterLink"
android:layout_width="match_parent" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/rectSelector" app:layout_constrainedWidth="true"
android:clickable="true" app:layout_constraintEnd_toEndOf="parent"
android:focusable="true" app:layout_constraintHorizontal_bias="0"
android:minHeight="@dimen/md_listitem_height" app:layout_constraintStart_toStartOf="parent"
android:orientation="horizontal" app:layout_constraintTop_toBottomOf="@id/instagramLink"
tools:ignore="PrivateResource"> app:listItemIcon="@drawable/ic_twitter_white_24dp"
app:listItemSummary="@string/twitter_page_summary"
app:listItemTitle="@string/twitter_page" />
<androidx.appcompat.widget.AppCompatImageView <code.name.monkey.retromusic.views.ListItemView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="16dp"
app:srcCompat="@drawable/ic_twitter_white_24dp"
app:tint="?colorOnSurface" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingStart="12dp"
android:paddingTop="8dp"
android:paddingEnd="12dp"
android:paddingBottom="8dp">
<com.google.android.material.textview.MaterialTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/twitter_page"
android:textAppearance="@style/TextViewSubtitle1" />
<code.name.monkey.retromusic.views.BaselineGridTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/twitter_page_summary"
app:lineHeightHint="24sp" />
</LinearLayout>
</LinearLayout>
<LinearLayout
android:id="@+id/telegramLink" android:id="@+id/telegramLink"
android:layout_width="match_parent" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/rectSelector" app:layout_constrainedWidth="true"
android:clickable="true" app:layout_constraintEnd_toEndOf="parent"
android:focusable="true" app:layout_constraintHorizontal_bias="0"
android:minHeight="@dimen/md_listitem_height" app:layout_constraintStart_toStartOf="parent"
android:orientation="horizontal" app:layout_constraintTop_toBottomOf="@id/twitterLink"
tools:ignore="PrivateResource"> app:listItemIcon="@drawable/ic_telegram_white"
app:listItemSummary="@string/telegram_group_summary"
app:listItemTitle="@string/telegram_group" />
<androidx.appcompat.widget.AppCompatImageView </androidx.constraintlayout.widget.ConstraintLayout>
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="16dp"
app:srcCompat="@drawable/ic_telegram_white"
app:tint="?colorOnSurface" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingStart="12dp"
android:paddingTop="8dp"
android:paddingEnd="12dp"
android:paddingBottom="8dp">
<com.google.android.material.textview.MaterialTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/telegram_group"
android:textAppearance="@style/TextViewSubtitle1" />
<code.name.monkey.retromusic.views.BaselineGridTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/telegram_group_summary"
app:lineHeightHint="24sp" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</com.google.android.material.card.MaterialCardView> </com.google.android.material.card.MaterialCardView>

View file

@ -57,7 +57,8 @@
android:paddingBottom="8dp" android:paddingBottom="8dp"
android:text="@string/buy_pro" android:text="@string/buy_pro"
android:textAppearance="@style/TextViewHeadline6" android:textAppearance="@style/TextViewHeadline6"
android:textColor="?colorOnSurface" /> android:textColor="?colorOnSurface"
android:textStyle="bold" />
<com.google.android.material.textview.MaterialTextView <com.google.android.material.textview.MaterialTextView
android:id="@+id/text2" android:id="@+id/text2"
@ -129,7 +130,8 @@
android:fadingEdge="horizontal" android:fadingEdge="horizontal"
android:singleLine="true" android:singleLine="true"
android:text="@string/general_settings_title" android:text="@string/general_settings_title"
android:textAppearance="@style/TextViewSubtitle1" /> android:textAppearance="@style/TextViewSubtitle1"
android:textStyle="bold" />
<com.google.android.material.textview.MaterialTextView <com.google.android.material.textview.MaterialTextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -173,7 +175,8 @@
android:fadingEdge="horizontal" android:fadingEdge="horizontal"
android:singleLine="true" android:singleLine="true"
android:text="@string/now_playing" android:text="@string/now_playing"
android:textAppearance="@style/TextViewSubtitle1" /> android:textAppearance="@style/TextViewSubtitle1"
android:textStyle="bold" />
<com.google.android.material.textview.MaterialTextView <com.google.android.material.textview.MaterialTextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -216,7 +219,8 @@
android:fadingEdge="horizontal" android:fadingEdge="horizontal"
android:singleLine="true" android:singleLine="true"
android:text="@string/pref_header_audio" android:text="@string/pref_header_audio"
android:textAppearance="@style/TextViewSubtitle1" /> android:textAppearance="@style/TextViewSubtitle1"
android:textStyle="bold" />
<com.google.android.material.textview.MaterialTextView <com.google.android.material.textview.MaterialTextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -257,9 +261,10 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:ellipsize="marquee" android:ellipsize="marquee"
android:fadingEdge="horizontal" android:fadingEdge="horizontal"
android:singleLine="true"
android:text="@string/personalize" android:text="@string/personalize"
android:textAppearance="@style/TextViewSubtitle1" /> android:singleLine="true"
android:textAppearance="@style/TextViewSubtitle1"
android:textStyle="bold" />
<com.google.android.material.textview.MaterialTextView <com.google.android.material.textview.MaterialTextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -301,7 +306,8 @@
android:fadingEdge="horizontal" android:fadingEdge="horizontal"
android:singleLine="true" android:singleLine="true"
android:text="@string/pref_header_images" android:text="@string/pref_header_images"
android:textAppearance="@style/TextViewSubtitle1" /> android:textAppearance="@style/TextViewSubtitle1"
android:textStyle="bold" />
<com.google.android.material.textview.MaterialTextView <com.google.android.material.textview.MaterialTextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -343,7 +349,8 @@
android:fadingEdge="horizontal" android:fadingEdge="horizontal"
android:singleLine="true" android:singleLine="true"
android:text="@string/notification" android:text="@string/notification"
android:textAppearance="@style/TextViewSubtitle1" /> android:textAppearance="@style/TextViewSubtitle1"
android:textStyle="bold" />
<com.google.android.material.textview.MaterialTextView <com.google.android.material.textview.MaterialTextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -387,7 +394,8 @@
android:fadingEdge="horizontal" android:fadingEdge="horizontal"
android:singleLine="true" android:singleLine="true"
android:text="@string/others" android:text="@string/others"
android:textAppearance="@style/TextViewSubtitle1" /> android:textAppearance="@style/TextViewSubtitle1"
android:textStyle="bold" />
<com.google.android.material.textview.MaterialTextView <com.google.android.material.textview.MaterialTextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -431,7 +439,8 @@
android:fadingEdge="horizontal" android:fadingEdge="horizontal"
android:singleLine="true" android:singleLine="true"
android:text="@string/action_about" android:text="@string/action_about"
android:textAppearance="@style/TextViewSubtitle1" /> android:textAppearance="@style/TextViewSubtitle1"
android:textStyle="bold" />
<com.google.android.material.textview.MaterialTextView <com.google.android.material.textview.MaterialTextView
android:layout_width="wrap_content" android:layout_width="wrap_content"

View file

@ -30,9 +30,9 @@
android:layout_width="40dp" android:layout_width="40dp"
android:layout_height="40dp" android:layout_height="40dp"
app:civ_border="false" app:civ_border="false"
tools:srcCompat="@tools:sample/backgrounds/scenic[20]"
app:civ_shadow="false" app:civ_shadow="false"
app:srcCompat="@drawable/ic_person_flat" /> app:srcCompat="@drawable/ic_person_flat"
tools:srcCompat="@tools:sample/backgrounds/scenic[20]" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
@ -48,6 +48,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textAppearance="@style/TextViewSubtitle1" android:textAppearance="@style/TextViewSubtitle1"
android:textStyle="bold"
tools:text="Name" /> tools:text="Name" />
<code.name.monkey.retromusic.views.BaselineGridTextView <code.name.monkey.retromusic.views.BaselineGridTextView

View file

@ -48,6 +48,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="center" android:gravity="center"
android:textStyle="bold"
android:textAppearance="@style/TextViewHeadline5" android:textAppearance="@style/TextViewHeadline5"
tools:text="Name" /> tools:text="Name" />

View file

@ -0,0 +1,72 @@
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (c) 2019 Hemanth Savarala.
~
~ Licensed under the GNU General Public License v3
~
~ This 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 3 of the License, or (at your option) any later version.
~
~ This software 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.
-->
<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="wrap_content"
android:background="?attr/rectSelector"
android:minHeight="@dimen/md_listitem_height"
android:orientation="horizontal"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
tools:ignore="PrivateResource">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/appCompatImageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="16dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/ic_telegram_white"
app:tint="?colorOnSurface" />
<com.google.android.material.textview.MaterialTextView
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="8dp"
android:textStyle="bold"
android:layout_marginEnd="16dp"
android:text="@string/telegram_group"
android:textAppearance="@style/TextViewSubtitle1"
app:layout_constrainedWidth="true"
app:layout_constraintBottom_toTopOf="@+id/summary"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0"
app:layout_constraintStart_toEndOf="@+id/appCompatImageView"
app:layout_constraintTop_toTopOf="parent" />
<code.name.monkey.retromusic.views.BaselineGridTextView
android:id="@+id/summary"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="4dp"
android:layout_marginEnd="16dp"
android:layout_marginBottom="8dp"
android:text="@string/telegram_group_summary"
app:layout_constrainedWidth="true"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0"
app:layout_constraintStart_toEndOf="@+id/appCompatImageView"
app:layout_constraintTop_toBottomOf="@+id/title" />
</androidx.constraintlayout.widget.ConstraintLayout>

View file

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (c) 2019 Hemanth Savarala.
~
~ Licensed under the GNU General Public License v3
~
~ This 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 3 of the License, or (at your option) any later version.
~
~ This software 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.
-->
<resources>
<declare-styleable name="ListItemView">
<attr name="listItemIcon" format="reference" />
<attr name="listItemTitle" format="string" />
<attr name="listItemSummary" format="string" />
</declare-styleable>
</resources>

View file

@ -39,12 +39,13 @@
<style name="ToolbarTextAppearanceSearch" parent="ThemeOverlay.MaterialComponents.Toolbar.Surface"> <style name="ToolbarTextAppearanceSearch" parent="ThemeOverlay.MaterialComponents.Toolbar.Surface">
<item name="android:textSize">16sp</item> <item name="android:textSize">16sp</item>
<item name="android:fontFamily">@font/circular_std_book</item>
</style> </style>
<style name="ToolbarTextAppearanceNormal"> <style name="ToolbarTextAppearanceNormal" >
<item name="android:textSize">20sp</item> <item name="android:textSize">20sp</item>
<item name="android:fontFamily">@font/circular_std_book</item> <item name="android:textAppearance">@style/TextAppearance.MaterialComponents.Headline6
</item>
<item name="android:textStyle">bold</item>
</style> </style>
<style name="ToolbarSubTitleTextAppearance"> <style name="ToolbarSubTitleTextAppearance">
@ -208,11 +209,8 @@
<item name="android:fontFamily">@font/circular</item> <item name="android:fontFamily">@font/circular</item>
</style> </style>
<style name="ToolbarTitleFont">
<item name="android:fontFamily">@font/circular_std_black</item>
</style>
<style name="ChipFont" parent="TextAppearance.MaterialComponents.Chip"> <style name="ChipFont" parent="TextAppearance.MaterialComponents.Chip">
<item name="android:fontFamily">@font/circular_std_book</item> <item name="android:fontFamily">@font/circular</item>
</style> </style>
</resources> </resources>