Search in sources :

Example 6 with RecyclerLayoutManager

use of run.wallet.iota.ui.RecyclerLayoutManager in project run-wallet-android by runplay.

the class WalletTransfersFragment method onViewCreated.

@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
    super.onViewCreated(view, savedInstanceState);
    recyclerView.setLayoutManager(new RecyclerLayoutManager(getActivity(), LinearLayoutManager.VERTICAL, false));
    recyclerView.setAdapter(new RecyclerView.Adapter() {

        @Override
        public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
            return null;
        }

        @Override
        public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
        }

        @Override
        public int getItemCount() {
            return 0;
        }
    });
    NavigationView navigationView = getActivity().findViewById(R.id.nav_view);
    navigationView.getMenu().findItem(R.id.nav_wallet).setChecked(true);
    yesButton.setOnClickListener(new View.OnClickListener() {

        @Override
        public void onClick(View v) {
            GetFirstLoadRequestHandler.setUserConfirm(Store.getCurrentSeed().id, true);
            confirmPod.setVisibility(View.GONE);
            firstLoadPod.setVisibility(View.VISIBLE);
        }
    });
    noButton.setOnClickListener(new View.OnClickListener() {

        @Override
        public void onClick(View v) {
            GetFirstLoadRequestHandler.setUserConfirm(Store.getCurrentSeed().id, false);
            confirmPod.setVisibility(View.GONE);
            firstLoadPod.setVisibility(View.VISIBLE);
        }
    });
}
Also used : RecyclerLayoutManager(run.wallet.iota.ui.RecyclerLayoutManager) NavigationView(android.support.design.widget.NavigationView) ViewGroup(android.view.ViewGroup) RecyclerView(android.support.v7.widget.RecyclerView) NavigationView(android.support.design.widget.NavigationView) BindView(butterknife.BindView) View(android.view.View) RecyclerView(android.support.v7.widget.RecyclerView) TextView(android.widget.TextView)

Aggregations

RecyclerLayoutManager (run.wallet.iota.ui.RecyclerLayoutManager)6 RecyclerView (android.support.v7.widget.RecyclerView)4 View (android.view.View)4 TextView (android.widget.TextView)4 BindView (butterknife.BindView)4 NavigationView (android.support.design.widget.NavigationView)2 AppCompatActivity (android.support.v7.app.AppCompatActivity)2 Editable (android.text.Editable)1 TextWatcher (android.text.TextWatcher)1 ViewGroup (android.view.ViewGroup)1 ListView (android.widget.ListView)1 Nodes (run.wallet.iota.model.Nodes)1 AddNodesListAdapter (run.wallet.iota.ui.adapter.AddNodesListAdapter)1