mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-16 07:10:29 +05:30
170 lines
7.7 KiB
XML
170 lines
7.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<FrameLayout 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:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
tools:context=".ui.fragments.LibraryFragment">
|
|
|
|
<com.github.libretube.ui.views.CustomSwipeToRefresh
|
|
android:id="@+id/playlist_refresh"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_margin="10dp">
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical" >
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
style="@style/Widget.Material3.CardView.Elevated"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/watch_history"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:drawablePadding="10dp"
|
|
android:paddingHorizontal="15dp"
|
|
android:paddingVertical="12dp"
|
|
android:text="@string/watch_history"
|
|
android:textSize="18sp"
|
|
android:textStyle="bold"
|
|
app:drawableStartCompat="@drawable/ic_time_outlined" />
|
|
|
|
<TextView
|
|
android:id="@+id/downloads"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:drawablePadding="10dp"
|
|
android:paddingHorizontal="15dp"
|
|
android:paddingVertical="12dp"
|
|
android:text="@string/downloads"
|
|
android:textSize="18sp"
|
|
android:textStyle="bold"
|
|
app:drawableStartCompat="@drawable/ic_download" />
|
|
|
|
</LinearLayout>
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
style="@style/Widget.Material3.CardView.Elevated"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="20dp"
|
|
android:layout_marginBottom="10dp"
|
|
android:layout_weight="1">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:padding="10dp">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/playlists"
|
|
android:padding="8dp"
|
|
android:textSize="18sp"
|
|
android:textStyle="bold" />
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/nothing_here"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:visibility="gone">
|
|
|
|
<ImageView
|
|
android:id="@+id/listIV"
|
|
android:layout_width="100dp"
|
|
android:layout_height="100dp"
|
|
android:layout_centerInParent="true"
|
|
android:src="@drawable/ic_list" />
|
|
|
|
<TextView
|
|
android:id="@+id/text_like"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@id/listIV"
|
|
android:layout_centerHorizontal="true"
|
|
android:gravity="center"
|
|
android:text="@string/emptyList"
|
|
android:textSize="20sp"
|
|
android:textStyle="bold" />
|
|
</RelativeLayout>
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/playlist_recView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:nestedScrollingEnabled="false"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
android:id="@+id/bookmarksCV"
|
|
style="@style/Widget.Material3.CardView.Elevated"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_marginBottom="10dp"
|
|
android:layout_weight="1"
|
|
android:visibility="gone">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:padding="10dp">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/bookmarks"
|
|
android:textSize="18sp"
|
|
android:padding="8dp"
|
|
android:textStyle="bold" />
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/bookmarks_recView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:nestedScrollingEnabled="false"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
</LinearLayout>
|
|
|
|
</androidx.core.widget.NestedScrollView>
|
|
</com.github.libretube.ui.views.CustomSwipeToRefresh>
|
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
|
android:id="@+id/create_playlist"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom|end"
|
|
android:layout_margin="16dp"
|
|
app:backgroundTint="?attr/colorSecondary"
|
|
app:srcCompat="@drawable/ic_add"
|
|
app:tint="?android:attr/colorBackground" />
|
|
|
|
</FrameLayout> |