public class

TextViewFormCellFilterActivity

extends ListFormCellFilterActivity<V extends View, T>
java.lang.Object
   ↳ android.content.Context
     ↳ android.content.ContextWrapper
       ↳ android.view.ContextThemeWrapper
         ↳ android.app.Activity
           ↳ androidx.core.app.ComponentActivity
             ↳ androidx.activity.ComponentActivity
               ↳ androidx.fragment.app.FragmentActivity
                 ↳ androidx.appcompat.app.AppCompatActivity
                   ↳ com.sap.cloud.mobile.fiori.formcell.ListFormCellFilterActivity<V extends android.view.View, T>
                     ↳ com.sap.cloud.mobile.fiori.formcell.TextViewFormCellFilterActivity

Class Overview

A basic activity class which extends ListFormCellFilterActivity.

With this activity, structure of each row item will be:

  • Checkbox: Setting the check the true implies that the item is selected
  • TextView: Display the text for the item name
  • Application developer need to just create an object of this class and pass it to the ListPickerFormCell. The activity retrieves the list of available options and the selected item list from the base class ListFormCellFilterActivity

    Summary

    [Expand]
    Inherited Constants
    From class com.sap.cloud.mobile.fiori.formcell.ListFormCellFilterActivity
    From class android.app.Activity
    From class android.content.Context
    From interface android.content.ComponentCallbacks2
    [Expand]
    Inherited Fields
    From class android.app.Activity
    Public Constructors
    TextViewFormCellFilterActivity()
    Public Methods
    TextView onCreateView(int viewType, Context context)
    Create the view of type represented by viewType and context
    void setItemList(List<String> itemList)
    Protected Methods
    int getItemCount()
    How many types of View to be inflated in the list filter
    int getItemViewType(int position)
    Type of View to be inflated in the list filter at index represented by position
    void getItems(Bundle bundle)
    ListFormCellFilterActivity needs to restore the user defined data received through the intent.
    void onBindView(TextView view, int position)
    Bind the view for the data at position represented by position
    void onCreate(Bundle savedInstanceState)
    void saveItems(Intent intent)
    ListForm cell has two properties:
    • Utilizes ListFormCellFilterActivity to present list of items to choose from
    • Allows user to perform data binding and XMl binding by providing data into the declaring XML file.
    [Expand]
    Inherited Methods
    From class com.sap.cloud.mobile.fiori.formcell.ListFormCellFilterActivity
    From class androidx.appcompat.app.AppCompatActivity
    From class androidx.fragment.app.FragmentActivity
    From class androidx.activity.ComponentActivity
    From class androidx.core.app.ComponentActivity
    From class android.app.Activity
    From class android.view.ContextThemeWrapper
    From class android.content.ContextWrapper
    From class android.content.Context
    From class java.lang.Object
    From interface android.content.ComponentCallbacks
    From interface android.content.ComponentCallbacks2
    From interface android.view.KeyEvent.Callback
    From interface android.view.LayoutInflater.Factory
    From interface android.view.LayoutInflater.Factory2
    From interface android.view.View.OnCreateContextMenuListener
    From interface android.view.Window.Callback
    From interface androidx.activity.OnBackPressedDispatcherOwner
    From interface androidx.activity.contextaware.ContextAware
    From interface androidx.activity.result.ActivityResultCaller
    From interface androidx.activity.result.ActivityResultRegistryOwner
    From interface androidx.appcompat.app.ActionBarDrawerToggle.DelegateProvider
    From interface androidx.appcompat.app.AppCompatCallback
    From interface androidx.core.app.ActivityCompat.OnRequestPermissionsResultCallback
    From interface androidx.core.app.ActivityCompat.RequestPermissionsRequestCodeValidator
    From interface androidx.core.app.TaskStackBuilder.SupportParentable
    From interface androidx.core.view.KeyEventDispatcher.Component
    From interface androidx.lifecycle.HasDefaultViewModelProviderFactory
    From interface androidx.lifecycle.LifecycleOwner
    From interface androidx.lifecycle.ViewModelStoreOwner
    From interface androidx.savedstate.SavedStateRegistryOwner

    Public Constructors

    public TextViewFormCellFilterActivity ()

    Public Methods

    public TextView onCreateView (int viewType, Context context)

    Create the view of type represented by viewType and context

    Parameters
    viewType int
    context Context
    Returns
    • View

    public void setItemList (List<String> itemList)

    Protected Methods

    protected int getItemCount ()

    How many types of View to be inflated in the list filter

    Returns
    • int

    protected int getItemViewType (int position)

    Type of View to be inflated in the list filter at index represented by position

    Parameters
    position int
    Returns
    • int

    protected void getItems (Bundle bundle)

    ListFormCellFilterActivity needs to restore the user defined data received through the intent. To deserialize or un-parcel the data, ListFormCellFilterActivity call getItems(Bundle) method.

    Parameters
    bundle Bundle

    protected void onBindView (TextView view, int position)

    Bind the view for the data at position represented by position

    Parameters
    view View
    position int

    protected void onCreate (Bundle savedInstanceState)

    protected void saveItems (Intent intent)

    ListForm cell has two properties:

    • Utilizes ListFormCellFilterActivity to present list of items to choose from
    • Allows user to perform data binding and XMl binding by providing data into the declaring XML file.
    In order to present the user defined data to the ListFormCellFilterActivity, ListPickerFormCell has to store the data into intent. In order to store the data, ListPickerFormCell calls this method.

    Parameters
    intent Intent