本文整理了Java中android.widget.ListView.setFooterDividersEnabled()
方法的一些代码示例,展示了ListView.setFooterDividersEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ListView.setFooterDividersEnabled()
方法的具体详情如下:
包路径:android.widget.ListView
类名称:ListView
方法名:setFooterDividersEnabled
暂无
代码示例来源:origin: tianshaojie/AndroidFine
public void withLoadMoreView() {
if (footerView == null) {
footerView = View.inflate(getContext(), R.layout.layout_load_more, null);
textView = (TextView) footerView.findViewById(R.id.text);
progressBar = (ProgressBar) footerView.findViewById(R.id.progress);
}
getRefreshableView().removeFooterView(footerView);
getRefreshableView().setFooterDividersEnabled(false);
setLoadMoreViewTextLoading();
getRefreshableView().addFooterView(footerView);
}
代码示例来源:origin: stackoverflow.com
ListView listView = getListView();
listView.setDivider(null);
listView.setDividerHeight(getResources().getDimensionPixelSize(R.dimen.divider_height));
listView.setHeaderDividersEnabled(true);
listView.setFooterDividersEnabled(true);
View padding = new View(getActivity());
listView.addHeaderView(padding);
listView.addFooterView(padding);
代码示例来源:origin: ugurcany/InfiniteListView
listView.setFooterDividersEnabled(false);
代码示例来源:origin: towavephone/MemoryCleaner
@Override public void initPreferenceListView(View view) {
ListView listView = (ListView) view.findViewById(android.R.id.list);
listView.setHorizontalScrollBarEnabled(false);
listView.setVerticalScrollBarEnabled(false);
listView.setDivider(
new ColorDrawable(getResources().getColor(R.color.grey)));
listView.setDividerHeight((int) getResources().getDimension(
R.dimen.preference_divider_height));
listView.setFooterDividersEnabled(false);
listView.setHeaderDividersEnabled(false);
}
代码示例来源:origin: corcoran/Hangar
@Override
protected void onCreate(Bundle savedInstanceState) {
prefs = new PrefsGet(getSharedPreferences("AppsWidget", Context.MODE_PRIVATE));
mContext = getApplicationContext();
extras = getIntent().getExtras();
super.onCreate(savedInstanceState);
setTitle(R.string.apps_widget_name);
setResult(RESULT_CANCELED);
getFragmentManager().beginTransaction().replace(android.R.id.content, new StatsWidgetFragment().newInstance()).commit();
ListView v = getListView();
v.setFooterDividersEnabled(false);
}
public static class StatsWidgetFragment extends PreferenceFragment {
代码示例来源:origin: corcoran/Hangar
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
prefs = new PrefsGet(getSharedPreferences("StatsWidget", Context.MODE_PRIVATE));
mContext = getApplicationContext();
extras = getIntent().getExtras();
setTitle(R.string.stats_widget_name);
setResult(RESULT_CANCELED);
getFragmentManager().beginTransaction().replace(android.R.id.content, new StatsWidgetFragment().newInstance()).commit();
ListView v = getListView();
v.setFooterDividersEnabled(false);
}
public static class StatsWidgetFragment extends PreferenceFragment {
代码示例来源:origin: ckcz123/PKUHelper-Android
@SuppressWarnings("unchecked")
@SuppressLint("InflateParams")
public Shows getShows() {
subActivity.getActionBar().setTitle("百讲演出");
subActivity.setContentView(R.layout.subactivity_listview);
subActivity.findViewById(R.id.subactivity_swipeRefreshLayout)
.setBackgroundColor(Color.parseColor("#feb772"));
listView = (ListView) subActivity.findViewById(R.id.subactivity_listview);
LayoutInflater layoutInflater = subActivity.getLayoutInflater();
View headerView = layoutInflater.inflate(R.layout.subactivity_listview_headerview, null);
ViewSetting.setImageResource(headerView, R.id.subactivity_listview_image, R.drawable.bjyc);
listView.addHeaderView(headerView);
listView.addFooterView(layoutInflater.inflate(R.layout.subactivity_listview_footerview, null));
listView.setHeaderDividersEnabled(false);
listView.setFooterDividersEnabled(false);
arrayList = new ArrayList<ShowInfo>();
listView.setAdapter(new SimpleAdapter(subActivity,
new ArrayList<HashMap<String, String>>(),
R.layout.subactivity_listview_item, new String[]{}, new int[]{}));
new RequestingTask(subActivity, "正在获取百讲演出信息...",
Constants.domain + "/pkuhelper/getshows.php", Constants.REQUEST_SUBACTIVITY_SHOWS)
.execute(new ArrayList<Parameters>());
return this;
}
代码示例来源:origin: ckcz123/PKUHelper-Android
@SuppressLint("InflateParams")
@SuppressWarnings("unchecked")
public Lecture showLecture() {
subActivity.setContentView(R.layout.subactivity_listview);
subActivity.getActionBar().setTitle("讲座预告");
subActivity.findViewById(R.id.subactivity_swipeRefreshLayout)
.setBackgroundColor(Color.parseColor("#34afd3"));
listView = (ListView) subActivity.findViewById(R.id.subactivity_listview);
LayoutInflater layoutInflater = subActivity.getLayoutInflater();
View headerView = layoutInflater.inflate(R.layout.subactivity_listview_headerview, null);
ViewSetting.setImageResource(headerView, R.id.subactivity_listview_image, R.drawable.jzyg);
listView.addHeaderView(headerView);
listView.addFooterView(layoutInflater.inflate(R.layout.subactivity_listview_footerview, null));
listView.setHeaderDividersEnabled(false);
listView.setFooterDividersEnabled(false);
listView.setAdapter(new SimpleAdapter(subActivity,
new ArrayList<HashMap<String, String>>(),
R.layout.subactivity_listview_item, new String[]{}, new int[]{}));
new RequestingTask(subActivity, "正在获取讲座信息...",
Constants.domain + "/services/pkuhelper/lectures.php",
Constants.REQUEST_SUBACTIVITY_LECTURE).execute(new ArrayList<Parameters>());
return this;
}
代码示例来源:origin: stackoverflow.com
listView.setBackgroundResource(R.color.colorAccent);
listView.setPadding(10, 20, 10, 15);
listView.setFooterDividersEnabled(true);
listView.setHeaderDividersEnabled(true);
代码示例来源:origin: ckcz123/PKUHelper-Android
ArrayList<HashMap<String, String>> arrayList = new ArrayList<HashMap<String, String>>();
listView.setHeaderDividersEnabled(false);
listView.setFooterDividersEnabled(false);
listView.setAdapter(new SimpleAdapter(subActivity, arrayList,
R.layout.subactivity_listview_item, new String[]{}, new int[]{}));
代码示例来源:origin: ckcz123/PKUHelper-Android
listView.setFooterDividersEnabled(false);
代码示例来源:origin: ckcz123/PKUHelper-Android
listView.setFooterDividersEnabled(false);
代码示例来源:origin: andforce/iBeebo
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.abs_userlist_listview_layout, container, false);
// mToolbar = (Toolbar) view.findViewById(R.id.baseToolBar);
empty = (TextView) view.findViewById(R.id.empty);
mSwipeRefreshLayout = ViewUtility.findViewById(view, R.id.userListSRL);
mSwipeRefreshLayout.setOnlyPullRefersh();
mSwipeRefreshLayout.setEnableSount(SettingUtils.getEnableSound());
pullToRefreshListView = (ListView) view.findViewById(R.id.listView);
// mSwipeRefreshLayout.setOnRefreshListener(userOnRefreshListener);
mSwipeRefreshLayout.setOnRefreshLoadMoreListener(userOnRefreshListener);
// pullToRefreshListView.setOnLastItemVisibleListener(new UserListOnLastItemVisibleListener());
// pullToRefreshListView.setOnPullEventListener(getPullEventListener());
pullToRefreshListView.setOnScrollListener(new UserListOnScrollListener());
pullToRefreshListView.setOnItemClickListener(new UserListOnItemClickListener());
pullToRefreshListView.setFooterDividersEnabled(false);
dismissFooterView();
userListAdapter = new UserListAdapter(AbstractUserListFragment.this, bean.getUsers(), getListView());
pullToRefreshListView.setAdapter(userListAdapter);
return view;
}
代码示例来源:origin: andforce/iBeebo
listView.setFooterDividersEnabled(false);
listView.setChoiceMode(AbsListView.CHOICE_MODE_SINGLE);
listView.setOnItemClickListener(commentOnItemClickListener);
代码示例来源:origin: ckcz123/PKUHelper-Android
listView.addFooterView(footerView);
listView.setHeaderDividersEnabled(false);
listView.setFooterDividersEnabled(false);
ArrayList<HashMap<String, String>> hashMaps = new ArrayList<HashMap<String, String>>();
listView.setAdapter(new SimpleAdapter(pkuHoleActivity, hashMaps,
代码示例来源:origin: ckcz123/PKUHelper-Android
ViewSetting.setTextView(footerView, R.id.nc_setsource_hint_2, Html.fromHtml("<u>" + Constants.domain + "/pkuhelper/nc/post/</u>"));
listView.setHeaderDividersEnabled(false);
listView.setFooterDividersEnabled(false);
listView.setAdapter(new BaseAdapter() {
代码示例来源:origin: andforce/iBeebo
listView.setFooterDividersEnabled(false);
listView.setChoiceMode(AbsListView.CHOICE_MODE_SINGLE);
内容来源于网络,如有侵权,请联系作者删除!