aboutsummaryrefslogtreecommitdiffstats
path: root/src/frontends/android/app
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2017-06-27 13:54:32 +0200
committerTobias Brunner <tobias@strongswan.org>2017-07-03 10:27:54 +0200
commit238c3061b7b8d674b7ec6053c5468a739b555635 (patch)
tree57f96135893577c014bc6a5743ae9e6319508690 /src/frontends/android/app
parent5561633fcd54636b1a3f917eb5c86980d0c527b9 (diff)
downloadstrongswan-238c3061b7b8d674b7ec6053c5468a739b555635.tar.bz2
strongswan-238c3061b7b8d674b7ec6053c5468a739b555635.tar.xz
android: Add list item layout for installed/selected apps
Diffstat (limited to 'src/frontends/android/app')
-rw-r--r--src/frontends/android/app/src/main/res/layout/selected_application_item.xml52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/frontends/android/app/src/main/res/layout/selected_application_item.xml b/src/frontends/android/app/src/main/res/layout/selected_application_item.xml
new file mode 100644
index 000000000..faece8396
--- /dev/null
+++ b/src/frontends/android/app/src/main/res/layout/selected_application_item.xml
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2017 Tobias Brunner
+ HSR Hochschule fuer Technik Rapperswil
+
+ 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 2 of the License, or (at your
+ option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
+
+ 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.
+-->
+<org.strongswan.android.ui.widget.CheckableLinearLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="horizontal"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:paddingLeft="8dp"
+ android:paddingRight="8dp"
+ android:minHeight="?android:listPreferredItemHeight"
+ android:background="@drawable/activated_background"
+ android:gravity="center_vertical" >
+
+ <ImageView android:id="@+id/app_icon"
+ android:duplicateParentState="true"
+ android:layout_width="@android:dimen/app_icon_size"
+ android:layout_height="@android:dimen/app_icon_size"
+ android:layout_marginRight="8dip"
+ android:layout_marginEnd="8dip"
+ android:scaleType="centerInside" />
+
+ <TextView android:id="@+id/app_name"
+ android:duplicateParentState="true"
+ android:layout_width="0dp"
+ android:layout_weight="1"
+ android:layout_height="wrap_content"
+ android:ellipsize="end"
+ android:maxLines="1"
+ android:textAppearance="?android:textAppearanceMedium"
+ android:textColor="@color/checkable_text_color" />
+
+ <ImageView android:src="?android:listChoiceIndicatorMultiple"
+ android:duplicateParentState="true"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="16dp"
+ android:layout_marginStart="16dp" />
+
+</org.strongswan.android.ui.widget.CheckableLinearLayout>