package com.zeapo.pwdstore; import android.app.Activity; import android.content.Context; import android.os.Bundle; import android.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.AbsListView; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.ListAdapter; import android.widget.RelativeLayout; import android.widget.TextView; import com.zeapo.pwdstore.dummy.DummyContent; import java.util.List; /** * A fragment representing a list of Items. *
* Large screen devices (such as tablets) are supported by replacing the ListView * with a GridView. * * Activities containing this fragment MUST implement the {@link Callbacks} * interface. */ public class PasswordFragment extends Fragment implements AbsListView.OnItemClickListener { private OnFragmentInteractionListener mListener; /** * The fragment's ListView/GridView. */ private AbsListView mListView; /** * The Adapter which will be used to populate the ListView/GridView with * Views. */ private ListAdapter mAdapter; // TODO: Rename and change types of parameters public static PasswordFragment newInstance(String param1, String param2) { PasswordFragment fragment = new PasswordFragment(); Bundle args = new Bundle(); fragment.setArguments(args); return fragment; } /** * Mandatory empty constructor for the fragment manager to instantiate the * fragment (e.g. upon screen orientation changes). */ public PasswordFragment() { } @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (getArguments() != null) { } String[] values = new String[] { "NOT", "YET", "IMPLEMENTED" }; // TODO: Change Adapter to display your content mAdapter = new MySimpleArrayAdapter(getActivity(), values); } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_password, container, false); // Set the adapter mListView = (AbsListView) view.findViewById(android.R.id.list); ((AdapterView