use of android.support.v7.widget.LinearLayoutManager in project Onboarding by eoinfogarty.
the class SceneThreeFragment method scrollRecycleViewTo.
private void scrollRecycleViewTo(RecyclerView recyclerView, int offset) {
LinearLayoutManager layoutManager = ((LinearLayoutManager) recyclerView.getLayoutManager());
layoutManager.scrollToPositionWithOffset(2, offset);
}
use of android.support.v7.widget.LinearLayoutManager in project cw-omnibus by commonsguy.
the class MainActivity method onCreate.
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
pager = (RecyclerView) findViewById(R.id.pager);
pager.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false));
snapperCarr.attachToRecyclerView(pager);
if (savedInstanceState != null) {
pickedDocument = savedInstanceState.getParcelable(STATE_PICKED);
if (pickedDocument != null) {
show(pickedDocument);
}
}
}
use of android.support.v7.widget.LinearLayoutManager in project photo-picker-plus-android by chute.
the class FragmentRoot method initView.
private void initView(View view) {
recyclerView = (RecyclerView) view.findViewById(R.id.gcRecyclerViewAssets);
recyclerView.setHasFixedSize(true);
if (displayType == DisplayType.LIST && filterType == PhotoFilterType.SOCIAL_MEDIA) {
final LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getActivity());
recyclerView.setLayoutManager(linearLayoutManager);
} else {
final GridLayoutManager gridLayoutManager = new GridLayoutManager(getActivity(), getResources().getInteger(R.integer.grid_columns_assets));
recyclerView.setLayoutManager(gridLayoutManager);
}
progressBar = (ProgressBar) view.findViewById(R.id.progressBar);
}
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());
}
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);
}
Aggregations