lebonprix.apk/res/layout/category_item.xml

51 lines
2.8 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"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="70dp"
android:layout_height="70dp" android:id="@+id/container"
android:background="@drawable/rounded_category_item_bg"
android:orientation="vertical">
<android.support.constraint.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_weight="40" android:id="@+id/icon_wrapper">
<ImageView
android:layout_width="20dp"
android:layout_height="20dp"
android:id="@+id/icon"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent" android:layout_marginTop="8dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="0dp"
android:id="@+id/count" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" android:fontFamily="@font/roboto"
android:textSize="8sp" android:text="12"
android:paddingLeft="5dp" android:paddingRight="5dp"
android:background="@drawable/rounded_category_item_count_bg" android:textColor="@android:color/white"/>
</android.support.constraint.ConstraintLayout>
<android.support.constraint.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_weight="60" android:id="@+id/label_wrapper">
<TextView
android:text="Toutes les categories"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/label"
android:fontFamily="@font/roboto" android:textSize="10sp" android:maxWidth="100dp"
android:textAlignment="center"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toTopOf="parent" android:layout_marginBottom="8dp"/>
</android.support.constraint.ConstraintLayout>
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/selected"
android:clickable="false" android:visibility="gone" android:layout_marginStart="6dp"/>
</LinearLayout>