DrawerItemViewHolder

public class DrawerItemViewHolder
extends RecyclerView.ViewHolder

java.lang.Object
   ↳ androidx.recyclerview.widget.RecyclerView.ViewHolder
     ↳ androidx.car.drawer.DrawerItemViewHolder


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

Summary

Inherited fields

Public methods

ImageView getEndIcon()

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

ImageView getIcon()

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

TextView getText()

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

TextView getTitle()

Returns the view that will display the main title.

Inherited methods

Public methods

getEndIcon

public ImageView getEndIcon ()

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

Returns
ImageView

getIcon

public ImageView getIcon ()

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

Returns
ImageView

getText

public TextView getText ()

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

Returns
TextView

getTitle

public TextView getTitle ()

Returns the view that will display the main title.

Returns
TextView