use of cn.qqtheme.framework.widget.HorizontalListView in project AndroidPicker by gzu-liyujiang.
the class FilePicker method makeFooterView.
@Nullable
@Override
protected View makeFooterView() {
LinearLayout rootLayout = new LinearLayout(activity);
rootLayout.setLayoutParams(new LinearLayout.LayoutParams(MATCH_PARENT, WRAP_CONTENT));
rootLayout.setOrientation(LinearLayout.VERTICAL);
rootLayout.setBackgroundColor(Color.WHITE);
View lineView = new View(activity);
lineView.setLayoutParams(new LinearLayout.LayoutParams(MATCH_PARENT, 1));
lineView.setBackgroundColor(0xFFDDDDDD);
rootLayout.addView(lineView);
HorizontalListView pathView = new HorizontalListView(activity);
int height = ConvertUtils.toPx(activity, 30);
pathView.setLayoutParams(new LinearLayout.LayoutParams(MATCH_PARENT, height));
pathView.setAdapter(pathAdapter);
pathView.setBackgroundColor(Color.WHITE);
pathView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
refreshCurrentDirPath(pathAdapter.getItem(position));
}
});
rootLayout.addView(pathView);
return rootLayout;
}
Aggregations