2013-04-13 10:06:55 +10:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
2015-06-18 14:35:13 -04:00
|
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2013-04-13 10:06:55 +10:00
|
|
|
android:paddingTop="@dimen/padding_top"
|
2014-03-10 18:19:15 +01:00
|
|
|
android:paddingLeft="@dimen/padding_side"
|
2014-02-20 14:15:50 +01:00
|
|
|
android:paddingStart="@dimen/padding_side"
|
2014-03-10 18:19:15 +01:00
|
|
|
android:paddingRight="@dimen/padding_side"
|
2014-02-20 14:15:50 +01:00
|
|
|
android:paddingEnd="@dimen/padding_side">
|
2013-04-13 10:06:55 +10:00
|
|
|
|
2015-06-18 14:35:13 -04:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
2015-09-24 14:10:41 +03:00
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/repoView"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
2015-06-18 14:35:13 -04:00
|
|
|
|
2015-09-24 14:10:41 +03:00
|
|
|
<TextView
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:id="@+id/input_repo_url"
|
|
|
|
android:textStyle="bold"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
android:layout_alignParentTop="true" />
|
2013-04-13 10:06:55 +10:00
|
|
|
|
2015-09-24 14:10:41 +03:00
|
|
|
<!-- Name of this repo -->
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:id="@+id/label_repo_name"
|
|
|
|
android:text="@string/repo_name"
|
|
|
|
android:layout_below="@id/input_repo_url"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
android:paddingTop="@dimen/form_label_top"/>
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:singleLine="false"
|
|
|
|
android:id="@+id/text_repo_name"
|
|
|
|
android:layout_below="@id/label_repo_name" android:textStyle="bold"/>
|
2013-04-13 10:06:55 +10:00
|
|
|
|
2015-09-24 14:10:41 +03:00
|
|
|
<!-- Description - as pulled from the index file during last update... -->
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:id="@+id/label_description"
|
|
|
|
android:text="@string/repo_description"
|
|
|
|
android:layout_below="@id/text_repo_name"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
android:paddingTop="@dimen/form_label_top"/>
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:singleLine="false"
|
|
|
|
android:scrollHorizontally="false"
|
|
|
|
android:id="@+id/text_description"
|
|
|
|
android:layout_below="@id/label_description" android:textStyle="bold"/>
|
2013-04-13 10:06:55 +10:00
|
|
|
|
2015-09-24 14:10:41 +03:00
|
|
|
<!-- Number of apps belonging to this repo -->
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:id="@+id/label_num_apps"
|
|
|
|
android:text="@string/repo_num_apps"
|
|
|
|
android:layout_below="@id/text_description"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
android:paddingTop="@dimen/form_label_top" />
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:id="@+id/text_num_apps"
|
|
|
|
android:layout_below="@id/label_num_apps" android:textStyle="bold"/>
|
2013-04-13 10:06:55 +10:00
|
|
|
|
2015-09-24 14:10:41 +03:00
|
|
|
<!-- The last time this repo was updated -->
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:id="@+id/label_last_update"
|
|
|
|
android:text="@string/repo_last_update"
|
|
|
|
android:layout_below="@id/text_num_apps"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
android:paddingTop="@dimen/form_label_top" />
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:id="@+id/text_last_update"
|
|
|
|
android:layout_below="@id/label_last_update" android:textStyle="bold"/>
|
2013-04-13 10:06:55 +10:00
|
|
|
|
2015-09-24 14:10:41 +03:00
|
|
|
<!-- Signature (or "unsigned" if none) -->
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:id="@+id/label_repo_fingerprint"
|
|
|
|
android:text="@string/repo_fingerprint"
|
|
|
|
android:layout_below="@id/text_last_update"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
android:paddingTop="@dimen/form_label_top" />
|
|
|
|
<TextView
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:singleLine="false"
|
|
|
|
android:scrollHorizontally="false"
|
|
|
|
android:id="@+id/text_repo_fingerprint"
|
|
|
|
android:layout_below="@id/label_repo_fingerprint" android:textStyle="bold"/>
|
|
|
|
<TextView
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:singleLine="false"
|
|
|
|
android:scrollHorizontally="false"
|
|
|
|
android:id="@+id/text_repo_fingerprint_description"
|
|
|
|
android:layout_below="@id/text_repo_fingerprint"/>
|
2013-04-13 10:06:55 +10:00
|
|
|
|
2015-09-24 14:10:41 +03:00
|
|
|
<!-- The last time this repo was updated -->
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:id="@+id/text_not_yet_updated"
|
|
|
|
android:layout_below="@id/input_repo_url"
|
|
|
|
android:text="@string/repo_not_yet_updated"
|
|
|
|
android:textStyle="bold"
|
|
|
|
android:paddingTop="@dimen/form_label_top"/>
|
2013-04-13 10:06:55 +10:00
|
|
|
|
2015-09-24 14:10:41 +03:00
|
|
|
<Button
|
|
|
|
android:id="@+id/btn_update"
|
|
|
|
android:layout_centerHorizontal="true"
|
|
|
|
android:text="@string/repo_update"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@id/text_not_yet_updated"/>
|
2013-04-13 10:06:55 +10:00
|
|
|
|
2015-09-24 14:10:41 +03:00
|
|
|
</RelativeLayout>
|
2015-06-18 14:35:13 -04:00
|
|
|
|
2015-09-24 14:10:41 +03:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/qr_code"
|
|
|
|
android:src="@drawable/swap_qr_example"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content" />
|
2015-06-18 14:35:13 -04:00
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView>
|