本文整理了Java中android.widget.ListView.getPaddingEnd()
方法的一些代码示例,展示了ListView.getPaddingEnd()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ListView.getPaddingEnd()
方法的具体详情如下:
包路径:android.widget.ListView
类名称:ListView
方法名:getPaddingEnd
暂无
代码示例来源:origin: geniusgithub/AndroidDialer
/**
* Adds padding to the bottom of the given {@link ListView} so that the floating action button
* does not obscure any content.
*
* @param listView to add the padding to
* @param res valid resources object
*/
public static void addBottomPaddingToListViewForFab(ListView listView, Resources res) {
final int fabPadding = res.getDimensionPixelSize(
R.dimen.floating_action_button_list_bottom_padding);
listView.setPaddingRelative(listView.getPaddingStart(), listView.getPaddingTop(),
listView.getPaddingEnd(), listView.getPaddingBottom() + fabPadding);
listView.setClipToPadding(false);
}
代码示例来源:origin: geniusgithub/AndroidDialer
/**
* Adds padding to the bottom of the given {@link ListView} so that the floating action button
* does not obscure any content.
*
* @param listView to add the padding to
* @param res valid resources object
*/
public static void addBottomPaddingToListViewForFab(ListView listView, Resources res) {
final int fabPadding = res.getDimensionPixelSize(
R.dimen.floating_action_button_list_bottom_padding);
listView.setPaddingRelative(listView.getPaddingStart(), listView.getPaddingTop(),
listView.getPaddingEnd(), listView.getPaddingBottom() + fabPadding);
listView.setClipToPadding(false);
}
}
代码示例来源:origin: geniusgithub/AndroidDialer
listView.getPaddingStart(),
paddingTop,
listView.getPaddingEnd(),
listView.getPaddingBottom());
内容来源于网络,如有侵权,请联系作者删除!