Search in sources :

Example 1 with ConversationAdapter

use of com.abewy.android.apps.klyph.adapter.ConversationAdapter in project Klyph by jonathangerbaud.

the class ConversationFragment method onViewCreated.

@Override
public void onViewCreated(View view, Bundle savedInstanceState) {
    MultiObjectAdapter adapter = KlyphPreferences.areBannerAdsEnabled() ? new ConversationAdapter(getListView()) : new MultiObjectAdapter(getListView());
    setListAdapter(adapter);
    registerForContextMenu(getListView());
    defineEmptyText(R.string.empty_list_no_message);
    getListView().setStackFromBottom(true);
    getListView().setDrawSelectorOnTop(false);
    getListView().setSelector(R.drawable.transparent_selector);
    // getListView().setTranscriptMode(AbsListView.TRANSCRIPT_MODE_ALWAYS_SCROLL);
    setListVisible(false);
    setRequestType(Query.MESSAGES);
    setLoadingObjectAsFirstItem(true);
    super.onViewCreated(view, savedInstanceState);
}
Also used : MultiObjectAdapter(com.abewy.android.apps.klyph.adapter.MultiObjectAdapter) ConversationAdapter(com.abewy.android.apps.klyph.adapter.ConversationAdapter)

Aggregations

ConversationAdapter (com.abewy.android.apps.klyph.adapter.ConversationAdapter)1 MultiObjectAdapter (com.abewy.android.apps.klyph.adapter.MultiObjectAdapter)1