Android Open Source - NFCReader Transactions Fragment






From Project

Back to project page NFCReader.

License

The source code is released under:

GNU General Public License

If you think the Android project NFCReader listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package us.xingrz.nfc.ui;
//  w  w  w  . ja  v a 2 s .  c om
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import android.support.v4.app.Fragment;

import us.xingrz.nfc.R;
import us.xingrz.nfc.yct.YctTransaction;

public class TransactionsFragment extends Fragment {

    private View rootView;
    private ReaderActivity activity;

    private TransactionListView transactionListView;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        rootView = inflater.inflate(R.layout.transactions_fragment, container, false);
        activity = (ReaderActivity) getActivity();

        transactionListView = (TransactionListView) rootView.findViewById(R.id.transactions);

        return rootView;
    }

    @Override
    public void onResume() {
        super.onResume();

        transactionListView.clear();

        for (YctTransaction transaction : activity.getYctInfo().getTransactions()) {
            transactionListView.add(transaction);
        }
    }

}




Java Source Code List

us.xingrz.nfc.ui.GeneralFragment.java
us.xingrz.nfc.ui.MainActivity.java
us.xingrz.nfc.ui.MetroFragment.java
us.xingrz.nfc.ui.ReaderActivity.java
us.xingrz.nfc.ui.TransactionListView.java
us.xingrz.nfc.ui.TransactionsFragment.java
us.xingrz.nfc.yct.YctInfo.java
us.xingrz.nfc.yct.YctReader.java
us.xingrz.nfc.yct.YctTransaction.java