Search in sources :

Example 6 with HierarchyElement

use of org.odk.collect.android.logic.HierarchyElement in project collect by opendatakit.

the class HierarchyListAdapter method onBindViewHolder.

@Override
public void onBindViewHolder(@NonNull ViewHolder holder, int position) {
    HierarchyElement element = hierarchyElements.get(position);
    holder.bind(element, listener);
}
Also used : HierarchyElement(org.odk.collect.android.logic.HierarchyElement)

Aggregations

HierarchyElement (org.odk.collect.android.logic.HierarchyElement)6 FormIndex (org.javarosa.core.model.FormIndex)5 HierarchyListAdapter (org.odk.collect.android.adapters.HierarchyListAdapter)4 JavaRosaException (org.odk.collect.android.exception.JavaRosaException)3 GroupDef (org.javarosa.core.model.GroupDef)2 FormEntryCaption (org.javarosa.form.api.FormEntryCaption)2 FormEntryPrompt (org.javarosa.form.api.FormEntryPrompt)2 FormController (org.odk.collect.android.javarosawrapper.FormController)2 TextView (android.widget.TextView)1 Toolbar (androidx.appcompat.widget.Toolbar)1 ViewModelProvider (androidx.lifecycle.ViewModelProvider)1 DividerItemDecoration (androidx.recyclerview.widget.DividerItemDecoration)1 LinearLayoutManager (androidx.recyclerview.widget.LinearLayoutManager)1 TreeReference (org.javarosa.core.model.instance.TreeReference)1 FormEntryViewModel (org.odk.collect.android.formentry.FormEntryViewModel)1 FormController (org.odk.collect.android.logic.FormController)1