Professional Documents
Culture Documents
Practical: 10
Department of Computer
Engineering/Information Technology
Practical: 10
Practical-10
AlarmBroadcastReceiver.kt
package com.example.a19012011025_prac10
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.media.MediaPlayer
if(intent != null)
Manthan Modi 19012011025
{
mp = MediaPlayer.create(context, R.raw.alarm);
mp?.start()
}
}
}
List_BaseAdapter.kt
package com.example.a19012011013_prac10
import android.app.Dialog
import android.content.Context
import android.os.Build
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.*
import androidx.annotation.RequiresApi
import com.google.android.material.switchmaterial.SwitchMaterial
import com.google.android.material.textfield.TextInputEditText
import java.text.SimpleDateFormat
import java.util.*
import kotlin.collections.ArrayList
@RequiresApi(Build.VERSION_CODES.M)
override fun getView(position: Int, convertView: View?, parent: ViewGroup?): View {
noteTitle.text = noteList[position].title
noteSubTitle.text = noteList[position].subTitle
noteDescription.text = noteList[position].description
noteTimeStamp.text = time
ivEditNote.setOnClickListener {
val dialog = Dialog(context)
dialog.setContentView(R.layout.add_notes_dialog)
val tvTitle = dialog.findViewById<TextView>(R.id.tv_dialog_title)
val timePicker = dialog.findViewById<TimePicker>(R.id.time_picker)
val reminderSwitch =
dialog.findViewById<SwitchMaterial>(R.id.switch_reminder)
val etNoteTitle =
dialog.findViewById<TextInputEditText>(R.id.et_note_title)
val etNoteSubTitle =
dialog.findViewById<TextInputEditText>(R.id.et_note_sub_title)
val etNoteDescription =
dialog.findViewById<TextInputEditText>(R.id.et_note_description)
val btnOk = dialog.findViewById<TextView>(R.id.btn_ok)
btnOk.setOnClickListener {
if (etNoteTitle.text.toString().isEmpty() or
etNoteSubTitle.text.toString()
.isEmpty() or etNoteDescription.text.toString().isEmpty()
) {
Toast.makeText( co
ntext,
"Please enter all fields\nAll fields are required",
Toast.LENGTH_SHORT
).show()
}
else{
cal.set(year, month, date, timePicker.hour, timePicker.minute, 0)
noteList[position].title = etNoteTitle.text.toString().trim()
noteList[position].subTitle = etNoteSubTitle.text.toString().trim()
noteList[position].description =
etNoteDescription.text.toString().trim()
noteList[position].modifiedTime = cal
noteList[position].isReminder = reminderSwitch.isChecked
Notes.setReminder(context, noteList[position])
notifyDataSetChanged()
dialog.dismiss()
}
}
dialog.show()
}
ivDeleteNote.setOnClickListener {
noteList[position].isReminder = false
Notes.setReminder(context, noteList[position])
noteList.removeAt(position)
notifyDataSetChanged()
}
return view
}
}
Login.kt
package com.example.a19012011025_prac10
class Login {
companion object{
var fullname=""
var phone=""
var email=""
var city=""
var password=""
var confirm_pass=""
}
}
MainActivity.kt
package com.example.a19012011025_prac10
import android.content.Intent
import android.graphics.Color
import android.os.Build
import android.os.Bundle
import android.view.View
import android.view.WindowManager
import android.widget.Button
import android.widget.TextView
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import com.example.a19012011013_prac10.Login.Companion.email
import com.example.a19012011013_prac10.Login.Companion.password
import com.google.android.material.textfield.TextInputEditText
signup_text.setOnClickListener {
Intent(this, MainActivity2s::class.java).apply {startActivity(this)
}
}
login_button.setOnClickListener {
}
}
MainActivity2d.kt
import android.app.AlarmManager
import android.app.PendingIntent
import android.app.TimePickerDialog
import android.content.Intent
import android.graphics.Color
import android.graphics.drawable.AnimationDrawable
import android.os.Build
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.view.WindowManager
import android.widget.ImageView
import android.widget.TextClock
import android.widget.TextView
import android.widget.Toast
import com.example.a19012011025_prac10.Login.Companion.city
import com.example.a19012011025_prac10.Login.Companion.email
import com.example.a19012011025_prac10.Login.Companion.fullname
import com.example.a19012011025_prac10.Login.Companion.phone
import com.example.a19012011025_prac10.NotesActivity
import com.google.android.material.bottomnavigation.BottomNavigationView
import java.text.SimpleDateFormat
import java.util.*
var bottomnavview =
findViewById<BottomNavigationView>(R.id.bottomNavigationView)
//bottomnavview.selectedItemId = R.id.bottomNavigationView
bottomnavview.selectedItemId=R.id.bottomNavigationView
bottomnavview.setOnItemSelectedListener {
when (it.itemId) {
R.id.notes -> {
Intent(this, NotesActivity::class.java).apply {
startActivity(this)
}
return@setOnItemSelectedListener true
}
else -> {
Intent(this, MainActivity2d::class.java).apply {
startActivity(this)
}
return@setOnItemSelectedListener true
}
}
}
val imgview=findViewById<ImageView>(R.id.imagebyimage)
imgview.setBackgroundResource(R.drawable.image_animation)
guni = imgview.background as AnimationDrawable
guni.start()
val img1view=findViewById<ImageView>(R.id.vectorphoto)
img1view.setBackgroundResource(R.drawable.heart)
guni = img1view.background as AnimationDrawable
guni.start()
val fullname_dashboard=findViewById<TextView>(R.id.name_dashboard1)
val phone_dashboard=findViewById<TextView>(R.id.phone_dashboard1)
val city_dashboard=findViewById<TextView>(R.id.city_dashboard1)
val email_dashboard=findViewById<TextView>(R.id.email_dashboard1)
val email_dashboard_main=findViewById<TextView>(R.id.email_dashboard_main1)
val name_dashboard_main=findViewById<TextView>(R.id.name_dashboard_main1)
val tclock=findViewById<TextClock>(R.id.textclock)
tclock.format24Hour=null
tclock.format12Hour="hh:mm:ss a MMM,dd yyyy"
name_dashboard_main.setText(fullname)
email_dashboard_main.setText(email)
fullname_dashboard.setText(fullname)
phone_dashboard.setText(phone)
city_dashboard.setText(city)
email_dashboard.setText(email)
set_alarm.setOnClickListener {
showTimerDialog()
}
fun showTimerDialog()
{
val cldr: Calendar = Calendar.getInstance()
val hour: Int = cldr.get(Calendar.HOUR_OF_DAY)
val minutes: Int = cldr.get(Calendar.MINUTE)
// time picker dialog
val picker = TimePickerDialog(
this,
{ tp, sHour, sMinute -> sendDialogDataToActivity(sHour, sMinute) },
hour,
minutes,
false
)
picker.show()
}
MainActivity2s.kt
package com.example.a19012011025_prac10
import android.content.Intent
import android.graphics.Color
import android.os.Build
import android.os.Bundle
import android.view.View
import android.view.WindowManager
import android.widget.Button
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import com.example.a19012011025_prac10.Login.Companion.city
import com.example.a19012011025_prac10.Login.Companion.confirm_pass
import com.example.a19012011025_prac10.Login.Companion.email
import com.example.a19012011025_prac10.Login.Companion.fullname
import com.example.a19012011025_prac10.Login.Companion.password
import com.example.a19012011025_prac10.Login.Companion.phone
import com.google.android.material.textfield.TextInputEditText
import kotlin.math.sign
val signUp=findViewById<Button>(R.id.signupbtn)
val fullname_signup=findViewById<TextInputEditText>(R.id.Name_signup)
val phone_signup=findViewById<TextInputEditText>(R.id.Phone_signup)
val email_signup=findViewById<TextInputEditText>(R.id.Email_signup)
val city_signup=findViewById<TextInputEditText>(R.id.City_signup)
val password_signup=findViewById<TextInputEditText>(R.id.Passw_signup)
val confirm_pass_signup=findViewById<TextInputEditText>(R.id.CnPass_signup)
signUp.setOnClickListener {
Manthan Modi 19012011025
fullname = fullname_signup.text.toString()
phone = phone_signup.text.toString()
email = email_signup.text.toString()
city = city_signup.text.toString()
password = password_signup.text.toString()
confirm_pass = confirm_pass_signup.text.toString()
if (password == confirm_pass) {
Intent(this, MainActivity::class.java).apply {
startActivity(this)
}
} else {
Toast.makeText(applicationContext,"Password and Confirm Password
doesn't match",Toast.LENGTH_LONG).show()
}
}
}
NoteInfoActivity.kt
package com.example.a19012011025_prac10
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.TextView
import java.text.SimpleDateFormat
import java.util.*
tvNoteTitle.text = Notes.notesArray[index].title
tvNoteSubTitle.text = Notes.notesArray[index].subTitle
tvNoteDescription.text = Notes.notesArray[index].description
val timeFormat = SimpleDateFormat("MMM, dd yyyy hh:mm:ss a", Locale.ENGLISH)
tvNoteTimeStamp.text = timeFormat.format(Notes.notesArray[index].timeStamp)
val time =
"Reminder at " +
timeFormat.format(Notes.notesArray[index].modifiedTime.timeInMillis)
tvNoteReminderTime.text = time
}
Notes.kt
package com.example.a19012011025_prac10
import android.app.AlarmManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import java.util.*
import kotlin.collections.ArrayList
class Notes(
var title: String, var subTitle: String, var description: String, var modifiedTime:
Calendar,
var isReminder: Boolean = false
) {
var timeStamp: Long = System.currentTimeMillis()
var id = noteIdGeneration()
companion object {
var idNote = 0
fun noteIdGeneration(): Int {
idNote++
return idNote
}
val alarmManager =
context.getSystemService(AppCompatActivity.ALARM_SERVICE) as
AlarmManager
if (notes.isReminder) {
alarmManager.setExact(
AlarmManager.RTC_WAKEUP,
notes.modifiedTime.timeInMillis,
pendingIntent
)
} else
alarmManager.cancel(pendingIntent)
}
}
}
NotesAcitvity.kt
package com.example.a19012011025_prac10
import android.app.Dialog
import android.app.NotificationChannel
import android.app.NotificationManager
import android.content.Context
import android.content.Intent
import android.graphics.Color
import android.graphics.drawable.AnimationDrawable
import android.os.Build
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
Practical: 10
import android.view.WindowManager
import android.widget.*
import com.google.android.material.bottomnavigation.BottomNavigationView
import com.google.android.material.floatingactionbutton.FloatingActionButton
import com.google.android.material.switchmaterial.SwitchMaterial
import com.google.android.material.textfield.TextInputEditText
import java.util.*
import kotlin.collections.ArrayList
super.onCreate(savedInstanceState)
setContentView(R.layout.notes)
createNotificationChannel()
supportActionBar?.hide()
setStatusBarTransparent()
val nothing=findViewById<ImageView>(R.id.imagebyimagenotes)
nothing.setBackgroundResource(R.drawable.image_animation)
guni = nothing.background as AnimationDrawable
guni.start()
btnOk.setOnClickListener {
if (noteTitle.text.toString().isEmpty() or noteSubTitle.text.toString()
.isEmpty() or noteDescription.text.toString().isEmpty()
) {
Toast.makeText( th
is,
"Please enter all fields\nAll fields are required",
var bottomnavview =
findViewById<BottomNavigationView>(R.id.bottomNavigationView)
bottomnavview.setOnItemSelectedListener {
when (it.itemId) {
R.id.notes -> {
Intent(this, NotesActivity::class.java).apply {
startActivity(this)
}
return@setOnItemSelectedListener true
}
else -> {
Intent(this, MainActivity2d::class.java).apply {
startActivity(this)
}
return@setOnItemSelectedListener true
}
}
}
}
NotificationReceiver.kt
package com.example.a19012011025_prac10
import android.app.PendingIntent
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import androidx.core.app.NotificationCompat
import androidx.core.app.NotificationManagerCompat
with(NotificationManagerCompat.from(context)) {
notify(index, builder.build())
}
}
}
Splash.kt
package com.example.a19012011025_prac10
import android.content.Intent
import android.graphics.Color
import android.graphics.drawable.AnimationDrawable
import android.os.Build
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.Handler
import android.view.View
import android.view.WindowManager
import android.view.animation.Animation
import android.widget.ImageView
import android.widget.TextView
val imgview=findViewById<ImageView>(R.id.image)
imgview.setBackgroundResource(R.drawable.animation)
guni = imgview.background as AnimationDrawable
guni.start()
Handler().postDelayed({
val intent = Intent(this, MainActivity::class.java)
startActivity(intent)
finish()
}, 4000)
}
Activity_main.xml
<View
android:id="@+id/view2"
android:layout_width="179dp"
android:layout_height="472dp"
android:layout_marginTop="110dp"
android:background="@drawable/gradial"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/textView"
android:layout_width="125dp"
android:layout_height="57dp"
android:text="GUNI"
android:textAppearance="@style/TextAppearance.AppCompat.Body2"
android:textColor="#20559B"
android:textSize="48sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.035" />
<androidx.cardview.widget.CardView
android:id="@+id/cardView2"
android:layout_width="317dp"
android:layout_height="306dp"
android:layout_marginLeft="10dp"
android:layout_marginTop="104dp"
android:layout_marginRight="10dp"
app:cardCornerRadius="25dp"
app:cardElevation="0.8dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView">
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/textField"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_marginTop="17dp"
android:layout_marginRight="20dp"
android:hint="Email"
app:boxBackgroundColor="@color/white">
<com.google.android.material.textfield.TextInputEditText
android:layout_width="match_parent"
android:id="@+id/Email_login"
android:layout_height="match_parent"
android:inputType="textEmailAddress"
android:drawableRight="@drawable/ic_baseline_email_24" />
</com.google.android.material.textfield.TextInputLayout>
>
<com.google.android.material.textfield.TextInputEditText
android:layout_width="match_parent"
android:id="@+id/Pass_login"
android:layout_height="wrap_content"
android:inputType="textPassword"
android:drawableRight="@drawable/ic_baseline_vpn_key_24" />
</com.google.android.material.textfield.TextInputLayout>
<TextView
android:id="@+id/textView6"
android:layout_width="136dp"
android:layout_height="21dp"
android:layout_marginLeft="170dp"
android:layout_marginTop="160dp"
android:text="Forgot Password?"
android:textSize="16dp" />
<View
android:layout_width="match_parent"
android:layout_height="90dp"
android:layout_marginTop="218dp"
android:background="@drawable/ic_wave"
app:layout_constraintBottom_toBottomOf="parent"></View>
</androidx.cardview.widget.CardView>
<TextView
android:id="@+id/textView2"
android:layout_width="91dp"
android:layout_height="39dp"
android:layout_marginStart="52dp"
android:layout_marginTop="144dp"
android:text="Login"
android:textColor="@color/white"
android:textSize="25dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/textView3"
android:layout_width="91dp"
android:layout_height="39dp"
android:layout_marginTop="144dp"
Practical: 10
android:layout_marginEnd="48dp"
android:text="Sign Up"
android:textColor="#888888"
android:textSize="25dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="1.0"
app:layout_constraintStart_toEndOf="@+id/textView2"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/textView7"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="32dp"
android:text="Don't have an account ?"
android:textSize="17dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.272"
app:layout_constraintStart_toStartOf="parent" />
<TextView
android:id="@+id/signuptxt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="58dp"
android:layout_marginBottom="32dp"
android:text="SIGN UP"
android:textColor="#DF58A0"
android:textSize="19dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="1.0"
app:layout_constraintStart_toEndOf="@+id/textView7" />
<androidx.appcompat.widget.AppCompatButton
android:id="@+id/loginbtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="392dp"
android:background="@drawable/buttongradial"
android:text="Login"
android:textColor="@color/black"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.498"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView" />
</androidx.constraintlayout.widget.ConstraintLayout>
Activity_main_activity2d.xml
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
Manthan Modi 19012011025
Practical: 10
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".MainActivity2d">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/constraintLayout"
android:layout_width="match_parent"
android:layout_height="240dp"
android:background="@drawable/gradial3"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.0">
<RatingBar
android:id="@+id/ratingid"
style="@style/Widget.AppCompat.RatingBar.Indicator"
android:layout_width="181dp"
android:layout_height="60dp"
android:isIndicator="false"
android:numStars="5"
android:paddingTop="15dp"
android:progressTint="#FAFAFA"
android:scrollbarSize="2dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/imageView"
app:layout_constraintHorizontal_bias="0.37"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/email_dashboard_main1"
app:layout_constraintVertical_bias="0.19999999" />
<TextView
android:id="@+id/name_dashboard_main1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Manthan Modi"
android:textColor="@color/white"
android:textSize="30sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.12"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.18" />
<TextView
android:id="@+id/email_dashboard_main1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="modimanthan3@gmail.com"
android:textColor="@color/white"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.143"
<ImageView
android:id="@+id/imageView"
android:layout_width="105dp"
android:layout_height="102dp"
app:circularflow_angles="20dp"
app:circularflow_radiusInDP="20dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.862"
app:layout_constraintStart_toEndOf="@+id/email_dashboard_main1"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.26"
app:srcCompat="@drawable/av" />
<TextView
android:id="@+id/textView8"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Logout"
android:textColor="#FF0000"
android:textSize="17sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.876"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/imageView"
app:layout_constraintVertical_bias="0.354" />
</androidx.constraintlayout.widget.ConstraintLayout>
<!-- <com.google.android.material.card.MaterialCardView-->
<!-- android:layout_width="340dp"-->
<!-- android:layout_height="150dp"-->
<!-- android:layout_marginTop="30dp"-->
<!-- android:translationZ="20dp"-->
<!-- app:cardCornerRadius="20dp"-->
<!-- app:cardElevation="30dp"-->
<!-- app:layout_constraintBottom_toTopOf="@+id/materialCardView2"-->
<!-- app:layout_constraintEnd_toEndOf="parent"-->
<!-- app:layout_constraintStart_toStartOf="parent"-->
<!-- app:layout_constraintTop_toBottomOf="@+id/materialCardView2">-->
<!-- <TextView-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="match_parent"-->
<!-- android:text="Alarm"></TextView>-->
<!-- </com.google.android.material.card.MaterialCardView>-->
<ImageView
android:id="@+id/imageView5"
android:layout_width="407dp"
android:layout_height="96dp"
android:layout_marginBottom="50dp"
android:src="@drawable/ic_wave"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintVertical_bias="1.0" />
<ScrollView
android:layout_width="match_parent"
android:layout_height="540dp"
android:layout_marginTop="-110dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toBottomOf="@id/constraintLayout"
app:layout_constraintVertical_bias="1.0">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<com.google.android.material.card.MaterialCardView
android:id="@+id/materialCardView2"
android:layout_width="340dp"
android:layout_height="260dp"
android:translationZ="20dp"
app:cardCornerRadius="15dp"
app:cardElevation="30dp"
android:layout_gravity="center">
<TextView
android:id="@+id/textView9"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_marginTop="5dp"
android:paddingTop="5dp"
android:paddingBottom="15dp"
android:text="Personal Information"
android:textColor="#000000"
android:textSize="21sp"
android:textStyle="bold" />
<ImageView
android:id="@+id/imageView4"
android:layout_width="27dp"
android:layout_height="27dp"
android:layout_marginLeft="300dp"
android:layout_marginTop="5dp"
android:paddingTop="5dp"
android:src="@drawable/ic_baseline_person_24" />
<TextView
android:id="@+id/textView10"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:layout_marginTop="55dp"
android:text="Full Name"
android:textSize="15dp" />
<TextView
android:id="@+id/name_dashboard1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:layout_marginTop="75dp"
android:text="Manthan Sunilbhai Modi"
android:textColor="@color/black"
android:textSize="16dp" />
<TextView
android:id="@+id/textView12"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:layout_marginTop="110dp"
android:text="Phone Number"
android:textSize="15dp" />
<TextView
android:id="@+id/phone_dashboard1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:layout_marginTop="135dp"
android:text="+91 6359822773"
android:textColor="@color/black"
android:textSize="16dp" />
<TextView
android:id="@+id/textView14"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:layout_marginTop="170dp"
android:text="Email Id"
android:textSize="15dp" />
<TextView
android:id="@+id/email_dashboard1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:layout_marginTop="195dp"
android:text="modimanthan3@gmail.com"
android:textColor="@color/black"
android:textSize="16dp" />
<TextView
android:id="@+id/textView16"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="190dp"
android:layout_marginTop="110dp"
android:text="City"
android:textSize="15dp" />
<TextView
android:id="@+id/city_dashboard1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="190dp"
android:layout_marginTop="135dp"
android:text="Mehsana, Gujarat"
android:textColor="@color/black"
android:textSize="16dp" />
</com.google.android.material.card.MaterialCardView>
//card photo
<com.google.android.material.card.MaterialCardView
android:id="@+id/materialCardViewphoto"
android:layout_width="340dp"
android:layout_height="240dp"
android:layout_gravity="center"
android:layout_marginTop="20dp"
android:translationZ="20dp"
app:cardCornerRadius="15dp"
app:cardElevation="30dp">
<View
android:id="@+id/divider5"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginTop="50dp" android:background="?
android:attr/listDivider" />
<ImageView
android:id="@+id/imagebyimage"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="50dp"/>
<TextView
android:id="@+id/textViewphoto"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_marginTop="5dp"
android:paddingTop="5dp"
android:paddingBottom="15dp"
android:text="Photos"
android:textColor="#000000"
android:textSize="25sp"
android:textStyle="bold" />
<ImageView
android:id="@+id/vectorphoto"
android:layout_width="27dp"
android:layout_height="27dp"
android:layout_marginLeft="300dp"
android:layout_marginTop="5dp"
android:paddingTop="5dp" />
</com.google.android.material.card.MaterialCardView>
<com.google.android.material.card.MaterialCardView
android:layout_width="340dp"
android:layout_height="wrap_content"
app:cardElevation="30dp"
android:background="@color/white"
android:translationZ="20dp"
android:layout_marginTop="20dp"
app:cardCornerRadius="15dp"
android:layout_gravity="center_horizontal">
<TextView
android:id="@+id/textView20"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_marginTop="10dp"
android:paddingTop="5dp"
android:paddingBottom="15dp"
android:text="Set Alarm time"
android:textColor="#000000"
android:textSize="21sp"
android:textStyle="bold" />
<ImageView
android:id="@+id/imageView7"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="300dp"
android:layout_marginTop="10dp"
android:paddingTop="5dp"
android:src="@drawable/ic_baseline_alarm_add_24" />
<TextView
android:id="@+id/textView21"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_marginTop="65dp"
android:paddingTop="5dp"
android:paddingBottom="15dp"
android:text="Current Date Time:"
android:textColor="#676767"
android:textSize="20sp" />
<TextClock
android:id="@+id/textclock"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_marginTop="90dp"
android:paddingTop="5dp"
android:paddingBottom="15dp"
android:textColor="#676767"
android:textSize="16sp" />
<TextView
android:id="@+id/textView23"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_marginTop="120dp"
android:paddingTop="5dp"
android:paddingBottom="15dp"
android:text="Alarm:"
android:textColor="#676767"
android:textSize="20sp" />
<TextView
android:id="@+id/setalarm"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_marginTop="145dp"
android:clickable="true"
android:focusable="true"
android:paddingTop="5dp"
android:paddingBottom="20dp"
android:text="Set Alarm"
android:textColor="#676767"
android:textSize="16sp" />
<View
android:id="@+id/divider"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginTop="50dp" android:background="?
android:attr/listDivider" />
<TextView
android:id="@+id/tvShowTime"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="140dp"
android:layout_marginLeft="120dp"
android:text="TextView" />
</com.google.android.material.card.MaterialCardView>
<com.google.android.material.card.MaterialCardView
android:id="@+id/card3"
android:layout_width="340dp"
android:layout_height="150dp"
android:layout_marginTop="30dp"
android:layout_gravity="center"
android:translationZ="20dp"
app:cardCornerRadius="20dp"
app:cardElevation="30dp"
app:layout_constraintBottom_toTopOf="@+id/imageView5"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
Practical: 10
app:layout_constraintTop_toBottomOf="@+id/materialCardView2">
<TextView
android:id="@+id/textView18"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_marginTop="5dp"
android:text="Description"
android:textColor="@color/black"
android:textSize="20dp" />
<ImageView
android:id="@+id/imageView6"
android:layout_width="30dp"
android:layout_height="28dp"
android:layout_marginLeft="300dp"
android:layout_marginTop="5dp"
android:src="@drawable/ic_baseline_description_24" />
<TextView
android:id="@+id/textView19"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:layout_marginTop="50dp"
android:layout_marginRight="15dp"
android:text="The iconfont folder contains pre-generated font files
that can be included in a project. This is especially convenient for the web;
however,it is generally better to link to the web font hosted on Google Fonts," />
</com.google.android.material.card.MaterialCardView>
</LinearLayout>
</ScrollView>
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottomNavigationView"
android:layout_width="406dp"
android:layout_height="55dp"
android:background="@color/white"
app:itemIconTint="@color/black"
app:itemTextColor="@color/black"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.4"
app:layout_constraintStart_toStartOf="parent"
app:menu="@menu/bottomnav" />
</androidx.constraintlayout.widget.ConstraintLayout>
Activity_main_activity2s.xml
<View
android:layout_width="235dp"
android:layout_height="589dp"
android:layout_marginTop="100dp"
android:background="@drawable/gradle2"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@+id/textView">
</View>
<androidx.appcompat.widget.AppCompatButton
android:id="@+id/signupbtn"
android:layout_width="100dp"
android:layout_height="wrap_content"
android:layout_marginTop="556dp"
android:background="@drawable/buttongradial"
android:text="SignUP"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.498"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView">
</androidx.appcompat.widget.AppCompatButton>
<TextView
android:id="@+id/textView"
android:layout_width="125dp"
android:layout_height="57dp"
android:layout_marginBottom="35dp"
android:text="GUNI"
android:textAppearance="@style/TextAppearance.AppCompat.Body2"
android:textColor="#20559B"
android:textSize="48sp"
android:textStyle="bold"
app:layout_constraintBottom_toTopOf="@+id/textView3"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.041" />
<TextView
android:id="@+id/textView2"
android:layout_width="101dp"
android:layout_height="45dp"
android:layout_marginStart="16dp"
android:layout_marginTop="128dp"
android:textColor="#888888"
android:text="Login"
android:textSize="35dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<androidx.cardview.widget.CardView
android:id="@+id/cardView"
android:layout_width="340dp"
android:layout_height="453dp"
android:layout_marginTop="180dp"
android:layout_marginRight="20dp"
android:layout_marginLeft="20dp"
app:cardElevation="0.8dp"
app:cardBackgroundColor="@color/white"
app:cardCornerRadius="25dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/Name_signup"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="30dp"
android:layout_marginTop="20dp"
android:layout_marginRight="30dp"
android:backgroundTint="#FFFFFF"
android:drawableRight="@drawable/ic_baseline_person_24"
android:hint="User Full Name" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/Phone_signup"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="30dp"
android:layout_marginTop="80dp"
android:layout_marginRight="30dp"
android:backgroundTint="#FFFFFF"
android:drawableRight="@drawable/ic_baseline_phone_iphone_24"
android:hint="Phone Number" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/City_signup"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="30dp"
android:layout_marginTop="140dp"
android:layout_marginRight="30dp"
android:backgroundTint="#FFFFFF"
android:drawableRight="@drawable/ic_baseline_person_24"
android:hint="City" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/Email_signup"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="30dp"
android:layout_marginTop="200dp"
android:layout_marginRight="30dp"
android:backgroundTint="#FFFFFF"
android:drawableRight="@drawable/ic_baseline_email_24"
android:hint="Email" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/Passw_signup"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="30dp"
android:layout_marginTop="260dp"
android:layout_marginRight="30dp"
android:backgroundTint="#FFFFFF"
android:drawableRight="@drawable/ic_baseline_vpn_key_24"
android:hint="Password" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/CnPass_signup"
android:layout_width="match_parent"
android:layout_height="wrap_content"
Practical: 10
android:layout_marginLeft="30dp"
android:layout_marginTop="320dp"
android:layout_marginRight="30dp"
android:backgroundTint="#FFFFFF"
android:drawableRight="@drawable/ic_baseline_vpn_key_24"
android:hint="Confirm Password" />
</com.google.android.material.textfield.TextInputLayout>
<View
android:layout_width="match_parent"
android:layout_height="90dp"
android:layout_marginTop="363dp"
android:background="@drawable/ic_wave"
app:layout_constraintBottom_toBottomOf="parent">
</View>
</androidx.cardview.widget.CardView>
</androidx.constraintlayout.widget.ConstraintLayout>
Activity_notes.xml
<ImageView
android:id="@+id/waveform"
android:layout_width="551dp"
android:layout_height="165dp"
android:layout_marginLeft="-20dp"
android:layout_marginRight="-2dp"
android:layout_marginTop="-20dp"
android:src="@drawable/ic_wave"
android:scaleY="-1"
app:layout_constraintEnd_toEndOf="parent"
android:translationZ="-10dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="1.0">
</ImageView>
<ListView
android:id="@+id/listview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="120dp"
</ListView>
<ImageView
android:id="@+id/waveform1"
android:layout_width="551dp"
android:layout_height="165dp"
android:layout_marginLeft="-20dp"
android:layout_marginTop="-80dp"
android:layout_marginRight="-2dp"
android:paddingTop="18dp"
android:elevation="-10dp"
android:src="@drawable/ic_wave"
app:layout_constraintBottom_toTopOf="@id/bottomNavigationView"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/listview"
app:layout_constraintVertical_bias="1.0">
</ImageView>
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/add_notes"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_baseline_add_24"
app:layout_constraintBottom_toTopOf="@id/bottomNavigationView"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginEnd="22dp"
android:layout_marginBottom="50dp"
/>
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottomNavigationView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:menu="@menu/bottomnav"
android:translationZ="30dp"/>
</androidx.constraintlayout.widget.ConstraintLayout>
Activity_splash.xml
<?xml version="1.0" encoding="utf-8"?>
<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="match_parent"
android:layout_height="match_parent"
android:background="@drawable/gradial3"
tools:context=".splash">
<ImageView
android:id="@+id/image"
android:layout_width="wrap_content"
android:layout_height="150dp"
tools:layout_editor_absoluteX="105dp"
tools:layout_editor_absoluteY="195dp"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintLeft_toLeftOf="parent"/>
</androidx.constraintlayout.widget.ConstraintLayout>
Add_notes_dialog.xml
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/tv_dialog_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="20dp"
android:layout_marginTop="10dp"
android:text="Add Note"
android:textColor="@color/black"
android:textSize="18sp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/title"
style="@style/Widget.Design.TextInputLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Note Title"
app:layout_constraintTop_toBottomOf="@id/tv_dialog_title">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/et_note_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:drawableEnd="@drawable/ic_news_24"
android:drawableTint="#FF4081"
android:inputType="text"
android:maxLines="1" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/sub_title"
style="@style/Widget.Design.TextInputLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Note Sub Title"
app:layout_constraintTop_toBottomOf="@id/title">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/et_note_sub_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:drawableEnd="@drawable/ic_news_24"
android:drawableTint="#FF4081"
android:inputType="text"
android:maxLines="1" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/description"
style="@style/Widget.Design.TextInputLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Note Description"
app:layout_constraintTop_toBottomOf="@id/sub_title">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/et_note_description"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:drawableEnd="@drawable/ic_news_24"
android:drawableTint="#FF4081"
android:gravity="top|start"
android:lines="8"
android:maxLines="10"
android:minLines="6"
android:scrollbars="vertical" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/switch_reminder"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Set Reminder"
android:textSize="30sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/description" />
<TimePicker
android:id="@+id/time_picker"
android:layout_width="match_parent"
android:background="#DFF2D8"
android:layout_height="wrap_content"
app:layout_constraintTop_toBottomOf="@id/switch_reminder" />
<TextView
android:id="@+id/btn_ok"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="20dp"
android:clickable="true"
android:focusable="true"
android:text="OK"
android:textColor="#FF4081"
android:textSize="16sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/time_picker" />
</androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>
List_item.xml
<com.google.android.material.card.MaterialCardView
android:id="@+id/list_cardview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:backgroundTint="@color/black"
app:cardCornerRadius="20dp"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingRight="20dp"
android:paddingTop="20dp"
android:paddingLeft="20dp"
android:orientation="vertical">
<TextView
android:id="@+id/note_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="UVPCE NOTE 1"
android:textColor="@color/white"
android:textSize="26sp"/>
<TextView
android:id="@+id/note_sub_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Ganpat University "
android:textColor="@color/white"
android:textSize="17sp"/>
<TextView
android:id="@+id/note_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="20dp"
android:text="UVPCE college is under Ganpat University & excellent
college"
android:textColor="@color/white"
android:textSize="18sp"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingTop="30dp">
<TextView
android:id="@+id/note_time_stamp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Sep, 25 2020 09:45:23 am"
android:textColor="@color/white" />
<Button
android:id="@+id/edit_note"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:backgroundTint="@android:color/transparent"
android:drawableRight="@drawable/ic_baseline_edit_24"
/>
<Button
android:id="@+id/delete_note"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:backgroundTint="@android:color/transparent"
android:drawableRight="@drawable/ic_baseline_delete_24"
/>
</LinearLayout>
</LinearLayout>
</com.google.android.material.card.MaterialCardView>
</LinearLayout>
Note_info.xml
<com.google.android.material.card.MaterialCardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="20dp"
android:layout_marginEnd="20dp"
android:layout_marginTop="20dp"
app:layout_constraintTop_toTopOf="parent"
app:cardCornerRadius="20dp">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="20dp"
android:background="#323332">
<TextView
android:id="@+id/tv_note_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="parent"
android:text="Title"
android:textColor="@color/white"
android:textStyle="bold"
android:textSize="22sp"
app:layout_constraintStart_toStartOf="parent"/>
<TextView
android:id="@+id/tv_note_sub_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Sub title"
android:textColor="@color/white"
android:textSize="18sp"
android:layout_marginTop="5dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tv_note_title"/>
<TextView
android:id="@+id/tv_note_description"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tv_note_sub_title"
android:textColor="@color/white"
android:textSize="20sp"
android:layout_marginTop="15dp"
android:text="This is description\nof note"/>
<TextView
android:id="@+id/tv_note_time_stamp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintTop_toBottomOf="@id/tv_note_description"
app:layout_constraintStart_toStartOf="parent"
android:layout_marginTop="15dp"
android:textColor="@color/white"
android:textSize="16sp"
android:text="Oct, 16 2021 06:31:00 pm"/>
<TextView
android:id="@+id/tv_notes_reminder_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintTop_toBottomOf="@id/tv_note_time_stamp"
app:layout_constraintStart_toStartOf="parent"
android:textColor="@color/white"
android:textSize="16sp"
android:text="Reminder at Oct, 16 2021 16:35:00 pm"/>
</androidx.constraintlayout.widget.ConstraintLayout>
</com.google.android.material.card.MaterialCardView>
</androidx.constraintlayout.widget.ConstraintLayout>
Notes.xml
<ImageView
android:id="@+id/waveform"
android:layout_width="551dp"
android:layout_height="165dp"
android:layout_marginLeft="-20dp"
android:layout_marginRight="-2dp"
android:paddingTop="18dp"
android:src="@drawable/ic_wave"
android:scaleY="-1"
app:layout_constraintEnd_toEndOf="parent"
android:translationZ="-10dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="1.0">
</ImageView>
<ImageView
android:id="@+id/imagebyimagenotes"
android:layout_width="match_parent"
android:layout_height="180dp"
android:layout_marginTop="104dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@+id/waveform"/>
<ListView
android:id="@+id/listview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="350dp"
android:layout_marginBottom="50dp"
app:layout_constraintBottom_toTopOf="@id/bottomNavigationView"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/waveform"
app:layout_constraintVertical_bias="0.737"
tools:listitem="@layout/list_item">
</ListView>
<ImageView
android:id="@+id/waveform1"
android:layout_width="551dp"
android:layout_height="165dp"
android:layout_marginLeft="-20dp"
android:layout_marginTop="-80dp"
android:layout_marginRight="-2dp"
android:paddingTop="18dp"
android:elevation="-10dp"
android:src="@drawable/ic_wave"
app:layout_constraintBottom_toTopOf="@id/bottomNavigationView"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/listview"
app:layout_constraintVertical_bias="1.0">
</ImageView>
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/add_notes"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_baseline_add_24"
app:layout_constraintBottom_toTopOf="@id/bottomNavigationView"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginEnd="22dp"
android:layout_marginBottom="50dp"
/>
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottomNavigationView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:menu="@menu/bottomnav"
android:translationZ="30dp"/>
</androidx.constraintlayout.widget.ConstraintLayout>
AndroidManifest.xml
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.19012011025_prac10">
<activity
android:name=".splash"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<receiver
android:name=".AlarmBroadcastReceiver"
android:enabled="true"
android:exported="true" />
<receiver
android:name=".NotificationReceiver"
android:enabled="true" />
<activity
android:name=".NoteInfoActivity"
android:exported="true" />
<activity
android:name=".NotesActivity"
android:exported="true" />
<activity
Practical: 10
android:name=".MainActivity2d"
android:exported="true"
android:noHistory="true" />
<activity
android:name=".MainActivity2s"
android:exported="true" />
<activity
android:name=".MainActivity"
android:exported="true"
android:noHistory="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</manifest>
Output: