Revamped Buy UI

main
h4h13 2019-10-29 23:29:53 +05:30
parent a7dc6ae1f8
commit a4c3e46e85
2 changed files with 16 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

View File

@ -25,7 +25,8 @@
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
android:orientation="vertical"
android:padding="4dp">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/diamondIcon"
@ -59,22 +60,33 @@
android:paddingStart="16dp"
android:paddingTop="4dp"
android:paddingEnd="16dp"
android:paddingBottom="12dp"
android:text="@string/pro_summary"
app:layout_constraintTop_toBottomOf="@id/title" />
<View
android:id="@+id/divider"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:background="?dividerColor"
app:layout_constraintTop_toBottomOf="@id/text" />
<com.google.android.material.button.MaterialButton
android:id="@+id/buyPremium"
style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
android:layout_width="wrap_content"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="-8dp"
android:gravity="start|center_vertical"
android:text="@string/buy_now"
android:textAllCaps="false"
android:textColor="?colorAccent"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/text" />
app:layout_constraintTop_toBottomOf="@id/divider" />
</androidx.constraintlayout.widget.ConstraintLayout>
</com.google.android.material.card.MaterialCardView>