Skip to content

Commit

Permalink
Update JadwalKonsultasiFragment
Browse files Browse the repository at this point in the history
  • Loading branch information
itsLeonB committed Dec 6, 2023
1 parent 2aabbfa commit d68d5e3
Show file tree
Hide file tree
Showing 17 changed files with 2,213 additions and 275 deletions.
17 changes: 5 additions & 12 deletions .idea/deploymentTargetDropDown.xml

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

5 changes: 2 additions & 3 deletions .idea/gradle.xml

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

1 change: 0 additions & 1 deletion .idea/misc.xml

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

59 changes: 59 additions & 0 deletions app/src/main/java/com/example/posyandu/JadwalKonsultasiFragment.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
package com.example.posyandu

import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup

// TODO: Rename parameter arguments, choose names that match
// the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
private const val ARG_PARAM1 = "param1"
private const val ARG_PARAM2 = "param2"

/**
* A simple [Fragment] subclass.
* Use the [JadwalKonsultasiFragment.newInstance] factory method to
* create an instance of this fragment.
*/
class JadwalKonsultasiFragment : Fragment() {
// TODO: Rename and change types of parameters
private var param1: String? = null
private var param2: String? = null

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
arguments?.let {
param1 = it.getString(ARG_PARAM1)
param2 = it.getString(ARG_PARAM2)
}
}

override fun onCreateView(
inflater: LayoutInflater, container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_jadwal_konsultasi, container, false)
}

companion object {
/**
* Use this factory method to create a new instance of
* this fragment using the provided parameters.
*
* @param param1 Parameter 1.
* @param param2 Parameter 2.
* @return A new instance of fragment JadwalKonsultasiFragment.
*/
// TODO: Rename and change types and number of parameters
@JvmStatic
fun newInstance(param1: String, param2: String) =
JadwalKonsultasiFragment().apply {
arguments = Bundle().apply {
putString(ARG_PARAM1, param1)
putString(ARG_PARAM2, param2)
}
}
}
}
2 changes: 2 additions & 0 deletions app/src/main/java/com/example/posyandu/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import com.google.android.material.navigation.NavigationBarView

class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
val userRole = "bidan"

super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)

Expand Down
12 changes: 12 additions & 0 deletions app/src/main/res/drawable/done_checkmark.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="102dp"
android:height="102dp"
android:viewportWidth="102"
android:viewportHeight="102">
<path
android:pathData="M51,51m-51,0a51,51 0,1 1,102 0a51,51 0,1 1,-102 0"
android:fillColor="#DEF2D6"/>
<path
android:pathData="M46.4,58.45C45.01,59.84 42.76,59.84 41.37,58.45L35.58,52.66C34.66,51.74 33.18,51.74 32.26,52.66C31.34,53.58 31.34,55.06 32.26,55.98L41.37,65.09C42.76,66.48 45.01,66.48 46.4,65.09L70.69,40.8C71.61,39.88 71.61,38.4 70.69,37.48C69.77,36.56 68.29,36.56 67.37,37.48L46.4,58.45Z"
android:fillColor="#27AE60"/>
</vector>
17 changes: 17 additions & 0 deletions app/src/main/res/drawable/error_cross.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="102dp"
android:height="102dp"
android:viewportWidth="102"
android:viewportHeight="102">
<path
android:pathData="M51,51m-51,0a51,51 0,1 1,102 0a51,51 0,1 1,-102 0"
android:fillColor="#ECC8C5"/>
<path
android:pathData="M65.15,61.83C66.07,62.75 66.07,64.24 65.15,65.15C64.24,66.07 62.75,66.07 61.83,65.15L36.69,40.01C35.77,39.09 35.77,37.6 36.69,36.69C37.6,35.77 39.09,35.77 40.01,36.69L65.15,61.83Z"
android:fillColor="#AD2220"
android:fillType="evenOdd"/>
<path
android:pathData="M36.69,61.83C35.77,62.75 35.77,64.24 36.69,65.15C37.6,66.07 39.09,66.07 40.01,65.15L65.15,40.01C66.07,39.09 66.07,37.6 65.15,36.69C64.24,35.77 62.75,35.77 61.83,36.69L36.69,61.83Z"
android:fillColor="#AD2220"
android:fillType="evenOdd"/>
</vector>
Binary file added app/src/main/res/drawable/periksa.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions app/src/main/res/drawable/warning_sign.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="102dp"
android:height="102dp"
android:viewportWidth="102"
android:viewportHeight="102">
<path
android:pathData="M51,51m-51,0a51,51 0,1 1,102 0a51,51 0,1 1,-102 0"
android:fillColor="#F8F3D6"/>
<path
android:pathData="M49.69,71C48.77,71.91 48.77,73.4 49.69,74.32C50.6,75.24 52.09,75.24 53.01,74.32C53.92,73.4 53.92,71.92 53.01,71C52.09,70.08 50.6,70.08 49.69,71L49.69,71Z"
android:fillColor="#FFCB05"
android:fillType="evenOdd"/>
<path
android:pathData="M53.35,64.98C53.35,66 52.35,67 51.35,67C50.35,67 49.35,66 49.35,64.98L49.35,29C49.35,28 50.35,27 51.35,27C52.35,27 53.35,28 53.35,29V64.98Z"
android:fillColor="#FFCB05"
android:fillType="evenOdd"/>
</vector>
Loading

0 comments on commit d68d5e3

Please sign in to comment.