-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathintermediate.java
More file actions
114 lines (85 loc) · 2.95 KB
/
intermediate.java
File metadata and controls
114 lines (85 loc) · 2.95 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
package com.vivek.github;
import com.vivek.github.Intermediate.BranchMore;
import com.vivek.github.Intermediate.Commiting;
import com.vivek.github.Intermediate.Conflicts;
import com.vivek.github.Intermediate.Diff;
import com.vivek.github.Intermediate.Fetch;
import com.vivek.github.Intermediate.Forking;
import com.vivek.github.Intermediate.Log;
import com.vivek.github.Intermediate.Merging;
import com.vivek.github.Intermediate.Tag;
import com.vivek.github.Intermediate.Undo;
import android.app.ListActivity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.appcompat.R.color;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.Toast;
public class intermediate extends ListActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
String[] item = {"Forking/cloning a repo" , "About git status/diff/add commands","More about branch", "Commiting/pushing " ,"Undoing changes and commits", "Learn about git log/show/describe" , "Learn about merging",
"Learn about conflicts" , "Learn about tags" , "Learn about git fetch/pull/push" };
ListView lv = getListView();
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this , android.R.layout.simple_list_item_1 , item);
lv.setAdapter(adapter);
lv.setOnItemClickListener(new OnItemClickListener(){
@Override
public void onItemClick(AdapterView<?> parent, View view,
int position, long id) {
// TODO Auto-generated method stub
switch(position){
case 0:
Intent n = new Intent(intermediate.this , Forking.class);
startActivity(n);
break;
case 1:
Intent g = new Intent(intermediate.this , Diff.class);
startActivity(g);
break;
case 2:
Intent b = new Intent(intermediate.this , BranchMore.class);
startActivity(b);
break;
case 3:
Intent cop = new Intent(intermediate.this , Commiting.class);
startActivity(cop);
break;
case 4:
Intent un = new Intent(intermediate.this , Undo.class);
startActivity(un);
break;
case 5:
Intent lo = new Intent(intermediate.this , Log.class);
startActivity(lo);
break;
case 6:
Intent me = new Intent(intermediate.this , Merging.class);
startActivity(me);
break;
case 7:
Intent con = new Intent(intermediate.this , Conflicts.class);
startActivity(con);
break;
case 8:
Intent t = new Intent(intermediate.this , Tag.class);
startActivity(t);
break;
case 9:
Intent fe = new Intent(intermediate.this , Fetch.class);
startActivity(fe);
break;
default:
break;
}
}
});
}
}