Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void onAttach(Context context) {
- super.onAttach(context);
- Bundle bundle = getActivity().getIntent().getExtras();
- if(bundle!=null) {
- mDeposit = (Deposit) bundle.getSerializable(DEPOSIT_INFO);
- }
- }
- @Override
- public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
- View view = inflater.inflate(R.layout.fragment_deposit, container, false);
- mCustomTopBar = (CustomLoggedTopBar) view.findViewById(R.id.deposit_topbar);
- mChatArea = (LinearLayout) view.findViewById(R.id.deposit_chat);
- mBankName = (TextView) view.findViewById(R.id.deposit_bank_name);
- mBankCode = (TextView) view.findViewById(R.id.deposit_bank_code);
- mAgency = (CustomDepositInfoRow) view.findViewById(R.id.deposit_agency);
- mAccount = (CustomDepositInfoRow) view.findViewById(R.id.deposit_account);
- mFavored = (CustomDepositInfoRow) view.findViewById(R.id.deposit_favored);
- mCnpj = (CustomDepositInfoRow) view.findViewById(R.id.deposit_cnpj);
- mCancelBtn = (Button) view.findViewById(R.id.deposit_cancel);
- mBankImage = (ImageView) view.findViewById(R.id.deposit_bank_image);
- return view;
- }
- @Override
- public void onResume() {
- super.onResume();
- populateView();
- }
- private void populateView(){
- mBankName.setText(mDeposit.getPaymentBankName());
- mBankCode.setText(mDeposit.getPaymentBankCode());
- mAgency.setValue(mDeposit.getPaymentBankAgency());
- mAccount.setValue(mDeposit.getPaymentBankAccount());
- mFavored.setValue(mDeposit.getPaymentBeneficiaryName());
- mCnpj.setValue(mDeposit.getPaymentBeneficiaryCNPJ());
- // setBankImage(mWithdraw.getPaymentBankCode());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement