Skip to content

Commit

Permalink
Merge pull request #22 from batshalregmi/UI
Browse files Browse the repository at this point in the history
UI
  • Loading branch information
patelshubh1022 authored Apr 4, 2024
2 parents bca10ff + acca607 commit 49f2a03
Show file tree
Hide file tree
Showing 11 changed files with 126 additions and 29 deletions.
26 changes: 26 additions & 0 deletions .idea/appInsightsSettings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 14 additions & 1 deletion .idea/deploymentTargetDropDown.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
android:name=".SummaryView.SummaryActivity"
android:exported="true" />
<activity
android:name=".LoginActivity"
android:name=".settingsActivity"
android:exported="true">
<intent-filter>
<data
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/drawable/circlebackground.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<shape android:shape="oval" xmlns:android="http://schemas.android.com/apk/res/android">
<stroke android:width="2dp" android:color="@color/black"/>
<stroke android:width="2dp" android:color="@color/green"/>
</shape>
Binary file added app/src/main/res/drawable/pink_background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/settings_background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions app/src/main/res/layout/activity_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:background="@drawable/settings_background"
android:orientation="vertical"
android:padding="20dp">
<TextView
Expand Down
32 changes: 28 additions & 4 deletions app/src/main/res/layout/activity_summary.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,38 @@
<androidx.constraintlayout.widget.ConstraintLayout 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="wrap_content"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".SummaryView.SummaryActivity">

<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycler_view"
<ScrollView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.498"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">

<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycler_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />


</ScrollView>

<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="TextView"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>
73 changes: 53 additions & 20 deletions app/src/main/res/layout/custompopup.xml
Original file line number Diff line number Diff line change
@@ -1,41 +1,45 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="350dp"
android:layout_height="475dp"
android:layout_height="400dp"
app:cardCornerRadius="30dp"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="#FFFFFF"
android:backgroundTint="#D9EDE9"
android:orientation="vertical"
android:padding="5dp"
android:layout_gravity="center">

<TextView
android:id="@+id/txtclose"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_gravity="end"
android:background="@drawable/circlebackground"
android:gravity="center"
android:text="X"
android:textColor="@color/black"
android:textStyle="bold"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:orientation="vertical"
android:padding="24dp"

android:gravity="center"

app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<TextView
android:id="@+id/txtclose"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_gravity="end"
android:layout_marginEnd="5dp"
android:background="@drawable/circlebackground"
android:gravity="center"
android:text="X"
android:textColor="@color/green"
android:textStyle="bold"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<TextView
android:id="@+id/loginText"
android:layout_width="match_parent"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:text="Change Password"
android:textAlignment="center"
Expand All @@ -47,7 +51,7 @@
android:id="@+id/passwordParent"
android:layout_width="350dp"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:layout_marginTop="30dp"
android:textColor="@color/black"
app:cursorColor="@color/purple"
app:hintEnabled="false"
Expand All @@ -56,11 +60,39 @@

<com.google.android.material.textfield.TextInputEditText
android:id="@+id/newPassword"
android:layout_width="290dp"
android:layout_width="280dp"
android:layout_height="50dp"
android:layout_gravity="center"
android:background="@drawable/custom_edittext"
android:defaultFocusHighlightEnabled="false"
android:hint="New Password"
android:textColorHint="#7DD5BF"
android:inputType="textPassword"
android:padding="8dp"
app:hintAnimationEnabled="false" />
</com.google.android.material.textfield.TextInputLayout>

<com.google.android.material.textfield.TextInputLayout
android:id="@+id/confirm_passwordParent"
android:layout_width="350dp"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:textColor="@color/black"
app:cursorColor="@color/purple"
app:hintEnabled="false"
app:passwordToggleEnabled="true"
app:passwordToggleTint="@color/green">

<com.google.android.material.textfield.TextInputEditText
android:id="@+id/confirm_newPassword"
android:layout_width="280dp"
android:layout_height="50dp"
android:background="@drawable/custom_edittext"
android:defaultFocusHighlightEnabled="false"
android:layout_gravity="center"
android:hint="Confirm Password"
android:textColorHint="#7DD5BF"

android:inputType="textPassword"
android:padding="8dp"
app:hintAnimationEnabled="false" />
Expand All @@ -69,11 +101,12 @@
<Button
android:id="@+id/loginButton"
android:layout_width="match_parent"
android:layout_gravity="center"
android:layout_height="60dp"
android:layout_marginTop="30dp"
android:backgroundTint="@color/green"
android:text="Submit"
android:textSize="18sp"
app:cornerRadius="20dp" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.cardview.widget.CardView>
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[versions]
agp = "8.3.0"
agp = "8.3.1"
junit = "4.13.2"
junitVersion = "1.1.5"
espressoCore = "3.5.1"
Expand Down

0 comments on commit 49f2a03

Please sign in to comment.