1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
public class FragmentAll extends MyFragmentTab {
public FragmentAll() {
super();
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup group,
Bundle saved) {
return inflater.inflate(R.layout.frag_all, group, false);
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
super.onCreate(savedInstanceState);
Cursor crf = obdd.getAllOperations();
if (crf != null) {
adapter = new SimpleCursorAdapter(getSherlockActivity(),
R.layout.affichage_item_all, crf, new String[] { "montant",
"type", "name", "raison" }, new int[] {
R.id.montant_view, R.id.type_op, R.id.nom,
R.id.raison }, 0);
setListAdapter(adapter);
}
}
} |
Partager