Added Android code
[wl-app.git] / Android / app / src / main / res / layout / fragment_player_header.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <RelativeLayout
3     xmlns:android="http://schemas.android.com/apk/res/android"
4     xmlns:tools="http://schemas.android.com/tools"
5     android:layout_width="match_parent"
6     android:layout_height="match_parent"
7     android:background="@color/colorPrimary"
8     tools:ignore="SpUsage">
9
10     <ImageView
11         android:id="@+id/ivCoverBackground"
12         android:layout_width="match_parent"
13         android:layout_height="match_parent"
14         android:contentDescription="@string/app_name"
15         android:scaleType="centerCrop"/>
16
17     <View
18         android:id="@+id/vCoverOverlay"
19         android:layout_width="match_parent"
20         android:layout_height="match_parent"/>
21
22     <ImageButton
23         android:id="@+id/ibBack"
24         android:layout_width="wrap_content"
25         android:layout_height="wrap_content"
26         android:layout_marginStart="16dp"
27         android:layout_marginTop="16dp"
28         android:background="?attr/selectableItemBackgroundBorderless"
29         android:src="@drawable/ic_prev_tint"
30         android:tint="@color/white"
31         tools:ignore="ContentDescription"/>
32
33     <TextView
34         android:id="@+id/tvAuthor"
35         style="@style/BookHeaderTextView"
36         android:layout_width="match_parent"
37         android:layout_height="wrap_content"
38         android:layout_below="@+id/ibBack"
39         android:layout_marginEnd="24dp"
40         android:layout_marginStart="24dp"
41         android:layout_marginTop="20dp"
42         android:text="Adam Mickiewicz"
43         android:textSize="18dp"/>
44
45     <TextView
46         android:id="@+id/tvBookTitle"
47         style="@style/BookHeaderTextView"
48         android:layout_width="match_parent"
49         android:layout_height="wrap_content"
50         android:layout_below="@+id/tvAuthor"
51         android:layout_marginEnd="24dp"
52         android:layout_marginStart="24dp"
53         android:text="Dziady"
54         android:textSize="26dp"/>
55
56     <ImageView
57         android:id="@+id/ivCover"
58         android:layout_width="match_parent"
59         android:layout_height="match_parent"
60         android:layout_below="@id/tvBookTitle"
61         android:layout_marginTop="20dp"
62         android:adjustViewBounds="true"
63         android:src="@drawable/list_nocover"
64         tools:ignore="ContentDescription"/>
65
66 </RelativeLayout>