Added App rater

This commit is contained in:
h4h13 2019-09-23 00:26:40 +05:30
parent 07b1559350
commit b665ffd25f
14 changed files with 322 additions and 31 deletions

View file

@ -0,0 +1,74 @@
<?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">
<code.name.monkey.appthemehelper.common.views.BaselineGridTextView
android:id="@+id/text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="16dp"
android:text="If you enjoy using Retro Music, please take a moment to rate it. Thanks for your support!"
android:textAppearance="@style/TextAppearance.MaterialComponents.Headline6"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
tools:layout_editor_absoluteY="100dp">
<com.google.android.material.button.MaterialButton
android:id="@+id/rateButton"
style="@style/Widget.MaterialComponents.Button.TextButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Rate"
app:backgroundTint="@color/md_red_400"
app:cornerRadius="8dp"
tools:layout_editor_absoluteX="1dp" />
<com.google.android.material.button.MaterialButton
android:id="@+id/laterButton"
style="@style/Widget.MaterialComponents.Button.OutlinedButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:text="May be later"
android:textColor="@color/md_red_400"
app:cornerRadius="8dp"
app:layout_constraintLeft_toRightOf="@id/rateButton"
app:strokeColor="@color/md_red_400"
app:strokeWidth="1dp" />
<com.google.android.material.button.MaterialButton
android:id="@+id/noButton"
style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:text="No thanks"
android:textColor="@color/md_red_400"
app:cornerRadius="8dp"
app:layout_constraintLeft_toRightOf="@id/laterButton" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View file

@ -11,9 +11,6 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipToPadding="false"
app:fastScrollPopupBackgroundSize="48dp"
app:fastScrollPopupTextSize="18sp"
app:fastScrollHorizontalThumbDrawable="@drawable/button_background"
android:layoutAnimation="@anim/layout_animation_fall_down"
android:scrollbars="none" />