use of android.support.v7.widget.DividerItemDecoration in project bitcoin-wallet by bitcoin-wallet.
the class BlockListFragment method onCreateView.
@Override
public View onCreateView(final LayoutInflater inflater, final ViewGroup container, final Bundle savedInstanceState) {
final View view = inflater.inflate(R.layout.block_list_fragment, container, false);
viewGroup = (ViewAnimator) view.findViewById(R.id.block_list_group);
recyclerView = (RecyclerView) view.findViewById(R.id.block_list);
recyclerView.setLayoutManager(new LinearLayoutManager(activity));
recyclerView.setAdapter(adapter);
recyclerView.addItemDecoration(new DividerItemDecoration(getActivity(), DividerItemDecoration.VERTICAL_LIST));
return view;
}
use of android.support.v7.widget.DividerItemDecoration in project bitcoin-wallet by bitcoin-wallet.
the class ExchangeRatesFragment method onCreateView.
@Override
public View onCreateView(final LayoutInflater inflater, final ViewGroup container, final Bundle savedInstanceState) {
final View view = inflater.inflate(R.layout.exchange_rates_fragment, container, false);
viewGroup = (ViewAnimator) view.findViewById(R.id.exchange_rates_list_group);
recyclerView = (RecyclerView) view.findViewById(R.id.exchange_rates_list);
recyclerView.setLayoutManager(new LinearLayoutManager(activity));
recyclerView.setAdapter(adapter);
recyclerView.addItemDecoration(new DividerItemDecoration(getActivity(), DividerItemDecoration.VERTICAL_LIST));
return view;
}
use of android.support.v7.widget.DividerItemDecoration in project bitcoin-wallet by bitcoin-wallet.
the class PeerListFragment method onCreateView.
@Override
public View onCreateView(final LayoutInflater inflater, final ViewGroup container, final Bundle savedInstanceState) {
final View view = inflater.inflate(R.layout.peer_list_fragment, container, false);
viewGroup = (ViewAnimator) view.findViewById(R.id.peer_list_group);
recyclerView = (RecyclerView) view.findViewById(R.id.peer_list);
recyclerView.setLayoutManager(new LinearLayoutManager(activity));
recyclerView.setAdapter(adapter);
recyclerView.addItemDecoration(new DividerItemDecoration(getActivity(), DividerItemDecoration.VERTICAL_LIST));
return view;
}
use of android.support.v7.widget.DividerItemDecoration in project bugzy by cpunq.
the class MyCasesFragment method onActivityCreated.
@Override
public void onActivityCreated(@Nullable Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
setupSortingView();
mViewModel = ViewModelProviders.of(this, mViewModelFactory).get(MyCasesViewModel.class);
if (mHomeActivityCallbacks != null) {
mHomeActivityCallbacks.onFragmentsActivityCreated(this, mFilterText, getTag());
}
this.subscribeToViewModel();
LinearLayoutManager mLinearLayoutManager = new LinearLayoutManager(getActivity());
mRecyclerView.setLayoutManager(mLinearLayoutManager);
mRecyclerView.addItemDecoration(new DividerItemDecoration(getActivity().getApplicationContext(), DividerItemDecoration.VERTICAL));
mAdapter = new CaseAdapter(mCases, this);
mRecyclerView.setAdapter(mAdapter);
// Load cases
mViewModel.loadCases(mFilter);
}
use of android.support.v7.widget.DividerItemDecoration in project bugzy by cpunq.
the class SearchActivity method setupViews.
private void setupViews() {
setSupportActionBar(mToolbar);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
prepareSearchEditText();
mSearchSuggestionAdapter = new SearchSuggestionAdapter(position -> {
if (mSearchSuggestions == null) {
return;
}
mViewModel.searchSuggestionSelected(mSearchSuggestions.get(position));
});
mSearchSuggestionView.setLayoutManager(new LinearLayoutManager(this));
mSearchSuggestionView.setAdapter(mSearchSuggestionAdapter);
mRecyclerView.setLayoutManager(new LinearLayoutManager(this));
mRecyclerView.addItemDecoration(new DividerItemDecoration(getApplicationContext(), DividerItemDecoration.VERTICAL));
mAdapter = new CaseAdapter(mCases, this);
mRecyclerView.setAdapter(mAdapter);
prepareSearchHistoryRecyclerView();
}
Aggregations