List of usage examples for android.widget RelativeLayout setTag
public void setTag(int key, final Object tag)
From source file:com.nadmm.airports.aeronav.ChartsDownloadFragment.java
protected View addTppVolumeRow(LinearLayout layout, String tppVolume, int total) { if (layout.getChildCount() > 0) { addSeparator(layout);/*from w w w .j ava2s .c o m*/ } RelativeLayout row = (RelativeLayout) inflate(R.layout.list_item_with_progressbar); TextView tv = (TextView) row.findViewById(R.id.item_label); tv.setText(tppVolume); tv = (TextView) row.findViewById(R.id.item_value); tv.setText(String.format("%d charts", total)); row.setTag(R.id.DTPP_VOLUME_NAME, tppVolume); row.setTag(R.id.DTPP_CHART_TOTAL, total); showStatus(row, 0, total); layout.addView(row, new RelativeLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT)); mVolumeRowMap.put(tppVolume, row); getChartCount(mTppCycle, tppVolume); return row; }