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);
}
});
}
Aggregations