Files
APKDownloader/app/src/main/res/layout/view_app_update.xml
Aayush Gupta 6ef16a840d Drop dependency upon expansionpanel library
Deprecated

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-05-18 11:10:24 +05:30

152 lines
6.6 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/>.
~
-->
<RelativeLayout 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="match_parent"
android:layout_height="wrap_content"
android:background="?selectableItemBackground"
android:orientation="vertical"
android:paddingStart="@dimen/padding_normal"
android:paddingEnd="@dimen/padding_small">
<FrameLayout
android:id="@+id/expansion_header"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<RelativeLayout
android:id="@+id/layout_content"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<RelativeLayout
android:id="@+id/head_flipper"
android:layout_width="@dimen/icon_size_medium"
android:layout_height="@dimen/icon_size_medium">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/img_icon"
android:layout_width="@dimen/icon_size_medium"
android:layout_height="@dimen/icon_size_medium" />
<ProgressBar
android:id="@+id/progress_download"
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
android:layout_width="@dimen/icon_size_medium"
android:layout_height="@dimen/icon_size_medium"
android:layout_centerInParent="true"
android:progressDrawable="@drawable/progressbar_bg"
android:visibility="invisible"
tools:progress="40" />
</RelativeLayout>
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/txt_line1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/margin_normal"
android:layout_toStartOf="@+id/headerIndicator"
android:layout_toEndOf="@id/head_flipper"
android:ellipsize="end"
android:singleLine="true"
android:textAppearance="@style/TextAppearance.Aurora.Line1" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/txt_line2"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/txt_line1"
android:layout_alignStart="@+id/txt_line1"
android:layout_alignEnd="@id/txt_line1"
android:ellipsize="end"
android:singleLine="true"
android:textAppearance="@style/TextAppearance.Aurora.Line3" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/txt_line3"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/txt_line2"
android:layout_alignStart="@+id/txt_line1"
android:layout_alignEnd="@id/txt_line1"
android:ellipsize="end"
android:singleLine="true"
android:textAppearance="@style/TextAppearance.Aurora.Line3" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/txt_line4"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/txt_line3"
android:layout_alignStart="@+id/txt_line1"
android:layout_alignEnd="@id/txt_line1"
android:ellipsize="end"
android:singleLine="true"
android:textAppearance="@style/TextAppearance.Aurora.Line3" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/headerIndicator"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@id/layout_action"
android:layout_toStartOf="@id/layout_action"
android:adjustViewBounds="true"
android:clickable="true"
android:focusable="true"
android:padding="@dimen/margin_small"
android:contentDescription="@string/details_changelog"
app:srcCompat="@drawable/ic_arrow_down"
app:tint="?colorControlNormal" />
<LinearLayout
android:id="@+id/layout_action"
android:layout_width="115dp"
android:layout_height="@dimen/height_button"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:gravity="center"
android:orientation="horizontal">
<com.aurora.store.view.custom.layouts.button.UpdateButton
android:id="@+id/btn_action"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
</RelativeLayout>
</FrameLayout>
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/txt_changelog"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/expansion_header"
android:layout_marginTop="@dimen/margin_small"
android:background="@drawable/bg_changelog"
android:ellipsize="end"
android:minHeight="?actionBarSize"
android:singleLine="false"
android:textAppearance="@style/TextAppearance.Aurora.Line2"
android:textIsSelectable="true"
android:visibility="gone" />
</RelativeLayout>