-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHomeFragment.java
More file actions
56 lines (56 loc) · 1.82 KB
/
HomeFragment.java
File metadata and controls
56 lines (56 loc) · 1.82 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//import android.os.Bundle;
//import android.view.LayoutInflater;
//import android.view.View;
//import android.view.ViewGroup;
//
//public class HomeFragment extends Fragment{
//
// View view;
//
// String[] presidents = {
// "Dwight D. Eisenhower",
// "John F. Kennedy",
// "Lyndon B. Johnson",
// "Richard Nixon",
// "Gerald Ford",
// "Jimmy Carter",
// "Ronald Reagan",
// "George H. W. Bush",
// "Bill Clinton",
// "George W. Bush",
// "Barack Obama"
// };
//
// @Override
// public View onCreateView(LayoutInflater inflater, ViewGroup container,
// Bundle savedInstanceState) {
// // TODO Auto-generated method stub
// view = inflater.inflate(R.layout.fragment_tab1,container,false);
// Init();
// return view ;
// }
//
// protected void Init(){
//
// ListView list = (ListView)view.findViewById(android.R.id.list);
//
// list.setAdapter(new ArrayAdapter<String>(getActivity(),
// android.R.layout.simple_list_item_1, presidents));
// list.setOnItemClickListener(listener);
// }
//
// private OnItemClickListener listener = new OnItemClickListener() {
//
// @Override
// public void onItemClick(AdapterView<?> parent, View view, int position,
// long id) {
// // TODO Auto-generated method stub
// Intent intent = new Intent(getActivity(), ListContainActivity.class);
//
// intent.putExtra("PRESIDENTS_CONTENT",presidents[position]);
//
// getActivity().startActivity(intent);
// }
// };
//
//}