Browse Source

Layout improvement

main
M66B 6 years ago
parent
commit
222a16b963
2 changed files with 20 additions and 20 deletions
  1. +1
    -1
      app/src/main/java/eu/faircode/email/FragmentAccount.java
  2. +19
    -19
      app/src/main/res/layout/fragment_account.xml

+ 1
- 1
app/src/main/java/eu/faircode/email/FragmentAccount.java View File

@ -92,8 +92,8 @@ public class FragmentAccount extends Fragment {
providers.add(0, new Provider(getString(R.string.title_custom))); providers.add(0, new Provider(getString(R.string.title_custom)));
// Get controls // Get controls
spProfile = view.findViewById(R.id.spProvider);
etName = view.findViewById(R.id.etName); etName = view.findViewById(R.id.etName);
spProfile = view.findViewById(R.id.spProvider);
etHost = view.findViewById(R.id.etHost); etHost = view.findViewById(R.id.etHost);
etPort = view.findViewById(R.id.etPort); etPort = view.findViewById(R.id.etPort);
etUser = view.findViewById(R.id.etUser); etUser = view.findViewById(R.id.etUser);


+ 19
- 19
app/src/main/res/layout/fragment_account.xml View File

@ -12,45 +12,45 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:padding="12dp"> android:padding="12dp">
<!-- provider -->
<!-- name -->
<TextView <TextView
android:id="@+id/tvProvider"
android:id="@+id/tvName"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/title_provider"
android:text="@string/title_account_name"
android:textAppearance="@style/TextAppearance.AppCompat.Small" android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintTop_toTopOf="parent" />
<Spinner
android:id="@+id/spProvider"
android:layout_width="wrap_content"
<EditText
android:id="@+id/etName"
android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/title_account_name_hint"
android:inputType="text"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvProvider" />
app:layout_constraintTop_toBottomOf="@id/tvName" />
<!-- name -->
<!-- provider -->
<TextView <TextView
android:id="@+id/tvName"
android:id="@+id/tvProvider"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="12dp" android:layout_marginTop="12dp"
android:text="@string/title_account_name"
android:text="@string/title_provider"
android:textAppearance="@style/TextAppearance.AppCompat.Small" android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/spProvider" />
app:layout_constraintTop_toBottomOf="@id/etName" />
<EditText
android:id="@+id/etName"
android:layout_width="match_parent"
<Spinner
android:id="@+id/spProvider"
android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/title_account_name_hint"
android:inputType="text"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvName" />
app:layout_constraintTop_toBottomOf="@id/tvProvider" />
<!-- IMAP --> <!-- IMAP -->
@ -62,7 +62,7 @@
android:text="@string/title_imap" android:text="@string/title_imap"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" android:textAppearance="@style/TextAppearance.AppCompat.Medium"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/etName" />
app:layout_constraintTop_toBottomOf="@id/spProvider" />
<!-- host --> <!-- host -->


Loading…
Cancel
Save