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

Commit fb09bba6 authored by Hasib Prince's avatar Hasib Prince
Browse files

ui of source tag updated

parent bf021a9c
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -323,7 +323,7 @@ class ApplicationFragment : TimeoutFragment(R.layout.fragment_application) {
            }
            categoryTitle.text = it.category
            if (it.origin == Origin.CLEANAPK) {
                sourceTagCardView.visibility = View.VISIBLE
                sourceTag.visibility = View.VISIBLE
                sourceTag.text = it.source
            }
            if (origin == Origin.CLEANAPK) {
+23 −36
Original line number Diff line number Diff line
@@ -80,49 +80,36 @@
        android:background="@color/colorBackground"
        android:backgroundTint="@color/colorBackground">

        <androidx.cardview.widget.CardView
            android:id="@+id/sourceTagCardView"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="end"
            android:layout_marginEnd="15dp"
            android:layout_marginBottom="1dp"
            android:background="@color/colorBackground"
            android:backgroundTint="@color/colorBackground"
            android:elevation="2dp"
            android:visibility="gone"
            app:cardCornerRadius="5dp">

            <com.google.android.material.textview.MaterialTextView
        <TextView
            android:id="@+id/sourceTag"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
                android:layout_margin="4dp"
                android:textColor="@color/colorAccent"
                android:textSize="16sp"
                tools:text="PWA" />
        </androidx.cardview.widget.CardView>

        <androidx.cardview.widget.CardView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="end"
            android:layout_marginEnd="20dp"
            android:layout_marginBottom="1dp"
            android:background="@color/colorBackground"
            android:backgroundTint="@color/colorBackground"
            android:elevation="2dp"
            app:cardCornerRadius="5dp">
            android:background="@drawable/bg_tag_rounded"
            android:paddingStart="10dp"
            android:paddingTop="4dp"
            android:paddingEnd="10dp"
            android:paddingBottom="4dp"
            android:textAllCaps="false"
            android:textColor="#626262"
            android:layout_marginEnd="10dp"
            android:textSize="14sp"
            android:visibility="gone"
            tools:text="Open Source" />

            <com.google.android.material.textview.MaterialTextView
        <TextView
            android:id="@+id/categoryTitle"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
                android:layout_margin="4dp"
                android:textColor="@color/colorAccent"
                android:textSize="16sp"
            android:background="@drawable/bg_tag_rounded"
            android:paddingStart="10dp"
            android:paddingTop="4dp"
            android:paddingEnd="10dp"
            android:paddingBottom="4dp"
            android:textAllCaps="false"
            android:textColor="#626262"
            android:textSize="14sp"
            android:layout_marginEnd="20dp"
            tools:text="Racing" />
        </androidx.cardview.widget.CardView>

    </LinearLayout>