Improve UI

This commit is contained in:
Manuel Fuhr 2021-11-15 20:49:05 +01:00
parent 6a8f5036b2
commit 1e594574b5
4 changed files with 79 additions and 65 deletions

View file

@ -1,45 +1,43 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="8dp"
tools:context=".BImportActivity">
<TextView
android:id="@+id/Info_brouter"
android:layout_width="wrap_content"
android:layout_height="377dp"
android:layout_below="@+id/textView3"
android:layout_alignParentStart="true"
android:layout_alignParentLeft="true"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_marginStart="22dp"
android:layout_marginLeft="22dp"
android:layout_marginTop="13dp"
android:layout_marginEnd="18dp"
android:layout_marginRight="18dp"
android:background="@android:color/holo_blue_dark"
android:text="....."
android:textSize="20sp" />
<TextView
android:id="@+id/textView3"
<Button
android:id="@+id/buttonImport"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_alignParentLeft="true"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_marginStart="95dp"
android:layout_marginLeft="95dp"
android:layout_marginTop="55dp"
android:layout_marginEnd="98dp"
android:layout_marginRight="98dp"
android:text="BROUTER"
android:textSize="34sp" />
android:layout_alignParentBottom="true"
android:text="@string/import_profile"
android:layout_alignParentEnd="true" />
<EditText
android:id="@+id/editTextFilename"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:ems="10"
android:hint="@string/profile_filename_example"
android:importantForAutofill="no"
android:inputType="textUri"
android:minHeight="48dp" />
<EditText
android:id="@+id/editTextProfile"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@id/buttonImport"
android:layout_below="@id/editTextFilename"
android:ems="8"
android:enabled="false"
android:gravity="start|top"
android:inputType="none"
android:minHeight="48dp"
android:importantForAutofill="no" />
</RelativeLayout>

View file

@ -16,4 +16,6 @@
<resources>
<string name="app_name">BRouter</string>
<string name="import_profile">Import Profile</string>
<string name="profile_filename_example">filename.brf</string>
</resources>