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()
}



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

Telegram has announced a number of measures aiming to tackle the spread of disinformation through its platform in Brazil. These features are part of an agreement between the platform and the country's authorities ahead of the elections in October. During the meeting with TSE Minister Edson Fachin, Perekopsky also mentioned the TSE channel on the platform as one of the firm's key success stories. Launched as part of the company's commitments to tackle the spread of fake news in Brazil, the verified channel has attracted more than 184,000 members in less than a month. The optimal dimension of the avatar on Telegram is 512px by 512px, and it’s recommended to use PNG format to deliver an unpixelated avatar. The group’s featured image is of a Pepe frog yelling, often referred to as the “REEEEEEE” meme. Pepe the Frog was created back in 2005 by Matt Furie and has since become an internet symbol for meme culture and “degen” culture. On June 7, Perekopsky met with Brazilian President Jair Bolsonaro, an avid user of the platform. According to the firm's VP, the main subject of the meeting was "freedom of expression."
from us


Telegram 🔴 ANDROID PROGRAMMING CHANNEL
FROM American