aboutsummaryrefslogtreecommitdiffstats
path: root/org_apg/res/layout/main.xml
diff options
context:
space:
mode:
Diffstat (limited to 'org_apg/res/layout/main.xml')
-rw-r--r--org_apg/res/layout/main.xml168
1 files changed, 98 insertions, 70 deletions
diff --git a/org_apg/res/layout/main.xml b/org_apg/res/layout/main.xml
index 803b2abe9..d9337a759 100644
--- a/org_apg/res/layout/main.xml
+++ b/org_apg/res/layout/main.xml
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright (C) 2010 Thialfihar <thi@thialfihar.org>
+<!--
+ Copyright (C) 2010 Thialfihar <thi@thialfihar.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -14,76 +15,103 @@
limitations under the License.
-->
-<LinearLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="vertical"
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
- android:paddingTop="5dip"
- android:fillViewport="true">
+ android:background="@color/background_primary"
+ android:orientation="vertical" >
- <ScrollView
- android:layout_marginTop="10dip"
+ <org.apg.ui.widget.DashboardLayout
android:layout_width="fill_parent"
- android:layout_height="0dip"
- android:layout_weight="1"
- android:fillViewport="true">
-
- <ListView
- android:id="@+id/accounts"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"/>
-
- </ScrollView>
-
- <LinearLayout
- android:orientation="vertical"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- style="@android:style/ButtonBar">
-
- <LinearLayout
- android:orientation="horizontal"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content">
-
- <Button
- android:id="@+id/btn_encryptFile"
- android:text="@string/btn_encryptFile"
- android:layout_width="0dip"
- android:layout_weight="1"
- android:layout_height="fill_parent"/>
-
- <Button
- android:id="@+id/btn_decryptFile"
- android:text="@string/btn_decryptFile"
- android:layout_width="0dip"
- android:layout_weight="1"
- android:layout_height="fill_parent"/>
-
- </LinearLayout>
-
- <LinearLayout
- android:orientation="horizontal"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content">
-
- <Button
- android:id="@+id/btn_encryptMessage"
- android:text="@string/btn_encryptMessage"
- android:layout_width="0dip"
- android:layout_weight="1"
- android:layout_height="fill_parent"/>
-
- <Button
- android:id="@+id/btn_decryptMessage"
- android:text="@string/btn_decryptMessage"
- android:layout_width="0dip"
- android:layout_weight="1"
- android:layout_height="fill_parent"/>
-
- </LinearLayout>
-
- </LinearLayout>
-
-</LinearLayout>
+ android:layout_height="fill_parent" >
+
+ <Button
+ android:id="@+id/dashboard_manage_keys"
+ style="@style/DashboardButton"
+ android:drawableTop="@drawable/dashboard_manage_keys"
+ android:onClick="manageKeysOnClick"
+ android:text="@string/dashboard_manage_keys" />
+
+ <Button
+ android:id="@+id/dashboard_my_keys"
+ style="@style/DashboardButton"
+ android:drawableTop="@drawable/dashboard_my_keys"
+ android:onClick="myKeysOnClick"
+ android:text="@string/dashboard_my_keys" />
+
+ <Button
+ android:id="@+id/dashboard_encrypt_decrypt_file"
+ style="@style/DashboardButton"
+ android:drawableTop="@drawable/dashboard_encrypt_decrypt_file"
+ android:onClick="encryptDecryptFileOnClick"
+ android:text="@string/dashboard_encrypt_decrypt_file" />
+
+ <Button
+ android:id="@+id/dashboard_encrypt_decrypt_text"
+ style="@style/DashboardButton"
+ android:drawableTop="@drawable/dashboard_encrypt_decrypt_text"
+ android:onClick="encryptDecryptTextOnClick"
+ android:text="@string/dashboard_encrypt_decrypt_text" />
+
+ <Button
+ android:id="@+id/dashboard_help"
+ style="@style/DashboardButton"
+ android:drawableTop="@drawable/dashboard_help"
+ android:onClick="helpOnClick"
+ android:text="@string/dashboard_help" />
+ </org.apg.ui.widget.DashboardLayout>
+
+ <!-- <LinearLayout -->
+ <!-- style="@android:style/ButtonBar" -->
+ <!-- android:layout_width="fill_parent" -->
+ <!-- android:layout_height="wrap_content" -->
+ <!-- android:orientation="vertical" > -->
+
+
+ <!-- <LinearLayout -->
+ <!-- android:layout_width="fill_parent" -->
+ <!-- android:layout_height="wrap_content" -->
+ <!-- android:orientation="horizontal" > -->
+
+
+ <!-- <Button -->
+ <!-- android:id="@+id/btn_encryptFile" -->
+ <!-- android:layout_width="0dip" -->
+ <!-- android:layout_height="fill_parent" -->
+ <!-- android:layout_weight="1" -->
+ <!-- android:text="@string/btn_encryptFile" /> -->
+
+
+ <!-- <Button -->
+ <!-- android:id="@+id/btn_decryptFile" -->
+ <!-- android:layout_width="0dip" -->
+ <!-- android:layout_height="fill_parent" -->
+ <!-- android:layout_weight="1" -->
+ <!-- android:text="@string/btn_decryptFile" /> -->
+ <!-- </LinearLayout> -->
+
+
+ <!-- <LinearLayout -->
+ <!-- android:layout_width="fill_parent" -->
+ <!-- android:layout_height="wrap_content" -->
+ <!-- android:orientation="horizontal" > -->
+
+
+ <!-- <Button -->
+ <!-- android:id="@+id/btn_encryptMessage" -->
+ <!-- android:layout_width="0dip" -->
+ <!-- android:layout_height="fill_parent" -->
+ <!-- android:layout_weight="1" -->
+ <!-- android:text="@string/btn_encryptMessage" /> -->
+
+
+ <!-- <Button -->
+ <!-- android:id="@+id/btn_decryptMessage" -->
+ <!-- android:layout_width="0dip" -->
+ <!-- android:layout_height="fill_parent" -->
+ <!-- android:layout_weight="1" -->
+ <!-- android:text="@string/btn_decryptMessage" /> -->
+ <!-- </LinearLayout> -->
+ <!-- </LinearLayout> -->
+
+</LinearLayout> \ No newline at end of file