Files
PapF/app/src/main/res/layout/activity_find_friends.xml
MeuNome 0fe31e3f65 mudar
2026-04-27 14:58:47 +01:00

77 lines
3.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/background_light"
android:orientation="vertical">
<!-- Header with Search -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/card_background"
android:orientation="vertical"
android:padding="16dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp">
<ImageButton
android:id="@+id/btnClose"
android:layout_width="48dp"
android:layout_height="48dp"
android:background="?attr/selectableItemBackgroundBorderless"
android:src="@drawable/ic_back"
app:tint="@color/text_primary" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:text="Amigos"
android:textColor="@color/text_primary"
android:textSize="20sp"
android:textStyle="bold" />
</RelativeLayout>
<EditText
android:id="@+id/etSearchFriends"
android:layout_width="match_parent"
android:layout_height="50dp"
android:background="@drawable/edit_text_bg"
android:drawableStart="@drawable/ic_search"
android:drawablePadding="12dp"
android:hint="Procurar por nome ou ID..."
android:paddingHorizontal="16dp"
android:textSize="14sp" />
</LinearLayout>
<com.google.android.material.tabs.TabLayout
android:id="@+id/tabLayoutFriends"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:tabIndicatorColor="@color/primary_purple"
app:tabSelectedTextColor="@color/primary_purple"
app:tabTextColor="@color/text_secondary">
<com.google.android.material.tabs.TabItem android:text="Sugestões" />
<com.google.android.material.tabs.TabItem android:text="Os meus amigos" />
<com.google.android.material.tabs.TabItem android:text="Pendentes" />
</com.google.android.material.tabs.TabLayout>
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/friendsResultsContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp">
<!-- Results will be loaded here -->
</LinearLayout>
</androidx.core.widget.NestedScrollView>
</LinearLayout>