Added Android code
[wl-app.git] / Android / app / src / main / res / layout-v21 / fragment_player_header.xml
diff --git a/Android/app/src/main/res/layout-v21/fragment_player_header.xml b/Android/app/src/main/res/layout-v21/fragment_player_header.xml
new file mode 100644 (file)
index 0000000..1207ad7
--- /dev/null
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout
+    xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:tools="http://schemas.android.com/tools"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
+    android:background="@color/colorPrimary"
+    tools:ignore="SpUsage">
+
+    <ImageView
+        android:id="@+id/ivCoverBackground"
+        android:layout_width="match_parent"
+        android:layout_height="match_parent"
+        android:contentDescription="@string/app_name"
+        android:scaleType="centerCrop"/>
+
+    <View
+        android:id="@+id/vCoverOverlay"
+        android:layout_width="match_parent"
+        android:layout_height="match_parent"/>
+
+    <ImageButton
+        android:id="@+id/ibBack"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_marginStart="16dp"
+        android:layout_marginTop="16dp"
+        android:background="?attr/selectableItemBackgroundBorderless"
+        android:src="?attr/homeAsUpIndicator"
+        android:tint="@color/white"
+        tools:ignore="ContentDescription"/>
+
+    <TextView
+        android:id="@+id/tvAuthor"
+        style="@style/BookHeaderTextView"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:layout_below="@+id/ibBack"
+        android:layout_marginEnd="24dp"
+        android:layout_marginStart="24dp"
+        android:layout_marginTop="20dp"
+        android:text="Adam Mickiewicz"
+        android:textSize="18dp"/>
+
+    <TextView
+        android:id="@+id/tvBookTitle"
+        style="@style/BookHeaderTextView"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:layout_below="@+id/tvAuthor"
+        android:layout_marginEnd="24dp"
+        android:layout_marginStart="24dp"
+        android:text="Dziady"
+        android:textSize="26dp"/>
+
+    <ImageView
+        android:id="@+id/ivCover"
+        android:layout_width="match_parent"
+        android:layout_height="match_parent"
+        android:layout_below="@id/tvBookTitle"
+        android:layout_marginTop="20dp"
+        android:adjustViewBounds="true"
+        android:src="@drawable/list_nocover"
+        tools:ignore="ContentDescription"/>
+
+</RelativeLayout>
\ No newline at end of file