aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/res/layout
diff options
context:
space:
mode:
authorDominik Schürmann <dominik@dominikschuermann.de>2014-06-27 21:40:18 +0200
committerDominik Schürmann <dominik@dominikschuermann.de>2014-06-27 21:40:18 +0200
commit9fe07478e7fe683223310d017f162f5bcb467d15 (patch)
tree89b12f622318d80b89f0652ce218777a6359efc4 /OpenKeychain/src/main/res/layout
parenta1bcbe72a3c52d416b3dfe5c0cc96b65739641ed (diff)
downloadopen-keychain-9fe07478e7fe683223310d017f162f5bcb467d15.tar.gz
open-keychain-9fe07478e7fe683223310d017f162f5bcb467d15.tar.bz2
open-keychain-9fe07478e7fe683223310d017f162f5bcb467d15.zip
Start work on a first-time wizard
Diffstat (limited to 'OpenKeychain/src/main/res/layout')
-rw-r--r--OpenKeychain/src/main/res/layout/wizard_activity.xml98
-rw-r--r--OpenKeychain/src/main/res/layout/wizard_create_key_fragment.xml41
-rw-r--r--OpenKeychain/src/main/res/layout/wizard_generic_fragment.xml15
-rw-r--r--OpenKeychain/src/main/res/layout/wizard_start_fragment.xml63
4 files changed, 217 insertions, 0 deletions
diff --git a/OpenKeychain/src/main/res/layout/wizard_activity.xml b/OpenKeychain/src/main/res/layout/wizard_activity.xml
new file mode 100644
index 000000000..299d07a76
--- /dev/null
+++ b/OpenKeychain/src/main/res/layout/wizard_activity.xml
@@ -0,0 +1,98 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <LinearLayout
+ android:id="@+id/wizard_buttons"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_alignParentBottom="true"
+ android:orientation="horizontal">
+
+ <Button
+ android:id="@+id/wizard_back"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:onClick="backOnClick"
+ android:text="cancel"
+ style="@style/SelectableItem" />
+
+ <View
+ android:layout_width="1dip"
+ android:layout_height="match_parent"
+ android:layout_marginBottom="4dip"
+ android:layout_marginTop="4dip"
+ android:background="?android:attr/listDivider" />
+
+ <Button
+ android:id="@+id/wizard_next"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:onClick="nextOnClick"
+ android:text="next"
+ style="@style/SelectableItem" />
+ </LinearLayout>
+
+ <View
+ android:id="@+id/wizard_progress_line"
+ android:layout_width="match_parent"
+ android:layout_height="1dip"
+ android:layout_above="@+id/wizard_buttons"
+ android:layout_marginLeft="4dip"
+ android:layout_marginRight="4dip"
+ android:background="?android:attr/listDivider"
+ android:visibility="gone" />
+
+ <LinearLayout
+ android:id="@+id/wizard_progress"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_above="@+id/wizard_progress_line"
+ android:visibility="gone">
+
+ <ProgressBar
+ android:id="@+id/wizard_progress_progressbar"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content" />
+
+ <ImageView
+ android:id="@+id/wizard_progress_image"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:src="@drawable/icon_light_refresh" />
+
+ <TextView
+ android:id="@+id/wizard_progress_text"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_vertical"
+ android:text="asd"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+ </LinearLayout>
+
+ <View
+ android:id="@+id/wizard_line2"
+ android:layout_width="match_parent"
+ android:layout_height="1dip"
+ android:layout_above="@+id/wizard_progress"
+ android:layout_marginLeft="4dip"
+ android:layout_marginRight="4dip"
+ android:background="?android:attr/listDivider" />
+
+ <ScrollView
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_above="@+id/wizard_line2">
+
+ <LinearLayout
+ android:id="@+id/wizard_container"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical"
+ android:padding="16dp" />
+ </ScrollView>
+
+</RelativeLayout> \ No newline at end of file
diff --git a/OpenKeychain/src/main/res/layout/wizard_create_key_fragment.xml b/OpenKeychain/src/main/res/layout/wizard_create_key_fragment.xml
new file mode 100644
index 000000000..213346617
--- /dev/null
+++ b/OpenKeychain/src/main/res/layout/wizard_create_key_fragment.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical">
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingBottom="4dp"
+ android:text="Enter Full Name, Email and Passphrase!"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+
+ <EditText
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:inputType="textPersonName"
+ android:hint="Name"
+ android:ems="10"
+ android:id="@+id/name" />
+
+ <AutoCompleteTextView
+ android:id="@+id/email"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:hint="bla@example.com"
+ android:layout_weight="1"
+ android:ems="10"
+ android:inputType="textEmailAddress" />
+
+ <EditText
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:inputType="textPassword"
+ android:hint="passphrase"
+ android:ems="10"
+ android:id="@+id/passphrase"
+ android:layout_gravity="center_horizontal" />
+
+
+</LinearLayout> \ No newline at end of file
diff --git a/OpenKeychain/src/main/res/layout/wizard_generic_fragment.xml b/OpenKeychain/src/main/res/layout/wizard_generic_fragment.xml
new file mode 100644
index 000000000..a55370804
--- /dev/null
+++ b/OpenKeychain/src/main/res/layout/wizard_generic_fragment.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical" >
+
+ <TextView
+ android:id="@+id/fragment_vehicle_reg_generic_text"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingBottom="4dp"
+ android:text="Result text"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+
+</LinearLayout> \ No newline at end of file
diff --git a/OpenKeychain/src/main/res/layout/wizard_start_fragment.xml b/OpenKeychain/src/main/res/layout/wizard_start_fragment.xml
new file mode 100644
index 000000000..9e1403f74
--- /dev/null
+++ b/OpenKeychain/src/main/res/layout/wizard_start_fragment.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical">
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingBottom="4dp"
+ android:text="Welcome to OpenKeychain"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+
+ <TextView
+ style="@style/SectionHeader"
+ android:layout_width="wrap_content"
+ android:layout_height="0dp"
+ android:layout_marginTop="14dp"
+ android:text="What you wanna do today?"
+ android:layout_weight="1" />
+
+ <RadioGroup
+ android:id="@+id/wizard_start_radio_group"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+
+ <RadioButton
+ android:layout_width="match_parent"
+ android:layout_height="?android:attr/listPreferredItemHeight"
+ android:checked="true"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ style="@style/SelectableItem"
+ android:text="new key"
+ android:id="@+id/wizard_start_new_key" />
+
+ <View
+ android:layout_width="match_parent"
+ android:layout_height="1dip"
+ android:background="?android:attr/listDivider" />
+
+ <RadioButton
+ android:layout_width="match_parent"
+ android:layout_height="?android:attr/listPreferredItemHeight"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ style="@style/SelectableItem"
+ android:text="import existing key"
+ android:id="@+id/wizard_start_import" />
+
+ <View
+ android:layout_width="match_parent"
+ android:layout_height="1dip"
+ android:background="?android:attr/listDivider" />
+
+ <RadioButton
+ android:layout_width="match_parent"
+ android:layout_height="?android:attr/listPreferredItemHeight"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ style="@style/SelectableItem"
+ android:text="skip wizard"
+ android:id="@+id/wizard_start_skip" />
+ </RadioGroup>
+
+</LinearLayout> \ No newline at end of file