Skip to content

Commit

Permalink
fix(MainActivity): Removed weird text inputs borders, aligned contact…
Browse files Browse the repository at this point in the history
… list button outside of phone number input
  • Loading branch information
CremaLuca committed Jan 17, 2020
1 parent d43a034 commit a6f67bd
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 24 deletions.
6 changes: 0 additions & 6 deletions .idea/render.experimental.xml

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 6 additions & 16 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,11 @@
android:layout_width="200dp"
android:layout_height="40dp"
android:layout_marginTop="130dp"
android:background="@drawable/app_default_edit_text"
android:ems="10"
android:hint="@string/hint_phone_number"
android:inputType="phone"
android:textAlignment="center"
android:textStyle="italic"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.497"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/actionBar"
android:autofillHints="" />
Expand All @@ -45,17 +42,12 @@
android:id="@+id/password_field"
android:layout_width="200dp"
android:layout_height="40dp"
android:layout_marginStart="70dp"
android:layout_marginTop="20dp"
android:layout_marginEnd="70dp"
android:background="@drawable/app_default_edit_text"
android:ems="10"
android:hint="@string/hint_password"
android:inputType="textPassword"
android:textAlignment="center"
android:textStyle="italic"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.492"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/phone_number_field" />

Expand All @@ -78,20 +70,18 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/ring_button"
app:layout_constraintVertical_bias="0.050000012" />
app:layout_constraintVertical_bias="0.1" />

<Button
android:id="@+id/address_book_button"
style="@style/Widget.AppCompat.Button.Borderless"
android:layout_width="34dp"
android:layout_height="37dp"
android:layout_marginTop="61dp"
android:layout_marginBottom="22dp"
android:background="@drawable/ic_person_phonebook"
android:layout_marginStart="16dp"
android:background="@drawable/baseline_contacts_white_18dp"
android:backgroundTint="@color/colorPrimary"
android:onClick="openAddressBook"
app:layout_constraintBottom_toTopOf="@+id/password_field"
app:layout_constraintEnd_toEndOf="@+id/phone_number_field"
app:layout_constraintTop_toBottomOf="@+id/actionBar"
app:layout_constraintVertical_bias="1.0" />
app:layout_constraintStart_toEndOf="@+id/phone_number_field"
app:layout_constraintTop_toTopOf="@+id/phone_number_field" />

</androidx.constraintlayout.widget.ConstraintLayout>
2 changes: 1 addition & 1 deletion app/src/main/res/values-it/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<string name="exit_dialog_button">Annulla</string>
<string name="give_permissions_button_text">Capito</string>
<string name="hint_password">Password</string>
<string name="hint_phone_number">numero di telefono</string>
<string name="hint_phone_number">Numero di telefono</string>
<string name="menu_change_password">Cambia password</string>
<string name="text_notification_button">Ferma</string>
<string name="text_stop_ring_dialog">Il telefono sta squillando, puoi fermarlo da qui.</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<string name="give_permissions_button_text">Got it!</string>

<string name="exit_dialog_button">Cancel</string>
<string name="hint_phone_number">phone number</string>
<string name="hint_phone_number">Phone number</string>
<string name="hint_password">Password</string>
<string name="set_device_password">Set device password</string>
<string name="change_device_password">Change device password</string>
Expand Down

0 comments on commit a6f67bd

Please sign in to comment.