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: |

‘Ban’ on Telegram It’s yet another bloodbath on Satoshi Street. As of press time, Bitcoin (BTC) and the broader cryptocurrency market have corrected another 10 percent amid a massive sell-off. Ethereum (EHT) is down a staggering 15 percent moving close to $1,000, down more than 42 percent on the weekly chart. But a Telegram statement also said: "Any requests related to political censorship or limiting human rights such as the rights to free speech or assembly are not and will not be considered." A vandalised bank during the 2019 protest. File photo: May James/HKFP. Don’t publish new content at nighttime. Since not all users disable notifications for the night, you risk inadvertently disturbing them.
from us


Telegram 🔴 ANDROID PROGRAMMING CHANNEL
FROM American