Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
baby-monitoring-android-app
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
R24-145
baby-monitoring-android-app
Commits
efb2ae08
Commit
efb2ae08
authored
Sep 07, 2024
by
Ishankha K.C
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
view baby screen and api connect
parent
1ad4e397
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
821 additions
and
14 deletions
+821
-14
.idea/deploymentTargetDropDown.xml
.idea/deploymentTargetDropDown.xml
+1
-14
app/src/main/java/com/kaluwa/enterprises/babycare/adapter/BabyDashboardAdapter.java
...wa/enterprises/babycare/adapter/BabyDashboardAdapter.java
+10
-0
app/src/main/java/com/kaluwa/enterprises/babycare/dialogs/EditBabyDialog.java
...m/kaluwa/enterprises/babycare/dialogs/EditBabyDialog.java
+302
-0
app/src/main/res/drawable/baby_profile.jpg
app/src/main/res/drawable/baby_profile.jpg
+0
-0
app/src/main/res/layout/edit_baby_view_layout.xml
app/src/main/res/layout/edit_baby_view_layout.xml
+508
-0
No files found.
.idea/deploymentTargetDropDown.xml
View file @
efb2ae08
...
...
@@ -3,20 +3,7 @@
<component
name=
"deploymentTargetDropDown"
>
<value>
<entry
key=
"app"
>
<State>
<runningDeviceTargetSelectedWithDropDown>
<Target>
<type
value=
"RUNNING_DEVICE_TARGET"
/>
<deviceKey>
<Key>
<type
value=
"SERIAL_NUMBER"
/>
<value
value=
"adb-AYAV6R3925006878-kh1m4J._adb-tls-connect._tcp"
/>
</Key>
</deviceKey>
</Target>
</runningDeviceTargetSelectedWithDropDown>
<timeTargetWasSelectedWithDropDown
value=
"2024-05-21T16:09:48.003353300Z"
/>
</State>
<State
/>
</entry>
</value>
</component>
...
...
app/src/main/java/com/kaluwa/enterprises/babycare/adapter/BabyDashboardAdapter.java
View file @
efb2ae08
...
...
@@ -18,11 +18,13 @@ import android.widget.Toast;
import
androidx.annotation.NonNull
;
import
androidx.constraintlayout.widget.ConstraintLayout
;
import
androidx.fragment.app.FragmentActivity
;
import
androidx.recyclerview.widget.RecyclerView
;
import
com.google.android.material.imageview.ShapeableImageView
;
import
com.kaluwa.enterprises.babycare.R
;
import
com.kaluwa.enterprises.babycare.activities.UserProfileActivity
;
import
com.kaluwa.enterprises.babycare.dialogs.EditBabyDialog
;
import
com.kaluwa.enterprises.babycare.dto.BabyDto
;
import
java.io.InputStream
;
...
...
@@ -83,6 +85,14 @@ public class BabyDashboardAdapter extends RecyclerView.Adapter<BabyDashboardAdap
Toast
.
makeText
(
context
,
e
.
getMessage
(),
Toast
.
LENGTH_SHORT
).
show
();
}
}
// Handle item click
holder
.
clBabyItem
.
setOnClickListener
(
v
->
{
// Open the EditBabyDialog with the selected BabyDto
EditBabyDialog
editBabyDialog
=
new
EditBabyDialog
(
babyDto
);
// Assuming context is an activity, cast it to FragmentActivity to get supportFragmentManager
editBabyDialog
.
show
(((
FragmentActivity
)
context
).
getSupportFragmentManager
(),
"EDIT_BABY_DIALOG"
);
});
}
@Override
...
...
app/src/main/java/com/kaluwa/enterprises/babycare/dialogs/EditBabyDialog.java
0 → 100644
View file @
efb2ae08
This diff is collapsed.
Click to expand it.
app/src/main/res/drawable/baby_profile.jpg
0 → 100644
View file @
efb2ae08
1.14 MB
app/src/main/res/layout/edit_baby_view_layout.xml
0 → 100644
View file @
efb2ae08
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment