nglauber
07/11/2020, 1:59 PMAndroidView. Does this issue still happening?
I have a layout with a TextView and a CalendarView and I’m just trying to show/hide the CalendarView when I click on the TextView. But the screen is frozen… 😕
@Composable
fun MyCalendar() {
var currentDate by state { Date() }
AndroidView(resId = R.layout.my_layout) { view ->
val textView = view.findViewById<TextView>(R.id.txtDate)
val calendarView = view.findViewById<CalendarView>(R.id.calendarView)
calendarView?.visibility = View.GONE
textView?.text = currentDate.toString()
textView?.setOnClickListener {
calendarView?.let {
it.visibility = if (it.visibility == View.VISIBLE)
View.GONE
else View.VISIBLE
}
}
}
}nglauber
07/11/2020, 2:34 PMCalendarView starts visible, it works fine 😕 I just remove this line and it worked…
calendarView?.visibility = View.GONEJohn O'Reilly
07/12/2020, 8:30 AMAndroidView to contain a google map view.....touch is working in general but pinch/zoom isn'tppvi
07/13/2020, 10:53 AMAndroidView does not fully support some user events yet