Added For You top bar

This commit is contained in:
CappielloAntonio 2021-04-27 13:59:27 +02:00
parent 81581c623d
commit fdc104f70b
6 changed files with 89 additions and 5 deletions

View file

@ -12,6 +12,62 @@
android:orientation="vertical"
android:paddingBottom="@dimen/global_padding_bottom">
<!-- For you -->
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/for_you_sector"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clipChildren="false">
<TextView
android:id="@+id/home_date_label"
style="@style/SubheadTextView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="16dp"
android:paddingTop="20dp"
android:paddingEnd="16dp"
android:text="@string/label_placeholder"
android:includeFontPadding="false"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"/>
<TextView
android:id="@+id/home_for_you_label"
style="@style/MainTitleTextView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:text="For You"
android:includeFontPadding="false"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/home_date_label"/>
<ImageView
android:id="@+id/home_settings_image_view"
android:layout_width="22dp"
android:layout_height="22dp"
android:layout_marginStart="8dp"
android:layout_marginBottom="4dp"
android:layout_marginEnd="16dp"
android:foreground="?android:attr/selectableItemBackgroundBorderless"
android:background="@drawable/ic_settings"
android:backgroundTint="@color/bottomNavIconColor"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintBottom_toBottomOf="@+id/home_for_you_label"/>
<View
android:id="@+id/home_top_title_divider"
style="@style/Divider"
android:layout_marginStart="18dp"
android:layout_marginEnd="18dp"
android:layout_marginTop="12dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/home_for_you_label" />
</androidx.constraintlayout.widget.ConstraintLayout>
<!-- Discover music -->
<LinearLayout
android:id="@+id/home_discover_sector"
@ -24,7 +80,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="16dp"
android:paddingTop="20dp"
android:paddingTop="24dp"
android:paddingEnd="16dp"
android:text="Music discovery" />