2020-02-02 12:44:16 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?><!--
|
|
|
|
~ Copyright (c) 2020 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.
|
|
|
|
-->
|
2020-02-02 17:21:26 +00:00
|
|
|
|
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2020-02-02 12:44:16 +00:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2020-02-02 17:21:26 +00:00
|
|
|
android:id="@+id/content"
|
2020-02-02 12:44:16 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2020-02-02 17:21:26 +00:00
|
|
|
android:background="?attr/colorSurface"
|
2021-10-25 15:21:40 +00:00
|
|
|
android:fitsSystemWindows="true"
|
2020-02-02 12:44:16 +00:00
|
|
|
android:orientation="vertical">
|
|
|
|
|
2020-02-02 17:21:26 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/mainContent"
|
2020-02-02 12:44:16 +00:00
|
|
|
android:layout_width="match_parent"
|
2020-02-02 17:21:26 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@drawable/instagram_story_background"
|
|
|
|
android:gravity="center"
|
|
|
|
android:minHeight="1080dp"
|
|
|
|
android:orientation="vertical"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
2020-02-02 12:44:16 +00:00
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:layout_width="match_parent"
|
2020-02-02 17:21:26 +00:00
|
|
|
android:layout_height="match_parent">
|
2020-02-02 12:44:16 +00:00
|
|
|
|
2020-02-04 08:09:10 +00:00
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:id="@+id/appIcon"
|
|
|
|
android:layout_width="16dp"
|
|
|
|
android:layout_height="16dp"
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/imageContainerCard"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:srcCompat="@mipmap/ic_launcher_round" />
|
|
|
|
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
|
|
android:id="@+id/appName"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="8dp"
|
2020-02-05 04:40:47 +00:00
|
|
|
android:text="@string/retro_music_player"
|
2020-02-04 08:09:10 +00:00
|
|
|
android:textColor="@color/md_white_1000"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/appIcon"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/appIcon"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/appIcon" />
|
|
|
|
|
2020-02-02 12:44:16 +00:00
|
|
|
<code.name.monkey.retromusic.views.WidthFitSquareCardView
|
|
|
|
android:id="@+id/imageContainerCard"
|
2020-02-02 17:21:26 +00:00
|
|
|
android:layout_width="290dp"
|
2020-02-02 12:44:16 +00:00
|
|
|
android:layout_height="wrap_content"
|
2020-02-04 08:09:10 +00:00
|
|
|
android:layout_marginTop="8dp"
|
2020-02-02 17:21:26 +00:00
|
|
|
app:cardCornerRadius="16dp"
|
2020-02-02 12:44:16 +00:00
|
|
|
app:layout_constraintDimensionRatio="1:1"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2020-02-04 08:09:10 +00:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/appIcon">
|
2020-02-02 12:44:16 +00:00
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:id="@+id/image"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
tools:src="@tools:sample/avatars" />
|
|
|
|
</code.name.monkey.retromusic.views.WidthFitSquareCardView>
|
|
|
|
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
|
|
android:id="@+id/shareTitle"
|
2020-02-02 17:21:26 +00:00
|
|
|
android:layout_width="0dp"
|
2020-02-02 12:44:16 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:gravity="center"
|
2020-02-02 17:21:26 +00:00
|
|
|
android:textAppearance="@style/TextViewHeadline6"
|
2020-02-02 12:44:16 +00:00
|
|
|
android:textColor="@color/md_white_1000"
|
|
|
|
android:textStyle="bold"
|
|
|
|
app:layout_constrainedWidth="true"
|
2020-02-02 17:21:26 +00:00
|
|
|
app:layout_constraintEnd_toEndOf="@+id/imageContainerCard"
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/imageContainerCard"
|
2020-02-02 12:44:16 +00:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/imageContainerCard"
|
|
|
|
tools:text="@tools:sample/full_names" />
|
|
|
|
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
|
|
android:id="@+id/shareText"
|
2020-02-02 17:21:26 +00:00
|
|
|
android:layout_width="0dp"
|
2020-02-02 12:44:16 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center"
|
2020-02-02 17:21:26 +00:00
|
|
|
android:textAppearance="@style/TextViewSubtitle1"
|
|
|
|
android:textColor="@color/md_grey_400"
|
2020-02-02 12:44:16 +00:00
|
|
|
android:textStyle="bold"
|
|
|
|
app:layout_constrainedWidth="true"
|
2020-02-02 17:21:26 +00:00
|
|
|
app:layout_constraintEnd_toEndOf="@+id/imageContainerCard"
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/imageContainerCard"
|
2020-02-02 12:44:16 +00:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/shareTitle"
|
|
|
|
tools:text="@tools:sample/full_names" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2020-02-02 17:21:26 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/shareButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="bottom|center_horizontal"
|
|
|
|
android:layout_margin="16dp"
|
|
|
|
android:paddingStart="24dp"
|
|
|
|
android:paddingTop="14dp"
|
|
|
|
android:paddingEnd="24dp"
|
|
|
|
android:paddingBottom="14dp"
|
|
|
|
android:text="@string/share_to_stories"
|
|
|
|
android:textStyle="bold"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/mainContent" />
|
2020-02-02 12:44:16 +00:00
|
|
|
|
2021-10-25 15:21:40 +00:00
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
2020-02-02 17:21:26 +00:00
|
|
|
android:layout_width="match_parent"
|
2021-10-25 15:21:40 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:elevation="0dp"
|
|
|
|
app:elevation="0dp">
|
2020-02-02 17:21:26 +00:00
|
|
|
|
2021-10-25 15:21:40 +00:00
|
|
|
<com.google.android.material.appbar.MaterialToolbar
|
|
|
|
android:id="@+id/toolbar"
|
2020-02-02 17:21:26 +00:00
|
|
|
android:layout_width="match_parent"
|
2020-02-02 12:44:16 +00:00
|
|
|
android:layout_height="wrap_content"
|
2021-10-25 15:21:40 +00:00
|
|
|
app:navigationIcon="@drawable/ic_keyboard_backspace_black"
|
|
|
|
app:title="@string/social_stories"
|
|
|
|
app:titleTextAppearance="@style/ToolbarTextAppearanceNormal" />
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
2020-02-02 17:21:26 +00:00
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|