2016-11-10 12:44:18 +01:00
<?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"
2016-11-10 16:54:22 +01:00
android:layout_margin="@dimen/details_activity_padding"
2017-04-08 15:38:52 +05:30
app:cardBackgroundColor="?attr/appDetailsCardBackground"
2016-11-10 12:44:18 +01:00
app:cardCornerRadius="3dp"
app:cardElevation="3dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-03-21 16:53:14 +01:00
android:orientation="vertical"
2017-03-21 17:55:49 +01:00
android:paddingBottom="8dp"
>
2016-11-10 12:44:18 +01:00
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-03-21 17:55:49 +01:00
android:layout_marginTop="8dp"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
2016-11-10 12:44:18 +01:00
>
<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"
2017-03-21 16:53:14 +01:00
android:paddingBottom="8dp"
android:paddingRight="8dp"
2016-11-10 12:44:18 +01:00
android:src="@drawable/ic_repo_app_default" />
2017-03-21 16:53:14 +01:00
<LinearLayout
2016-11-10 12:44:18 +01:00
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
2017-03-21 16:53:14 +01:00
android:layout_marginTop="8dp"
2016-11-10 12:44:18 +01:00
android:layout_toEndOf="@id/icon"
android:layout_toRightOf="@id/icon"
2017-03-21 16:53:14 +01:00
android:orientation="vertical">
2016-11-10 12:44:18 +01:00
2017-03-21 16:53:14 +01:00
<TextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textAppearance="@style/DetailsAppTitleStyle"
tools:text="App Title" />
<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>
2016-11-10 12:44:18 +01:00
2016-11-21 17:01:03 +01:00
<RelativeLayout
android:id="@+id/progress_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
2017-03-21 16:53:14 +01:00
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_alignParentStart="true"
android:layout_below="@id/icon">
2016-11-21 17:01:03 +01:00
<ImageView
android:id="@+id/progress_cancel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
2017-03-21 16:53:14 +01:00
android:layout_centerVertical="true"
android:src="@android:drawable/ic_menu_close_clear_cancel" />
2016-11-21 17:01:03 +01:00
<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"
2017-03-21 16:53:14 +01:00
android:textAppearance="@style/TextAppearance.AppCompat.Small" />
2016-11-21 17:01:03 +01:00
<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=""
2017-03-21 16:53:14 +01:00
android:textAppearance="@style/TextAppearance.AppCompat.Small" />
2016-11-21 17:01:03 +01:00
<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"
2017-03-21 16:53:14 +01:00
android:layout_below="@id/progress_label"
android:layout_toLeftOf="@id/progress_cancel"
android:layout_toStartOf="@id/progress_cancel" />
2016-11-21 17:01:03 +01:00
</RelativeLayout>
2016-11-10 12:44:18 +01:00
<LinearLayout
2016-11-21 17:01:03 +01:00
android:id="@+id/button_layout"
2016-11-10 12:44:18 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/icon"
android:layout_toEndOf="@id/icon"
android:layout_toRightOf="@id/icon"
android:layout_alignParentEnd="true"
2016-11-21 17:01:03 +01:00
android:layout_alignParentRight="true"
2017-03-14 14:59:10 +11:00
android:clipToPadding="false"
2016-11-21 17:01:03 +01:00
android:visibility="gone"
>
2016-11-10 12:44:18 +01:00
<Button
android:id="@+id/secondaryButtonView"
style="@style/DetailsSecondaryButtonStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:ellipsize="marquee"
2017-03-14 14:59:10 +11:00
android:padding="12dp"
tools:text="THIS IS BUTTON 1" />
2016-11-10 12:44:18 +01:00
<Button
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"
2017-03-14 14:59:10 +11:00
tools:text="THIS IS 2" />
2016-11-10 12:44:18 +01:00
</LinearLayout>
</RelativeLayout>
2017-03-22 10:31:09 +11:00
<TextView
2017-03-21 17:55:49 +01:00
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:paddingEnd="8dp"
android:paddingTop="16dp"
android:paddingBottom="16dp"
android:layout_marginTop="16dp"
android:layout_marginBottom="16dp"
android:background="@color/details_panel_light"
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"
/>
2016-11-10 12:44:18 +01:00
<TextView
android:id="@+id/description"
2017-03-21 17:55:49 +01:00
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
2016-11-10 12:44:18 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:scrollbars="none"
2017-03-21 16:53:14 +01:00
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
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." />
2016-11-10 12:44:18 +01:00
2017-03-21 16:55:39 +01:00
<TextView
android:id="@+id/label_anti_features"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
2017-03-21 17:55:49 +01:00
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
2017-03-21 16:55:39 +01:00
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"
2017-03-21 17:55:49 +01:00
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
2017-03-21 16:55:39 +01:00
android:scrollbars="none"
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
tools:text="\t• This app tracks and reports your activity." />
2016-11-10 12:44:18 +01:00
<TextView
android:id="@+id/description_more"
2017-03-21 16:53:14 +01:00
style="@style/DetailsMoreButtonStyle"
2016-11-10 12:44:18 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-03-21 17:55:49 +01:00
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
2016-11-10 12:44:18 +01:00
android:gravity="right|end"
android:text="@string/more"
2017-03-21 16:53:14 +01:00
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
2016-11-10 12:44:18 +01:00
tools:text="more" />
2017-03-21 16:55:39 +01:00
<TextView
android:id="@+id/anti_features_warning"
style="@style/DetailsAntiFeaturesWarningStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-03-21 17:55:49 +01:00
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
2017-03-21 16:55:39 +01:00
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" />
2016-11-10 12:44:18 +01:00
</LinearLayout>
</android.support.v7.widget.CardView>