SeslAppPickerListView

class SeslAppPickerListView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0) : SeslAppPickerView(source)

SeslAppPickerListView is a view for selecting applications, displayed as a list.

It extends SeslAppPickerView and uses a LinearLayoutManager to arrange items.

The appearance and behavior of items can be customized using a ComposableStrategy. If no custom strategy is provided via the customStrategyClass attribute, it defaults to DefaultComposableStrategy.

This view also applies specific item decorations:

Parameters

context

The Context the view is running in, through which it can access the current theme, resources, etc.

attrs

The attributes of the XML tag that is inflating the view.

defStyleAttr

An attribute in the current theme that contains a reference to a style resource that supplies default values for the view. Can be 0 to not look for defaults.

Constructors

Link copied to clipboard
constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0)

Functions

Link copied to clipboard
open override fun getAppPickerAdapter(viewType: Int): AbsAdapter

Retrieves an adapter for the app picker.

Link copied to clipboard
open override fun getLayoutManager(viewType: Int): RecyclerView.LayoutManager

Retrieves the LayoutManager for the RecyclerView. This implementation always returns a LinearLayoutManager for a vertical list.

Link copied to clipboard
open override fun setItemDecoration(i: Int, headerFooterAdapter: HeaderFooterAdapter)