Files
APKDownloader/app/src/main/res/layout/view_app_card_shimmer.xml
2024-08-31 02:33:07 +05:30

87 lines
3.7 KiB
XML

<?xml version="1.0" encoding="utf-8"?><!--
~ Aurora Store
~ Copyright (C) 2021, Rahul Kumar Patel <whyorean@gmail.com>
~
~ Aurora Store is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 2 of the License, or
~ (at your option) any later version.
~
~ Aurora Store is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with Aurora Store. If not, see <http://www.gnu.org/licenses/>.
~
-->
<com.facebook.shimmer.ShimmerFrameLayout 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="wrap_content"
android:layout_height="wrap_content">
<RelativeLayout
android:id="@+id/card"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/img_cover"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:srcCompat="@drawable/bg_rounded"
tools:minHeight="196dp" />
<RelativeLayout
android:id="@+id/layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/img_cover"
android:layout_marginTop="@dimen/margin_small"
android:layout_marginBottom="@dimen/margin_small">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/img_icon"
android:layout_width="@dimen/icon_size_small"
android:layout_height="@dimen/icon_size_small"
android:background="@drawable/bg_rounded" />
<TextView
android:id="@+id/line1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/margin_normal"
android:layout_toEndOf="@id/img_icon"
android:background="?colorControlHighlight"
android:maxLines="1"
android:textAppearance="@style/TextAppearance.Aurora.Line2" />
<TextView
android:id="@+id/line2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/line1"
android:layout_alignStart="@id/line1"
android:layout_alignEnd="@id/line1"
android:layout_centerVertical="true"
android:layout_marginTop="@dimen/margin_xxsmall"
android:layout_marginBottom="@dimen/margin_xxsmall"
android:background="?colorControlHighlight"
android:maxLines="2"
android:textAppearance="@style/TextAppearance.Aurora.Line3" />
<RatingBar
android:id="@+id/rating_bar"
style="@style/Widget.AppCompat.RatingBar.Small"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/line2"
android:layout_alignStart="@id/line1"
android:numStars="5" />
</RelativeLayout>
</RelativeLayout>
</com.facebook.shimmer.ShimmerFrameLayout>