ListView setDivider - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for ListView setDivider method.

This code example shows how to use the following methods: getContext, setDivider, setSelector
	 
	public static void setListViewStyle(ListView listView) {
		if (listView == null) {
			return; 
		} 
		Theme theme = ThemeUtil.createTheme(listView.getContext());
		listView.setDivider(theme.getDrawable("line_seperator"));
		listView.setSelector(theme.getDrawableByColor("selector_list_item"));
	} 
	 
	public static void setListViewGap(View gapView) {
		if (gapView == null) {
			return; 
		} 
		Theme theme = ThemeUtil.createTheme(gapView.getContext());
		gapView.setBackgroundDrawable(theme.getDrawable("selector_bg_gap"));
		TextView tvLoading = (TextView)gapView.findViewById(R.id.tvLoading);
		tvLoading.setTextColor(theme.getColor("content"));
	} 
	 
Full Snippet Info
7
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: setDescendantFocusability, setFastScrollEnabled, setSmoothScrollbarEnabled, setTranscriptMode, setAdapter
    @Override 
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.v2andlib_fragment_list, null);
        ListView list = (ListView) view.findViewById(android.R.id.list);
        list.setDivider(null);
        list.setDescendantFocusability(ListView.FOCUS_BEFORE_DESCENDANTS);
        list.setFastScrollEnabled(false);
        list.setSmoothScrollbarEnabled(true);
        list.setItemsCanFocus(false);
        list.setTranscriptMode(ListView.TRANSCRIPT_MODE_ALWAYS_SCROLL);
        mAdapter = new ArrayAdapter<String>(getActivity(), 
                android.R.layout.simple_dropdown_item_1line, new ArrayList<String>());
        list.setAdapter(mAdapter);
        return view;
    } 
 
 
    @Override 
    public void onClick(View v) {
Full Snippet Info
7
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: getContext, setDivider, setSelector
	 
	public static void setListViewStyle(ListView listView) {
		if (listView == null) {
			return; 
		} 
		Theme theme = ThemeUtil.createTheme(listView.getContext());
		listView.setDivider(theme.getDrawable("line_seperator"));
		listView.setSelector(theme.getDrawableByColor("selector_list_item"));
	} 
	 
	public static void setListViewGap(View gapView) {
		if (gapView == null) {
			return; 
		} 
		Theme theme = ThemeUtil.createTheme(gapView.getContext());
		gapView.setBackgroundDrawable(theme.getDrawable("selector_bg_gap"));
		TextView tvLoading = (TextView)gapView.findViewById(R.id.tvLoading);
		tvLoading.setTextColor(theme.getColor("content"));
	} 
	 
Full Snippet Info
6
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE

Related ListView setDivider Questions & Answers:

setDivider Method Overview
Sets the drawable that will be drawn between each item in the list.
See Code Examples for other Android ListView Methods: