Design repair
This commit is contained in:
parent
fcd6a1fc01
commit
05d27f3cfe
@ -28,7 +28,7 @@ class AdminFragment : Fragment(R.layout.fragment_admin) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun onSearchButtonClicked() {
|
private fun onSearchButtonClicked() {
|
||||||
val login = binding.login_search.text.toString()
|
val login = binding.loginSearch.text.toString()
|
||||||
if (login.isEmpty()) return
|
if (login.isEmpty()) return
|
||||||
|
|
||||||
viewModel.getDataByLogin(login)
|
viewModel.getDataByLogin(login)
|
||||||
|
@ -13,28 +13,29 @@
|
|||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/textView"
|
android:id="@+id/textView"
|
||||||
|
android:layout_margin="10dp"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:textSize="20sp"
|
android:textSize="20sp"
|
||||||
android:layout_marginBottom="15dp"
|
|
||||||
android:text="@string/administrator_search"
|
android:text="@string/administrator_search"
|
||||||
app:layout_constraintBottom_toTopOf="@+id/login"
|
app:layout_constraintBottom_toTopOf="@+id/textInputLayout"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent" />
|
app:layout_constraintStart_toStartOf="parent" />
|
||||||
|
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/imageView"
|
android:id="@+id/imageView"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:src="@drawable/search_by_login"
|
android:src="@drawable/search_by_login"
|
||||||
|
|
||||||
|
|
||||||
app:layout_constraintBottom_toTopOf="@+id/textView"
|
app:layout_constraintBottom_toTopOf="@+id/textView"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
tools:ignore="MissingConstraints" />
|
tools:ignore="MissingConstraints" />
|
||||||
|
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<com.google.android.material.button.MaterialButton
|
||||||
android:id="@+id/button_search"
|
android:id="@+id/button_search"
|
||||||
|
|
||||||
@ -52,17 +53,29 @@
|
|||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"/>
|
app:layout_constraintTop_toTopOf="parent"/>
|
||||||
|
|
||||||
<com.google.android.material.textfield.TextInputEditText
|
<com.google.android.material.textfield.TextInputLayout
|
||||||
android:id="@+id/login_search"
|
android:id="@+id/textInputLayout"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:hint="@string/login"
|
app:boxStrokeColor="@color/primary"
|
||||||
android:layout_margin="15dp"
|
app:helperTextTextColor="?attr/colorOnBackground"
|
||||||
|
app:hintTextColor="?attr/colorOnBackground"
|
||||||
android:padding="14dp"
|
|
||||||
android:textColor="?attr/colorSecondary"
|
|
||||||
android:textColorHint="?attr/colorSecondary"
|
|
||||||
app:layout_constraintBottom_toTopOf="@+id/button_search"
|
app:layout_constraintBottom_toTopOf="@+id/button_search"
|
||||||
tools:ignore="MissingConstraints" />
|
tools:ignore="MissingConstraints">
|
||||||
|
|
||||||
|
<com.google.android.material.textfield.TextInputEditText
|
||||||
|
android:id="@+id/login_search"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_margin="15dp"
|
||||||
|
android:hint="@string/login"
|
||||||
|
|
||||||
|
|
||||||
|
android:textColor="?attr/colorSecondary"
|
||||||
|
android:textColorHint="?attr/colorSecondary"
|
||||||
|
app:layout_constraintBottom_toTopOf="@+id/button_search" />
|
||||||
|
</com.google.android.material.textfield.TextInputLayout>
|
||||||
|
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
Loading…
x
Reference in New Issue
Block a user