Register now for Android Dev Summit 2019!

CarListDialog

open class CarListDialog : Dialog
kotlin.Any
   ↳ android.app.Dialog
   ↳ androidx.car.app.CarListDialog

A subclass of Dialog that is tailored for the car environment. This dialog can display a fixed list of items. There is no affordance for setting titles or any other text.

Its functionality is similar to if a list has been set on androidx.appcompat.app.AlertDialog, but is styled so that it is more appropriate for displaying in vehicles.

Note that this dialog cannot be created with an empty list.

Summary

Nested classes

Builder class that can be used to create a CarListDialog by configuring the options for the list and behavior of the dialog.

open

A struct that holds data for a section.

Public methods

open Unit

open Unit

Protected methods

open Unit
onCreate(savedInstanceState: Bundle!)

open Unit

Public methods

setCanceledOnTouchOutside

open fun setCanceledOnTouchOutside(cancel: Boolean): Unit

setTitle

open fun setTitle(title: CharSequence!): Unit

Protected methods

onCreate

protected open fun onCreate(savedInstanceState: Bundle!): Unit

onStop

protected open fun onStop(): Unit