Android HeaderViewListAdapter - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android HeaderViewListAdapter class.

This code example shows how to use the following methods:getWrappedAdapter
		CacheAdapter<?> cacheAdapter = null;
		if (adapter instanceof CacheAdapter) {
	        cacheAdapter = (CacheAdapter<?>)adapter;
		} else if (adapter instanceof HeaderViewListAdapter) {
			HeaderViewListAdapter headerViewAdapter = (HeaderViewListAdapter)adapter;
			if (headerViewAdapter.getWrappedAdapter() instanceof CacheAdapter<?>) {
				cacheAdapter = (CacheAdapter<?>)headerViewAdapter.getWrappedAdapter();
			} 
		} 
		return cacheAdapter;
	} 
} 
6
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:getWrappedAdapter
		CacheAdapter<?> cacheAdapter = null;
		if (adapter instanceof CacheAdapter) {
	        cacheAdapter = (CacheAdapter<?>)adapter;
		} else if (adapter instanceof HeaderViewListAdapter) {
			HeaderViewListAdapter headerViewAdapter = (HeaderViewListAdapter)adapter;
			if (headerViewAdapter.getWrappedAdapter() instanceof CacheAdapter<?>) {
				cacheAdapter = (CacheAdapter<?>)headerViewAdapter.getWrappedAdapter();
			} 
		} 
		return cacheAdapter;
	} 
} 
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:getWrappedAdapter
		BaseAdapter baseAdapter = null;
		if (adapter instanceof BaseAdapter) {
			baseAdapter = (BaseAdapter)adapter;
		} else if (adapter instanceof HeaderViewListAdapter) {
			HeaderViewListAdapter headerViewAdapter = (HeaderViewListAdapter)adapter;
			if (headerViewAdapter.getWrappedAdapter() instanceof BaseAdapter) {
				baseAdapter = (BaseAdapter)headerViewAdapter.getWrappedAdapter();
			} 
		} 
		 
		return baseAdapter;
	} 
	 
	public static CacheAdapter<?> getCacheAdapter(Adapter adapter) {
		if (adapter == null) {
			return null; 
		} 
		CacheAdapter<?> cacheAdapter = null;
		if (adapter instanceof CacheAdapter<?>) {
	        cacheAdapter = (CacheAdapter<?>)adapter;
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
        setModal(true);
        setInputMethodMode(PopupWindow.INPUT_METHOD_NOT_NEEDED);
        setHeight(ViewGroup.LayoutParams.WRAP_CONTENT);
        setOnItemClickListener(this);
 
        setAdapter(new HeaderViewListAdapter(null, null, mAdapter));
    } 
 
    /** 
     * @return Whether a navigation popup is valid for the given page. 
     */ 
    public boolean shouldBeShown() { 
        return mHistory.getEntryCount() > 0;
    } 
 
    @Override 
    public void show() { 
        if (mNativeNavigationPopup == 0) initializeNative();
        super.show(); 
    } 
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:getWrappedAdapter
		BaseAdapter baseAdapter = null;
		if (adapter instanceof BaseAdapter) {
			baseAdapter = (BaseAdapter)adapter;
		} else if (adapter instanceof HeaderViewListAdapter) {
			HeaderViewListAdapter headerViewAdapter = (HeaderViewListAdapter)adapter;
			if (headerViewAdapter.getWrappedAdapter() instanceof BaseAdapter) {
				baseAdapter = (BaseAdapter)headerViewAdapter.getWrappedAdapter();
			} 
		} 
		 
		return baseAdapter;
	} 
	 
	public static BaseListAdapter<?> getBaseListAdapter(Adapter adapter) {
		if (adapter == null) {
			return null; 
		} 
		 
		BaseListAdapter<?> baseListAdapter = null;
		if (adapter instanceof BaseListAdapter<?>) {
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:getWrappedAdapter
     */ 
    public static void addQuickActionToList(final ListView list,final ActionItem []actions,final int vid) {
        ListAdapter la = list.getAdapter();
        if(la instanceof HeaderViewListAdapter) {
            HeaderViewListAdapter hvla =(HeaderViewListAdapter)la;
            la = hvla.getWrappedAdapter();
        } 
        System.out.println("la="+ la);
        final BaseAdapter adapter = (BaseAdapter)la;
        LocalSocialAdapter temp = null;
        if(adapter instanceof LocalSocialAdapter) {
            temp = (LocalSocialAdapter)adapter;
             
        } 
        final LocalSocialAdapter lsa = temp;
        list.setOnItemClickListener(new AdapterView.OnItemClickListener() {
            public void onItemClick(AdapterView<?> parent, View view, int id, long position) {
                 
                QuickAction mQuickAction = new QuickAction(view);
                Object known;
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:getWrappedAdapter
 
	public void setListView(ListView _list) {
		list = _list;
		HeaderViewListAdapter ha = (HeaderViewListAdapter) _list
				.getAdapter();
		MyAdapter ad = (MyAdapter)ha.getWrappedAdapter();
		sectionIndexter = (SectionIndexer) ad;
		 
	} 
 
	public void setTextView(TextView mDialogText) {
		this.mDialogText = mDialogText;
	} 
 
	public boolean onTouchEvent(MotionEvent event) {
 
		super.onTouchEvent(event);
		int i = (int) event.getY();
 
		int idx = i / (getMeasuredHeight() / l.length);
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:getWrappedAdapter
 
    public void setListView(ListView _list) {
        list = _list;
        HeaderViewListAdapter ha = (HeaderViewListAdapter) _list
                .getAdapter();
        LetterlistAdapter ad = (LetterlistAdapter)ha.getWrappedAdapter();
        sectionIndexter = (SectionIndexer) ad;
 
    } 
 
    public void setTextView(TextView mDialogText) {
        this.mDialogText = mDialogText;
    } 
 
    public boolean onTouchEvent(MotionEvent event) {
        super.onTouchEvent(event);
 
        int y = (int) event.getY();
        int idy = y / (getMeasuredHeight() / letters.length);
        if (idy >= letters.length) {
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java

Related Android HeaderViewListAdapter Questions & Answers:

See Code Examples for Android HeaderViewListAdapter Methods: