2025-05-16 20:28:14 +00:00
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
2025-04-27 13:01:05 +00:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2025-05-09 14:52:31 +00:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2025-04-27 13:01:05 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
2025-05-16 20:28:14 +00:00
|
|
|
android:background="@color/background"
|
|
|
|
|
android:fitsSystemWindows="true"
|
2025-05-09 14:52:31 +00:00
|
|
|
tools:context=".ui.fragments.manga_list.FragmentManga">
|
|
|
|
|
|
2025-05-16 20:28:14 +00:00
|
|
|
<LinearLayout
|
|
|
|
|
android:orientation="vertical"
|
2025-05-09 14:52:31 +00:00
|
|
|
android:layout_width="match_parent"
|
2025-05-16 20:28:14 +00:00
|
|
|
android:layout_height="match_parent">
|
2025-05-09 14:52:31 +00:00
|
|
|
|
2025-05-16 20:28:14 +00:00
|
|
|
<!-- Banner superior reducido -->
|
|
|
|
|
<RelativeLayout
|
2025-05-09 14:52:31 +00:00
|
|
|
android:layout_width="match_parent"
|
2025-05-16 20:28:14 +00:00
|
|
|
android:layout_height="120dp"
|
|
|
|
|
android:background="@drawable/sample_cover"
|
|
|
|
|
android:padding="12dp">
|
2025-05-09 14:52:31 +00:00
|
|
|
|
|
|
|
|
<ImageView
|
2025-05-16 20:28:14 +00:00
|
|
|
android:id="@+id/imageViewBanner"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
2025-05-09 14:52:31 +00:00
|
|
|
android:scaleType="centerCrop"
|
2025-05-16 20:28:14 +00:00
|
|
|
android:src="@drawable/sample_cover"
|
|
|
|
|
android:contentDescription="Banner" />
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:gravity="bottom|start"
|
|
|
|
|
android:paddingBottom="12dp"
|
|
|
|
|
android:paddingStart="12dp"
|
|
|
|
|
android:paddingEnd="12dp"
|
|
|
|
|
android:layout_alignParentBottom="true">
|
|
|
|
|
|
|
|
|
|
<!-- Avatar -->
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/imageViewAvatar"
|
|
|
|
|
android:layout_width="48dp"
|
|
|
|
|
android:layout_height="48dp"
|
|
|
|
|
android:src="@drawable/ic_profile"
|
|
|
|
|
android:background="@drawable/circle_mask"
|
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
|
android:clipToOutline="true"
|
|
|
|
|
android:contentDescription="Avatar"
|
|
|
|
|
android:layout_marginEnd="12dp" />
|
|
|
|
|
|
|
|
|
|
<!-- Nombre -->
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/textViewUsername"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:text="Usuario"
|
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
|
android:textStyle="bold"
|
|
|
|
|
android:textSize="18sp"
|
|
|
|
|
android:gravity="center_vertical" />
|
|
|
|
|
|
|
|
|
|
<!-- Botón de cambiar vista -->
|
|
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/btnViewCompact"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:src="@drawable/ic_view_compact" />
|
|
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/btnViewNormal"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:src="@drawable/ic_view_normal" />
|
|
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/btnViewLarge"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:src="@drawable/ic_view_large" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
|
|
<!-- Lista scrollable -->
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
|
android:id="@+id/recyclerViewManga"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="0dp"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:paddingStart="8dp"
|
|
|
|
|
android:paddingEnd="8dp"
|
|
|
|
|
android:paddingBottom="100dp"
|
|
|
|
|
android:clipToPadding="false"
|
|
|
|
|
android:scrollbars="vertical" />
|
2025-05-09 14:52:31 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
2025-05-16 20:28:14 +00:00
|
|
|
<!-- FAB flotante -->
|
|
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
|
|
|
|
android:id="@+id/fabAddManga"
|
2025-05-09 14:52:31 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2025-05-16 20:28:14 +00:00
|
|
|
android:layout_gravity="bottom|end"
|
|
|
|
|
android:layout_margin="24dp"
|
|
|
|
|
android:contentDescription="Agregar manga"
|
|
|
|
|
android:src="@drawable/ic_add"
|
|
|
|
|
android:tint="@android:color/white"
|
|
|
|
|
app:backgroundTint="@color/primary" />
|
|
|
|
|
|
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|