diff options
author | Dominik <dominik@dominikschuermann.de> | 2012-03-11 16:33:47 +0100 |
---|---|---|
committer | Dominik <dominik@dominikschuermann.de> | 2012-03-11 16:33:47 +0100 |
commit | e9c0d7a71157fdff3c4951d91d7a5bc6d1956ef0 (patch) | |
tree | e734d6a44a9c6def9dc1138892c95d3c50b0ed27 /org_apg/res/layout | |
parent | 9ce7842ac9e009b2315242150ef57b25704b5c87 (diff) | |
download | open-keychain-e9c0d7a71157fdff3c4951d91d7a5bc6d1956ef0.tar.gz open-keychain-e9c0d7a71157fdff3c4951d91d7a5bc6d1956ef0.tar.bz2 open-keychain-e9c0d7a71157fdff3c4951d91d7a5bc6d1956ef0.zip |
Started implementation of Dashboard design pattern
Diffstat (limited to 'org_apg/res/layout')
-rw-r--r-- | org_apg/res/layout/main.xml | 168 |
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 |