2015-06-02 22:33:53 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!--
|
|
|
|
Copyright (C) 2015 Nico Alt, nicoalt@posteo.org
|
|
|
|
|
|
|
|
This program 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 3
|
|
|
|
of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This program 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 this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
-->
|
2015-07-10 02:51:43 +02:00
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2015-06-02 22:33:53 +02:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:id="@+id/icon_and_title"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:baselineAligned="false"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:padding="2dp">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/icon"
|
|
|
|
android:layout_width="72dp"
|
|
|
|
android:layout_height="72dp"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:contentDescription="@string/app_icon"
|
|
|
|
android:scaleType="fitCenter"
|
|
|
|
tools:src="@drawable/ic_launcher" />
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2014-06-22 20:40:43 +09:30
|
|
|
android:layout_height="wrap_content"
|
2015-06-02 22:33:53 +02:00
|
|
|
android:layout_gravity="center_vertical"
|
2014-06-22 20:40:43 +09:30
|
|
|
android:baselineAligned="false"
|
2015-06-02 22:33:53 +02:00
|
|
|
android:orientation="vertical"
|
2015-07-10 02:51:43 +02:00
|
|
|
android:layout_toRightOf="@id/icon"
|
2015-06-02 22:33:53 +02:00
|
|
|
android:paddingLeft="16dp"
|
|
|
|
android:paddingStart="16dp">
|
2014-06-22 20:40:43 +09:30
|
|
|
|
2015-06-02 22:33:53 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/title"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:gravity="start"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textAlignment="viewStart"
|
|
|
|
android:textSize="17sp"
|
|
|
|
android:textStyle="bold"
|
|
|
|
tools:text="F-Droid" />
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2014-06-22 20:40:43 +09:30
|
|
|
android:layout_height="wrap_content"
|
2015-06-02 22:33:53 +02:00
|
|
|
android:layout_gravity="center_vertical"
|
2014-06-22 20:40:43 +09:30
|
|
|
android:baselineAligned="false"
|
2015-06-02 22:33:53 +02:00
|
|
|
android:orientation="horizontal">
|
2014-06-22 20:40:43 +09:30
|
|
|
|
2015-06-02 22:33:53 +02:00
|
|
|
<LinearLayout
|
2014-06-22 20:40:43 +09:30
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2015-06-02 22:33:53 +02:00
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_marginBottom="3dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:baselineAligned="false"
|
|
|
|
android:orientation="vertical">
|
2014-06-22 20:40:43 +09:30
|
|
|
|
2015-06-02 22:33:53 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/current_version"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:gravity="start"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textAlignment="viewStart"
|
|
|
|
android:textSize="13sp"
|
|
|
|
tools:text="1.24" />
|
2014-06-22 20:40:43 +09:30
|
|
|
|
2015-06-02 22:33:53 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/status"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:gravity="start"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textAlignment="viewStart"
|
|
|
|
android:textSize="13sp"
|
|
|
|
tools:text="Version 1.23 installed" />
|
2014-06-22 20:40:43 +09:30
|
|
|
|
2015-06-02 22:33:53 +02:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/btn_main"
|
2014-06-22 20:40:43 +09:30
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2015-06-02 22:33:53 +02:00
|
|
|
android:layout_gravity="end"
|
|
|
|
android:layout_weight="0"
|
|
|
|
android:baselineAligned="false"
|
|
|
|
tools:text="Open" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
2015-07-10 02:51:43 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/holder"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@id/icon"
|
|
|
|
android:gravity="center">
|
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1">
|
|
|
|
<ProgressBar
|
|
|
|
android:id="@+id/progress_bar"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:visibility="gone"
|
|
|
|
style="@style/Base.Widget.AppCompat.ProgressBar.Horizontal" />
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/progress_size"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_below="@id/progress_bar"
|
2015-08-09 18:39:20 -07:00
|
|
|
android:visibility="gone"
|
2015-07-10 02:51:43 +02:00
|
|
|
android:textSize="12sp"/>
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/progress_percentage"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_below="@id/progress_bar"
|
2015-08-09 18:39:20 -07:00
|
|
|
android:visibility="gone"
|
2015-07-10 02:51:43 +02:00
|
|
|
android:textSize="12sp"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/cancel"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:padding="5dp"
|
|
|
|
android:layout_weight="0"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:src="@drawable/ic_clear"
|
|
|
|
android:background="@null"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</RelativeLayout>
|
2015-06-02 22:33:53 +02:00
|
|
|
|
|
|
|
|
2014-06-22 20:40:43 +09:30
|
|
|
|