ANDROIDSTUDYCHANNEL Telegram 3453
fun Get_date(){
binding?.progressWheel!!.visibility=View.GONE
val bottomshit = BottomSheetDialog(requireActivity(), R.style.BottomSheetDialogTheme)
val view = LayoutInflater.from(requireActivity()).inflate(R.layout.bottomsheet_date, null)
val date=view.findViewById<PersianLinearDatePicker>(R.id.datePicker)
val Im_back=view.findViewById<ImageView>(R.id.Im_back)
date.setOnDateChangedListener { year, month, day ->

val d:String
val m:String
when (day) {
1 -> {
d="01"
}
2 -> {
d="02"
}
3 -> {
d="03"
}
4 -> {
d="04"
}
5 -> {
d="05"
}
6 -> {
d="06"
}
7 -> {
d="07"
}
8 -> {
d="08"
}
9 -> {
d="09"
}
else -> {
d= day.toString()
}
}

when (month) {
1 -> {
m="01"
}
2 -> {
m="02"
}
3 -> {
m="03"
}
4 -> {
m="04"
}
5 -> {
m="05"
}
6 -> {
m="06"
}
7 -> {
m="07"
}
8 -> {
m="08"
}
9 -> {
m="09"
}
else -> {
m= month.toString()
}
}

var y:String = year.toString()
var sum= y+"/"+m+"/"+d
binding?.TvDate?.text=sum
}
Im_back.setOnClickListener {
bottomshit.dismiss()
}
bottomshit.setContentView(view)
bottomshit.show()
}
👍1



tgoop.com/AndroidStudyChannel/3453
Create:
Last Update:

fun Get_date(){
binding?.progressWheel!!.visibility=View.GONE
val bottomshit = BottomSheetDialog(requireActivity(), R.style.BottomSheetDialogTheme)
val view = LayoutInflater.from(requireActivity()).inflate(R.layout.bottomsheet_date, null)
val date=view.findViewById<PersianLinearDatePicker>(R.id.datePicker)
val Im_back=view.findViewById<ImageView>(R.id.Im_back)
date.setOnDateChangedListener { year, month, day ->

val d:String
val m:String
when (day) {
1 -> {
d="01"
}
2 -> {
d="02"
}
3 -> {
d="03"
}
4 -> {
d="04"
}
5 -> {
d="05"
}
6 -> {
d="06"
}
7 -> {
d="07"
}
8 -> {
d="08"
}
9 -> {
d="09"
}
else -> {
d= day.toString()
}
}

when (month) {
1 -> {
m="01"
}
2 -> {
m="02"
}
3 -> {
m="03"
}
4 -> {
m="04"
}
5 -> {
m="05"
}
6 -> {
m="06"
}
7 -> {
m="07"
}
8 -> {
m="08"
}
9 -> {
m="09"
}
else -> {
m= month.toString()
}
}

var y:String = year.toString()
var sum= y+"/"+m+"/"+d
binding?.TvDate?.text=sum
}
Im_back.setOnClickListener {
bottomshit.dismiss()
}
bottomshit.setContentView(view)
bottomshit.show()
}

BY 🔴 ANDROID PROGRAMMING CHANNEL


Share with your friend now:
tgoop.com/AndroidStudyChannel/3453

View MORE
Open in Telegram


Telegram News

Date: |

Public channels are public to the internet, regardless of whether or not they are subscribed. A public channel is displayed in search results and has a short address (link). The main design elements of your Telegram channel include a name, bio (brief description), and avatar. Your bio should be: Private channels are only accessible to subscribers and don’t appear in public searches. To join a private channel, you need to receive a link from the owner (administrator). A private channel is an excellent solution for companies and teams. You can also use this type of channel to write down personal notes, reflections, etc. By the way, you can make your private channel public at any moment. Just as the Bitcoin turmoil continues, crypto traders have taken to Telegram to voice their feelings. Crypto investors can reduce their anxiety about losses by joining the “Bear Market Screaming Therapy Group” on Telegram. How to Create a Private or Public Channel on Telegram?
from us


Telegram 🔴 ANDROID PROGRAMMING CHANNEL
FROM American