DrawerItemViewHolder

open class DrawerItemViewHolder : RecyclerView.ViewHolder
kotlin.Any
   ↳ androidx.recyclerview.widget.RecyclerView.ViewHolder
   ↳ androidx.car.drawer.DrawerItemViewHolder

Re-usable RecyclerView.ViewHolder for displaying items in the androidx.car.drawer.CarDrawerAdapter.

Summary

Public methods
open TextView?

Returns the view that is used for text that is smaller than the title text.

open TextView

Returns the view that will display the main title.

open ImageView

Returns the view that should be used to display the main icon.

open ImageView?

Returns the icon that is displayed at the end of the view.

Inherited functions
Inherited properties

Public methods

getText

@Nullable open fun getText(): TextView?

Returns the view that is used for text that is smaller than the title text.

getTitle

@NonNull open fun getTitle(): TextView

Returns the view that will display the main title.

getIcon

@NonNull open fun getIcon(): ImageView

Returns the view that should be used to display the main icon.

getEndIcon

@Nullable open fun getEndIcon(): ImageView?

Returns the icon that is displayed at the end of the view.