belongs to Maven artifact androidx.car:car:1.0.0-alpha1

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. 

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

void setCanceledOnTouchOutside (boolean cancel)

Parameters
cancel boolean

setTitle

void setTitle (CharSequence title)

Parameters
title CharSequence

Protected methods

onCreate

void onCreate (Bundle savedInstanceState)

Parameters
savedInstanceState Bundle

onStop

void onStop ()