273 lines
12 KiB
XML
Executable File
273 lines
12 KiB
XML
Executable File
<?xml version="1.0" encoding="UTF-8"?>
|
|
<android.support.v7.widget.CardView 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:layout_margin="@dimen/details_activity_padding"
|
|
app:cardBackgroundColor="?attr/appDetailsCardBackground"
|
|
app:cardCornerRadius="3dp"
|
|
app:cardElevation="3dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:paddingBottom="8dp"
|
|
>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginLeft="8dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginRight="8dp"
|
|
>
|
|
|
|
<!-- Icon, Name, Author (optional), Updated date -->
|
|
<RelativeLayout
|
|
android:id="@+id/icon_and_name"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingBottom="8dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/icon"
|
|
android:layout_width="72dp"
|
|
android:layout_height="72dp"
|
|
android:layout_alignParentLeft="true"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_alignParentTop="true"
|
|
android:paddingRight="8dp"
|
|
android:paddingEnd="8dp"
|
|
android:transitionName="@string/transition_app_item_icon"
|
|
android:src="@drawable/ic_repo_app_default" />
|
|
|
|
<!-- Name, Author (optional), Updated date -->
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_toEndOf="@id/icon"
|
|
android:layout_toRightOf="@id/icon"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="@style/DetailsAppTitleStyle"
|
|
tools:text="Really Long App Title Which Wraps Around Onto the Second Line" />
|
|
|
|
<TextView
|
|
android:id="@+id/author"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
|
|
tools:text="Author" />
|
|
|
|
<TextView
|
|
android:id="@+id/text_last_update"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="@style/DetailsLastUpdatedStyle"
|
|
android:textColor="@android:color/darker_gray"
|
|
tools:text="Update released 12 days ago" />
|
|
|
|
</LinearLayout>
|
|
|
|
</RelativeLayout>
|
|
|
|
<!-- Progress info -->
|
|
<RelativeLayout
|
|
android:id="@+id/progress_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_alignParentLeft="true"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_below="@id/icon_and_name"
|
|
tools:visibility="gone">
|
|
|
|
<ImageView
|
|
android:id="@+id/progress_cancel"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_centerVertical="true"
|
|
android:contentDescription="@string/app__tts__cancel_download"
|
|
android:src="@android:drawable/ic_menu_close_clear_cancel" />
|
|
|
|
<TextView
|
|
android:id="@+id/progress_label"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentLeft="true"
|
|
android:layout_alignParentStart="true"
|
|
android:text="@string/downloading"
|
|
android:contentDescription="@string/downloading"
|
|
android:focusable="true"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small" />
|
|
|
|
<TextView
|
|
android:id="@+id/progress_percent"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_toLeftOf="@id/progress_cancel"
|
|
android:layout_toStartOf="@id/progress_cancel"
|
|
android:text=""
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small" />
|
|
|
|
<ProgressBar
|
|
android:id="@+id/progress_bar"
|
|
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentLeft="true"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_below="@id/progress_label"
|
|
android:layout_toLeftOf="@id/progress_cancel"
|
|
android:layout_toStartOf="@id/progress_cancel" />
|
|
</RelativeLayout>
|
|
|
|
<!-- Install, Uninstall, Upgrade, Run buttons -->
|
|
<LinearLayout
|
|
android:id="@+id/button_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@id/icon_and_name"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_alignParentLeft="true"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_alignParentRight="true"
|
|
android:paddingBottom="2dp"
|
|
android:clipToPadding="false"
|
|
android:visibility="visible"
|
|
>
|
|
|
|
<android.support.v7.widget.AppCompatButton
|
|
android:id="@+id/secondaryButtonView"
|
|
style="@style/DetailsSecondaryButtonStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:ellipsize="marquee"
|
|
app:textAllCaps="true"
|
|
android:padding="12dp"
|
|
tools:text="Uninstall" />
|
|
|
|
<android.support.v7.widget.AppCompatButton
|
|
android:id="@+id/primaryButtonView"
|
|
style="@style/DetailsPrimaryButtonStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="8dp"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_weight="1"
|
|
android:ellipsize="marquee"
|
|
app:textAllCaps="true"
|
|
tools:text="Run" />
|
|
</LinearLayout>
|
|
|
|
</RelativeLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/whats_new"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
|
|
android:paddingStart="8dp"
|
|
android:paddingLeft="8dp"
|
|
android:paddingEnd="8dp"
|
|
android:paddingRight="8dp"
|
|
android:paddingTop="16dp"
|
|
android:paddingBottom="16dp"
|
|
android:layout_marginTop="16dp"
|
|
android:layout_marginBottom="16dp"
|
|
android:background="?attr/detailPanel"
|
|
tools:text="NEW IN VERSION 1.0.2233\n\nA lot has happened since the last build:\n\n\t• Improved UI\n\t• Bug fixes"
|
|
/>
|
|
|
|
<TextView
|
|
android:id="@+id/description"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginLeft="8dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginRight="8dp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:scrollbars="none"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
|
|
android:textIsSelectable="true"
|
|
tools:text="This is the app description of this awezome app. It can be several lines long, but will be truncated at just a few if it is. A 'read more' button will appear so that you can expand the view and view the full text, if you wish. Yes, it will be blue and beautiful." />
|
|
|
|
<TextView
|
|
android:id="@+id/label_anti_features"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginLeft="8dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginRight="8dp"
|
|
android:scrollbars="none"
|
|
android:textStyle="bold"
|
|
android:textAllCaps="true"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
|
|
android:text="@string/antifeatures" />
|
|
|
|
<TextView
|
|
android:id="@+id/text_anti_features"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginLeft="8dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginRight="8dp"
|
|
android:scrollbars="none"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
|
|
tools:text="\t• This app tracks and reports your activity." />
|
|
|
|
<android.support.v7.widget.AppCompatTextView
|
|
android:id="@+id/description_more"
|
|
style="@style/DetailsMoreButtonStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginLeft="8dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginRight="8dp"
|
|
android:gravity="end"
|
|
android:text="@string/more"
|
|
android:textAllCaps="true"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
|
|
tools:text="more" />
|
|
|
|
<TextView
|
|
android:id="@+id/anti_features_warning"
|
|
style="@style/DetailsAntiFeaturesWarningStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginLeft="8dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginRight="8dp"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
|
|
android:drawableStart="@drawable/ic_warning_black_24dp"
|
|
android:drawableLeft="@drawable/ic_warning_black_24dp"
|
|
android:gravity="center_vertical"
|
|
android:drawablePadding="10dp"
|
|
android:text="@string/antifeatureswarning" />
|
|
|
|
</LinearLayout>
|
|
</android.support.v7.widget.CardView>
|