]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/res/layout/import_export_coordinatorlayout.xml
Add OpenPGP encrypted export. https://redmine.stoutner.com/issues/338
[PrivacyBrowserAndroid.git] / app / src / main / res / layout / import_export_coordinatorlayout.xml
index f3c7cefeb4b2cf9a2b81309f9e2cd87336ab19ef..67b0cfd759de541c22fdea3a8b3def9a859db6aa 100644 (file)
                         android:layout_height="match_parent"
                         android:layout_width="match_parent"
                         android:orientation="vertical"
-                        android:layout_margin="10dp" >
+                        android:layout_marginTop="10dp"
+                        android:layout_marginBottom="20dp"
+                        android:layout_marginStart="10dp"
+                        android:layout_marginEnd="10dp" >
 
                         <TextView
                             android:layout_width="wrap_content"
                                 android:hint="@string/password"
                                 android:inputType="textPassword"/>
                         </android.support.design.widget.TextInputLayout>
+
+                        <!-- KitKat password encryption message. -->
+                        <TextView
+                            android:id="@+id/kitkat_password_encryption_textview"
+                            android:layout_height="wrap_content"
+                            android:layout_width="wrap_content"
+                            android:layout_gravity="center_horizontal"
+                            android:layout_marginTop="10dp"
+                            android:text="@string/kitkat_password_encryption_message"
+                            android:textColor="?android:textColorPrimary"
+                            android:textAlignment="center" />
+
+                        <!-- OpenKeychain required message. -->
+                        <TextView
+                            android:id="@+id/openkeychain_required_textview"
+                            android:layout_height="wrap_content"
+                            android:layout_width="wrap_content"
+                            android:layout_gravity="center_horizontal"
+                            android:layout_marginTop="10dp"
+                            android:text="@string/openkeychain_required"
+                            android:textColor="?android:textColorPrimary"
+                            android:textAlignment="center" />
                     </LinearLayout>
                 </android.support.v7.widget.CardView>
 
                 <!-- The file location card. -->
                 <android.support.v7.widget.CardView
+                    android:id="@+id/file_location_cardview"
                     android:layout_height="wrap_content"
                     android:layout_width="match_parent"
                     android:layout_marginTop="5dp"
                         android:layout_height="match_parent"
                         android:layout_width="match_parent"
                         android:orientation="vertical"
-                        android:layout_margin="10dp" >
+                        android:layout_marginTop="10dp"
+                        android:layout_marginBottom="20dp"
+                        android:layout_marginStart="10dp"
+                        android:layout_marginEnd="10dp" >
 
                         <TextView
                             android:layout_width="wrap_content"
                             android:textStyle="bold"
                             android:textColor="?colorAccent" />
 
-                        <Spinner
-                            android:id="@+id/import_export_spinner"
+                        <RadioGroup
                             android:layout_height="wrap_content"
                             android:layout_width="wrap_content"
-                            android:layout_gravity="center_horizontal" />
+                            android:layout_gravity="center_horizontal"
+                            android:orientation="horizontal" >
+
+                            <RadioButton
+                                android:id="@+id/import_radiobutton"
+                                android:layout_height="wrap_content"
+                                android:layout_width="wrap_content"
+                                android:text="@string/import_button"
+                                android:layout_marginEnd="10dp"
+                                android:onClick="onClickRadioButton" />
+
+                            <RadioButton
+                                android:id="@+id/export_radiobutton"
+                                android:layout_height="wrap_content"
+                                android:layout_width="wrap_content"
+                                android:text="@string/export"
+                                android:onClick="onClickRadioButton" />
+                        </RadioGroup>
 
                         <!-- Align the EditText and the select file button horizontally. -->
                         <LinearLayout
+                            android:id="@+id/file_name_linearlayout"
                             android:layout_height="wrap_content"
                             android:layout_width="match_parent"
                             android:orientation="horizontal"
                                 android:onClick="browse" />
                         </LinearLayout>
 
+                        <!-- OpenKeychain import instructions -->
+                        <TextView
+                            android:id="@+id/openkeychain_import_instructions_textview"
+                            android:layout_height="wrap_content"
+                            android:layout_width="wrap_content"
+                            android:layout_gravity="center_horizontal"
+                            android:layout_margin="5dp"
+                            android:text="@string/openkeychain_import_instructions"
+                            android:textColor="?android:textColorPrimary"
+                            android:textAlignment="center" />
+
                         <Button
                             android:id="@+id/import_export_button"
                             android:layout_height="wrap_content"
                             android:layout_width="wrap_content"
                             android:layout_gravity="center_horizontal"
+                            android:layout_marginTop="10dp"
                             android:text="@string/import_button"
                             android:textSize="18sp"
                             android:onClick="importExport"