forked from nielsvanvelzen/tv-launcher
/
fragment_launcher.xml
43 lines (39 loc) · 1.58 KB
/
fragment_launcher.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".ui.LauncherFragment">
<FrameLayout
android:id="@+id/toolbar_container"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/overscan_start"
android:layout_marginTop="@dimen/overscan_top"
android:layout_marginEnd="@dimen/overscan_end"
android:animateLayoutChanges="true"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/toolbar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:orientation="horizontal"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
</FrameLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/tiles"
android:layout_width="match_parent"
android:layout_height="440dp"
android:layout_marginTop="32dp"
android:clipToPadding="false"
android:focusedByDefault="true"
android:orientation="horizontal"
android:paddingHorizontal="48dp"
app:layout_constraintTop_toBottomOf="@id/toolbar_container" />
</androidx.constraintlayout.widget.ConstraintLayout>