|
@@ -1,12 +1,13 @@
|
|
|
package de.tudarmstadt.informatik.hostage.ui2.adapter;
|
|
|
|
|
|
+import android.content.Context;
|
|
|
+import android.view.View;
|
|
|
+import android.widget.TextView;
|
|
|
+
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
|
|
|
-import android.content.Context;
|
|
|
-import android.view.View;
|
|
|
-import android.widget.TextView;
|
|
|
import de.tudarmstadt.informatik.hostage.R;
|
|
|
import de.tudarmstadt.informatik.hostage.ui2.model.ExpandableListItem;
|
|
|
|
|
@@ -37,8 +38,12 @@ public class RecordListAdapter extends ExpandableListAdapter {
|
|
|
@Override
|
|
|
public void configureSectionHeaderView(View sectionHeader, int section) {
|
|
|
int headerLabelID = R.id.sectionHeaderTitle;
|
|
|
+ int valueLabelID = R.id.sectionHeaderValue;
|
|
|
TextView tView = (TextView) sectionHeader.findViewById(headerLabelID);
|
|
|
+ TextView vView = (TextView) sectionHeader.findViewById(valueLabelID);
|
|
|
+ int value = this.getChildrenCount(section);
|
|
|
tView.setText(this._sectionHeader.get(section));
|
|
|
+ vView.setText("" + value);
|
|
|
}
|
|
|
|
|
|
@Override
|