Search in sources :

Example 6 with LinearLayoutManager

use of android.support.v7.widget.LinearLayoutManager in project cw-omnibus by commonsguy.

the class MainActivity method onCreate.

@Override
public void onCreate(Bundle icicle) {
    super.onCreate(icicle);
    setLayoutManager(new LinearLayoutManager(this));
    RecyclerView.ItemDecoration decor = new HorizontalDividerItemDecoration.Builder(this).color(getResources().getColor(R.color.primary)).build();
    getRecyclerView().addItemDecoration(decor);
    setAdapter(new IconicAdapter());
}
Also used : RecyclerView(android.support.v7.widget.RecyclerView) LinearLayoutManager(android.support.v7.widget.LinearLayoutManager)

Example 7 with LinearLayoutManager

use of android.support.v7.widget.LinearLayoutManager in project cw-omnibus by commonsguy.

the class MainActivity method onCreate.

@Override
public void onCreate(Bundle icicle) {
    super.onCreate(icicle);
    setLayoutManager(new LinearLayoutManager(this));
    adapter = new IconicAdapter();
    setAdapter(adapter);
}
Also used : LinearLayoutManager(android.support.v7.widget.LinearLayoutManager)

Example 8 with LinearLayoutManager

use of android.support.v7.widget.LinearLayoutManager in project cw-omnibus by commonsguy.

the class MainActivity method onCreate.

@Override
public void onCreate(Bundle icicle) {
    super.onCreate(icicle);
    setLayoutManager(new LinearLayoutManager(this));
    adapter = new IconicAdapter();
    setAdapter(adapter);
}
Also used : LinearLayoutManager(android.support.v7.widget.LinearLayoutManager)

Example 9 with LinearLayoutManager

use of android.support.v7.widget.LinearLayoutManager in project cw-omnibus by commonsguy.

the class MainActivity method onCreate.

@Override
public void onCreate(Bundle icicle) {
    super.onCreate(icicle);
    setLayoutManager(new LinearLayoutManager(this));
    setAdapter(new IconicAdapter());
}
Also used : LinearLayoutManager(android.support.v7.widget.LinearLayoutManager)

Example 10 with LinearLayoutManager

use of android.support.v7.widget.LinearLayoutManager in project cw-omnibus by commonsguy.

the class MainActivity method onCreate.

@Override
public void onCreate(Bundle icicle) {
    super.onCreate(icicle);
    setLayoutManager(new LinearLayoutManager(this));
    setAdapter(new IconicAdapter());
}
Also used : LinearLayoutManager(android.support.v7.widget.LinearLayoutManager)

Aggregations

LinearLayoutManager (android.support.v7.widget.LinearLayoutManager)1979 RecyclerView (android.support.v7.widget.RecyclerView)1087 View (android.view.View)824 TextView (android.widget.TextView)353 DefaultItemAnimator (android.support.v7.widget.DefaultItemAnimator)234 ArrayList (java.util.ArrayList)204 ImageView (android.widget.ImageView)186 Intent (android.content.Intent)150 Toolbar (android.support.v7.widget.Toolbar)134 DividerItemDecoration (android.support.v7.widget.DividerItemDecoration)131 BindView (butterknife.BindView)126 GridLayoutManager (android.support.v7.widget.GridLayoutManager)125 Bundle (android.os.Bundle)109 SwipeRefreshLayout (android.support.v4.widget.SwipeRefreshLayout)107 Nullable (android.support.annotation.Nullable)98 ViewGroup (android.view.ViewGroup)82 Context (android.content.Context)81 ItemTouchHelper (android.support.v7.widget.helper.ItemTouchHelper)81 AdapterView (android.widget.AdapterView)70 List (java.util.List)69