public class

PropertyListLayout

extends ConstraintLayout
java.lang.Object
   ↳ ConstraintLayout
     ↳ com.mapsted.ui_components.property.PropertyListLayout

Class Overview

PropertyListLayout displays properties in a horizontal or vertical orientation. Internally, it uses a recyclerView to show PropertyView (horizontal orientation format) or PropertyViewWide (vertical orientation format). The following code shows a property list in vertical orientation.

Summary

Nested Classes
class PropertyListLayout.DisclaimerText This data class will be used to show Disclaimer dialog when a property is clicked. 
interface PropertyListLayout.PropertyClickListener Set this listener on PropertyListLayout  
Public Constructors
PropertyListLayout(Context context)
PropertyListLayout(Context context, AttributeSet attrs)
PropertyListLayout(Context context, AttributeSet attrs, int defStyleAttr)
PropertyListLayout(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
Public Methods
MapstedListAdapter<PropertyListItem> getAdapter()
RecyclerView getListView()
void setPropertyClickListener(PropertyListLayout.PropertyClickListener listener)
Sets a PropertyListLayout.PropertyClickListener to the PropertyListLayout.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public PropertyListLayout (Context context)

public PropertyListLayout (Context context, AttributeSet attrs)

public PropertyListLayout (Context context, AttributeSet attrs, int defStyleAttr)

public PropertyListLayout (Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)

Public Methods

public MapstedListAdapter<PropertyListItem> getAdapter ()

Returns
  • Returns the adapter that was set to the recyclerView

public RecyclerView getListView ()

Returns
  • Returns the recyclerView that is used to show the properties.

public void setPropertyClickListener (PropertyListLayout.PropertyClickListener listener)

Sets a PropertyListLayout.PropertyClickListener to the PropertyListLayout.