Started implementation of Dashboard design pattern

This commit is contained in:
Dominik
2012-03-11 16:33:47 +01:00
parent 9ce7842ac9
commit e9c0d7a711
37 changed files with 18062 additions and 107 deletions

View File

@@ -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">
android:layout_height="fill_parent" >
<ListView
android:id="@+id/accounts"
android:layout_width="fill_parent"
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" />
</ScrollView>
<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" />
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
style="@android:style/ButtonBar">
<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" />
<LinearLayout
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<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/btn_encryptFile"
android:text="@string/btn_encryptFile"
android:layout_width="0dip"
android:layout_weight="1"
android:layout_height="fill_parent"/>
<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>
<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 -->
<!-- style="@android:style/ButtonBar" -->
<!-- android:layout_width="fill_parent" -->
<!-- android:layout_height="wrap_content" -->
<!-- android:orientation="vertical" > -->
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<!-- <LinearLayout -->
<!-- android:layout_width="fill_parent" -->
<!-- android:layout_height="wrap_content" -->
<!-- android:orientation="horizontal" > -->
<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"/>
<!-- <Button -->
<!-- android:id="@+id/btn_encryptFile" -->
<!-- android:layout_width="0dip" -->
<!-- android:layout_height="fill_parent" -->
<!-- android:layout_weight="1" -->
<!-- android:text="@string/btn_encryptFile" /> -->
</LinearLayout>
</LinearLayout>
<!-- <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>
<!-- <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>