Join us on the livestream at Android Dev Summit on 7-8 November 2018, starting at 10AM PDT!

CarListDialog

public class CarListDialog
extends Dialog

java.lang.Object
   ↳ 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 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

class CarListDialog.Builder

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

class CarListDialog.DialogSubSection

A struct that holds data for a section. 

Inherited constants

Public methods

void setCanceledOnTouchOutside(boolean cancel)
void setTitle(CharSequence title)

Protected methods

void onCreate(Bundle savedInstanceState)
void onStop()

Inherited methods

Public methods

setCanceledOnTouchOutside

public void setCanceledOnTouchOutside (boolean cancel)

Parameters
cancel boolean

setTitle

public void setTitle (CharSequence title)

Parameters
title CharSequence

Protected methods

onCreate

protected void onCreate (Bundle savedInstanceState)

Parameters
savedInstanceState Bundle

onStop

protected void onStop ()