質問編集履歴
1
コードの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,7 +14,9 @@
|
|
14
14
|
|
15
15
|
|
16
16
|
|
17
|
+
```lang-<java>
|
18
|
+
|
17
|
-
|
19
|
+
public class SumaryuActivity extends ActionBarActivity {
|
18
20
|
|
19
21
|
|
20
22
|
|
@@ -26,14 +28,64 @@
|
|
26
28
|
|
27
29
|
setContentView(R.layout.activity_sumaryu);
|
28
30
|
|
29
|
-
.
|
30
31
|
|
31
|
-
.
|
32
32
|
|
33
|
-
|
33
|
+
}
|
34
|
+
|
35
|
+
```
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
また,
|
40
|
+
|
41
|
+
以下のようなコードをつけたすことはできますか.
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
```lang-<java>
|
46
|
+
|
47
|
+
import android.widget.TextView;
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
public class tab1Activity extends Activity {
|
52
|
+
|
53
|
+
public void onCreate(Bundle savedInstanceState) {
|
54
|
+
|
55
|
+
super.onCreate(savedInstanceState);
|
56
|
+
|
57
|
+
TextView textview = new TextView(this);
|
58
|
+
|
59
|
+
textview.setText("This is Tab1");
|
60
|
+
|
61
|
+
setContentView(textview);
|
62
|
+
|
63
|
+
}
|
34
64
|
|
35
65
|
}
|
36
66
|
|
37
67
|
|
38
68
|
|
69
|
+
public class SumaryuActivity extends ActionBarActivity {
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
@Override
|
74
|
+
|
75
|
+
protected void onCreate(Bundle savedInstanceState) {
|
76
|
+
|
77
|
+
super.onCreate(savedInstanceState);
|
78
|
+
|
79
|
+
setContentView(R.layout.activity_sumaryu);
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
}
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
```
|
88
|
+
|
89
|
+
|
90
|
+
|
39
|
-
以上です.
|
91
|
+
以上の2点です.
|