Search in sources :

Example 76 with DividerItemDecoration

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;
}
Also used : LinearLayoutManager(android.support.v7.widget.LinearLayoutManager) View(android.view.View) RecyclerView(android.support.v7.widget.RecyclerView)

Example 77 with DividerItemDecoration

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;
}
Also used : LinearLayoutManager(android.support.v7.widget.LinearLayoutManager) View(android.view.View) SearchView(android.widget.SearchView) RecyclerView(android.support.v7.widget.RecyclerView) TextView(android.widget.TextView)

Example 78 with DividerItemDecoration

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;
}
Also used : LinearLayoutManager(android.support.v7.widget.LinearLayoutManager) View(android.view.View) RecyclerView(android.support.v7.widget.RecyclerView) TextView(android.widget.TextView)

Example 79 with DividerItemDecoration

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);
}
Also used : CaseAdapter(com.bluestacks.bugzy.ui.common.CaseAdapter) LinearLayoutManager(android.support.v7.widget.LinearLayoutManager) DividerItemDecoration(android.support.v7.widget.DividerItemDecoration)

Example 80 with DividerItemDecoration

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();
}
Also used : Bundle(android.os.Bundle) KeyEvent(android.view.KeyEvent) ButterKnife(butterknife.ButterKnife) OnItemClickListener(com.bluestacks.bugzy.utils.OnItemClickListener) CaseAdapter(com.bluestacks.bugzy.ui.common.CaseAdapter) Intent(android.content.Intent) CaseDetailsActivity(com.bluestacks.bugzy.ui.casedetails.CaseDetailsActivity) BaseActivity(com.bluestacks.bugzy.ui.BaseActivity) IBinder(android.os.IBinder) Editable(android.text.Editable) DividerItemDecoration(android.support.v7.widget.DividerItemDecoration) MenuItem(android.view.MenuItem) InputMethodManager(android.view.inputmethod.InputMethodManager) BindView(butterknife.BindView) Inject(javax.inject.Inject) Resource(com.bluestacks.bugzy.data.model.Resource) Menu(android.view.Menu) R(com.bluestacks.bugzy.R) View(android.view.View) SearchSuggestion(com.bluestacks.bugzy.data.model.SearchSuggestion) Status(com.bluestacks.bugzy.data.model.Status) RecentSearch(com.bluestacks.bugzy.data.model.RecentSearch) ViewModelProvider(android.arch.lifecycle.ViewModelProvider) Case(com.bluestacks.bugzy.data.model.Case) UiThread(android.support.annotation.UiThread) InputType(android.text.InputType) LinearLayoutManager(android.support.v7.widget.LinearLayoutManager) ErrorView(com.bluestacks.bugzy.ui.common.ErrorView) ViewModelProviders(android.arch.lifecycle.ViewModelProviders) RecyclerView(android.support.v7.widget.RecyclerView) List(java.util.List) TextView(android.widget.TextView) Toolbar(android.support.v7.widget.Toolbar) Nullable(android.support.annotation.Nullable) EditorInfo(android.view.inputmethod.EditorInfo) EditText(android.widget.EditText) TextWatcher(android.text.TextWatcher) CaseAdapter(com.bluestacks.bugzy.ui.common.CaseAdapter) LinearLayoutManager(android.support.v7.widget.LinearLayoutManager) DividerItemDecoration(android.support.v7.widget.DividerItemDecoration)

Aggregations

LinearLayoutManager (android.support.v7.widget.LinearLayoutManager)73 RecyclerView (android.support.v7.widget.RecyclerView)42 View (android.view.View)36 TextView (android.widget.TextView)23 DefaultItemAnimator (android.support.v7.widget.DefaultItemAnimator)19 DividerItemDecoration (android.support.v7.widget.DividerItemDecoration)15 ImageView (android.widget.ImageView)14 DividerItemDecoration (com.wm.remusic.widget.DividerItemDecoration)9 Drawable (android.graphics.drawable.Drawable)8 DividerItemDecoration (de.madcyph3r.example.DividerItemDecoration)8 DividerItemDecoration (io.hefuyi.listener.widget.DividerItemDecoration)7 Nullable (android.support.annotation.Nullable)6 SwipeRefreshLayout (android.support.v4.widget.SwipeRefreshLayout)6 Context (android.content.Context)5 Toolbar (android.support.v7.widget.Toolbar)5 Intent (android.content.Intent)4 ActionBar (android.support.v7.app.ActionBar)4 DividerItemDecoration (com.lzy.demo.base.DividerItemDecoration)4 DividerItemDecoration (org.michenux.drodrolib.ui.recyclerview.DividerItemDecoration)4 TargetApi (android.annotation.TargetApi)3