diff options
Diffstat (limited to 'OpenPGP-Keychain-API-Demo/res')
| -rw-r--r-- | OpenPGP-Keychain-API-Demo/res/layout/crypto_provider_demo.xml | 61 | 
1 files changed, 34 insertions, 27 deletions
diff --git a/OpenPGP-Keychain-API-Demo/res/layout/crypto_provider_demo.xml b/OpenPGP-Keychain-API-Demo/res/layout/crypto_provider_demo.xml index 447734a52..af1e345d6 100644 --- a/OpenPGP-Keychain-API-Demo/res/layout/crypto_provider_demo.xml +++ b/OpenPGP-Keychain-API-Demo/res/layout/crypto_provider_demo.xml @@ -8,65 +8,72 @@          android:layout_height="match_parent"          android:orientation="vertical" > -        <Button -            android:id="@+id/crypto_provider_demo_register" -            android:layout_width="match_parent" +        <TextView +            android:layout_width="wrap_content"              android:layout_height="wrap_content" -            android:onClick="registerCryptoProvider" -            android:text="Register crypto provider" /> +            android:text="Encrypt User Id" +            android:textAppearance="?android:attr/textAppearanceMedium" /> -        <Button -            android:id="@+id/aidl_demo_select_secret_key" +        <EditText +            android:id="@+id/crypto_provider_demo_encrypt_user_id"              android:layout_width="match_parent"              android:layout_height="wrap_content" -            android:onClick="selectSecretKeyOnClick" -            android:text="Select secret key" /> +            android:text="dominik@dominikschuermann.de" +            android:textAppearance="@android:style/TextAppearance.Small" /> -        <Button -            android:id="@+id/aidl_demo_select_encryption_key" -            android:layout_width="match_parent" +        <TextView +            android:layout_width="wrap_content"              android:layout_height="wrap_content" -            android:onClick="selectEncryptionKeysOnClick" -            android:text="Select encryption key(s)" /> +            android:text="Message" +            android:textAppearance="?android:attr/textAppearanceMedium" />          <EditText -            android:id="@+id/aidl_demo_message" +            android:id="@+id/crypto_provider_demo_message"              android:layout_width="match_parent"              android:layout_height="150dip"              android:text="message"              android:textAppearance="@android:style/TextAppearance.Small" /> +        <TextView +            android:layout_width="wrap_content" +            android:layout_height="wrap_content" +            android:text="Ciphertext" +            android:textAppearance="?android:attr/textAppearanceMedium" /> +          <EditText -            android:id="@+id/aidl_demo_ciphertext" +            android:id="@+id/crypto_provider_demo_ciphertext"              android:layout_width="match_parent"              android:layout_height="150dip"              android:text="ciphertext"              android:textAppearance="@android:style/TextAppearance.Small" />          <Button -            android:id="@+id/aidl_demo_encrypt" +            android:id="@+id/crypto_provider_demo_encrypt"              android:layout_width="match_parent"              android:layout_height="wrap_content"              android:onClick="encryptOnClick"              android:text="Encrypt" />          <Button -            android:id="@+id/aidl_demo_decrypt" +            android:id="@+id/crypto_provider_demo_sign"              android:layout_width="match_parent"              android:layout_height="wrap_content" -            android:onClick="decryptOnClick" -            android:text="Decrypt" /> +            android:onClick="signOnClick" +            android:text="Sign" /> -        <TextView +        <Button +            android:id="@+id/crypto_provider_demo_encrypt_and_sign"              android:layout_width="match_parent" -            android:layout_height="match_parent" -            android:text="APG Data:" /> +            android:layout_height="wrap_content" +            android:onClick="encryptAndSignOnClick" +            android:text="Encrypt and Sign" /> -        <TextView -            android:id="@+id/aidl_demo_data" +        <Button +            android:id="@+id/crypto_provider_demo_decrypt"              android:layout_width="match_parent" -            android:layout_height="match_parent" -            android:minLines="10" /> +            android:layout_height="wrap_content" +            android:onClick="decryptOnClick" +            android:text="Decrypt" />      </LinearLayout>  </ScrollView>
\ No newline at end of file  | 
