<?xml version="1.0" encoding="utf-8"?>
<!--
- Copyright © 2018-2019 Soren Stoutner <soren@stoutner.com>.
+ Copyright © 2018-2020 Soren Stoutner <soren@stoutner.com>.
This file is part of Privacy Browser <https://www.stoutner.com/privacy-browser>.
android:onClick="onClickRadioButton" />
</RadioGroup>
- <!-- Align the EditText and the select file button horizontally. -->
+ <!-- Align the edit text and the select file button horizontally. -->
<LinearLayout
android:id="@+id/file_name_linearlayout"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginTop="10dp">
- <!-- `android.support.design.widget.TextInputLayout` makes the `android:hint` float above the `EditText`. -->
+ <!-- The text input layout makes the hint float above the edit text. -->
<com.google.android.material.textfield.TextInputLayout
android:layout_height="wrap_content"
android:layout_width="0dp"
android:onClick="browse" />
</LinearLayout>
+ <!-- File notices. -->
+ <TextView
+ android:id="@+id/file_does_not_exist_textview"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:layout_gravity="center_horizontal"
+ android:layout_margin="5dp"
+ android:text="@string/file_does_not_exist"
+ android:textColor="?attr/redText"
+ android:textAlignment="center" />
+
+ <TextView
+ android:id="@+id/file_exists_warning_textview"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:layout_gravity="center_horizontal"
+ android:layout_margin="5dp"
+ android:text="@string/file_exists_warning"
+ android:textColor="?attr/redText"
+ android:textAlignment="center" />
+
<!-- OpenKeychain import instructions -->
<TextView
android:id="@+id/openkeychain_import_instructions_textview"