Skip to content

Commit

Permalink
Version 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
chistia007 committed May 5, 2023
1 parent 2eaf69c commit 8a9555f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ protected void onCreate(Bundle savedInstanceState) {
binding.btnLogin.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
String email=binding.edtEmail.getText().toString();
String email=binding.edtUserName.getText().toString();
String pass=binding.edtPassword.getText().toString();

if (email.equals("admin") && pass.equals("admin")){
Expand Down
10 changes: 5 additions & 5 deletions app/src/main/res/layout/activity_login.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@
app:layout_constraintTop_toBottomOf="@+id/textView" />

<EditText
android:id="@+id/edtEmail"
android:id="@+id/edtUserName"
android:layout_width="276dp"
android:layout_height="44dp"
android:layout_marginTop="80dp"
android:background="@drawable/input_bg"
android:drawableLeft="@drawable/ic_baseline_person_24"
android:drawablePadding="10dp"
android:ems="10"
android:hint="Email"
android:hint="Username"
android:inputType="textPersonName"
android:paddingStart="20dp"
android:paddingTop="10dp"
Expand Down Expand Up @@ -73,10 +73,10 @@
android:paddingBottom="10dp"
android:textColor="#fff"
android:textColorHint="#fff"
app:layout_constraintEnd_toEndOf="@+id/edtEmail"
app:layout_constraintEnd_toEndOf="@+id/edtUserName"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="@+id/edtEmail"
app:layout_constraintTop_toBottomOf="@+id/edtEmail" />
app:layout_constraintStart_toStartOf="@+id/edtUserName"
app:layout_constraintTop_toBottomOf="@+id/edtUserName" />

<Button
android:id="@+id/btnLogin"
Expand Down

0 comments on commit 8a9555f

Please sign in to comment.