Search in sources :

Example 6 with RecyclerListView

use of net.iGap.module.customView.RecyclerListView in project iGap-Android by KianIranian-STDG.

the class FragmentStoryViews method createView.

@Override
public View createView(Context context) {
    fragmentView = new FrameLayout(context);
    FrameLayout frameLayout = (FrameLayout) fragmentView;
    recyclerListView = new RecyclerListView(context);
    recyclerListView.setLayoutManager(new LinearLayoutManager(context, RecyclerView.VERTICAL, false));
    recyclerListView.setBackgroundColor(Color.WHITE);
    recyclerListView.setAdapter(adapter = new ListAdapter());
    frameLayout.addView(recyclerListView, LayoutCreator.createFrame(LayoutCreator.MATCH_PARENT, LayoutCreator.WRAP_CONTENT));
    return fragmentView;
}
Also used : FrameLayout(android.widget.FrameLayout) RecyclerListView(net.iGap.module.customView.RecyclerListView) LinearLayoutManager(androidx.recyclerview.widget.LinearLayoutManager)

Aggregations

FrameLayout (android.widget.FrameLayout)6 LinearLayoutManager (androidx.recyclerview.widget.LinearLayoutManager)6 RecyclerListView (net.iGap.module.customView.RecyclerListView)6 Nullable (androidx.annotation.Nullable)5 View (android.view.View)3 ProgressBar (android.widget.ProgressBar)3 RecyclerView (androidx.recyclerview.widget.RecyclerView)3 Drawable (android.graphics.drawable.Drawable)2 ContextThemeWrapper (android.view.ContextThemeWrapper)2 LinearLayout (android.widget.LinearLayout)2 HelperToolbar (net.iGap.helper.HelperToolbar)2 IconView (net.iGap.messenger.ui.components.IconView)2 Toolbar (net.iGap.messenger.ui.toolBar.Toolbar)2 TextView (android.widget.TextView)1 SwipeRefreshLayout (androidx.swiperefreshlayout.widget.SwipeRefreshLayout)1 BackDrawable (net.iGap.messenger.ui.toolBar.BackDrawable)1 ToolbarItems (net.iGap.messenger.ui.toolBar.ToolbarItems)1