Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4b819266 authored by Hasib Prince's avatar Hasib Prince
Browse files

Merge branch '5600-category_title_ellipsis' into 'main'

5600 category title ellipsis

See merge request !240
parents 606d48a4 737b37b6
Loading
Loading
Loading
Loading
Loading
+24 −18
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@

<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:id="@+id/categoryLayout"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
@@ -27,49 +28,54 @@
    android:focusable="true"
    android:orientation="vertical">

    <LinearLayout
        android:orientation="horizontal"
    <androidx.constraintlayout.widget.ConstraintLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content">
        android:layout_height="wrap_content"
        android:orientation="horizontal">

        <ImageView
            android:id="@+id/categoryIcon"
            android:layout_width="30dp"
            android:layout_height="30dp"
            android:contentDescription="@string/category_icon"
            android:scaleType="fitXY" />
            android:scaleType="fitXY"
            app:layout_constraintLeft_toLeftOf="parent"
            app:layout_constraintTop_toTopOf="parent" />

        <com.google.android.material.textview.MaterialTextView
            android:id="@+id/category_title"
            android:layout_width="wrap_content"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:layout_marginStart="15dp"
            android:ellipsize="end"
            android:maxLines="1"
            android:textColor="?android:textColorPrimary"
            android:textSize="16sp" />

        <View
            android:layout_width="0dp"
            android:layout_height="0dp"
            android:layout_weight="1" />
            android:textSize="16sp"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintLeft_toRightOf="@+id/categoryIcon"
            app:layout_constraintRight_toLeftOf="@+id/categoryTag"
            app:layout_constraintTop_toTopOf="parent" />

        <TextView
            android:id="@+id/categoryTag"
            android:background="@drawable/bg_tag_rounded"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:background="@drawable/bg_tag_rounded"
            android:paddingStart="6dp"
            android:paddingTop="2dp"
            android:paddingEnd="6dp"
            android:paddingBottom="2dp"
            android:textAllCaps="false"
            android:textColor="#626262"
            android:textSize="15sp"
            android:text="Open Source"
            android:paddingTop="2dp"
            android:paddingBottom="2dp"
            android:paddingStart="6dp"
            android:paddingEnd="6dp"/>
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintRight_toRightOf="parent"
            app:layout_constraintTop_toTopOf="parent"
            tools:text="@string/open_source"
            />


    </LinearLayout>
    </androidx.constraintlayout.widget.ConstraintLayout>

</LinearLayout>
 No newline at end of file