Aplikasi Android
Game Android
Smartphone
Nokia
Social Media
Search...
Sumber: Blogger-Muntok.blogspot.com
I N G I N D AP AT U P D AT E
VI A E MAI L ?
Email address...
GOOGL E +
DMCA
Sumber: Blogger-Muntok.blogspot.com
Sumber: Blogger-Muntok.blogspot.com
Sumber: Blogger-Muntok.blogspot.com
Sumber: Blogger-Muntok.blogspot.com
Setelah
project
sudah
jadi.
BelajarBerhitung/res/layout/activity_main.xml
buka
<AbsoluteLayout xmlns:android="http://schemas.android.
com/apk/res/android"
android:layout_width="fill_parent"
extView
Sumber: Blogger-Muntok.blogspot.com
android:id="@+id/widget33"
android:layout_height="fill_parent" >
<
T android:layout_width="268dp"
android:layout_height="wrap_content"
y="center"
android:text
android:layout_x="21dp"
android:layout_y="8dp"
android:gravi
t="Belajar Berhitung"
android:textColor="#ff33ff00"
android:textSize="20sp"
yout_width="296dp"
android:
android:textStyle="bold" />
<TextView
android:id="@+id/text1"
android:l
alayout_height="317dp"
android:layout_x="13dp"
android:layout_y="96dp"
android:editable="true"
android:textStyle="bold
android:gravity="center"
android:onClick="text1"
android:text="10"
android:textSize="250sp
"" />
luteLayout>
</Abs
o
Sumber: Blogger-Muntok.blogspot.com
masuk
1: package sorce.BelajarBerhitung;
2: import android.media.MediaPlayer;
3: import android.os.Bundle;
5: import android.view.View ;
Sumber: Blogger-Muntok.blogspot.com
ke
4: import android.app.Activity
;
6: import android.widget.*;
nds Activity {
8: MediaPlayer player ;
9:
7: public class MainActivity ext
e
TextView text ;
10:
int j = 0;
11:
@Override
super.onCreate(savedInstanceState);
14:
12:
s
protected void onCreate(Bundle savedInstanceState) {
13:
etContentView(R.layout.activity_main);
15:
16:
playSound(j);
21:
17:
if (
public void text1(View v){
18:
j++ ;
19:
text.setText(j+"");
20:
j==10){j=0;}
22:
23:
@Override
24:
25:
try{
26:
super.onPause();
g){
32:
try{
33
27:
player.pause();
28:
29:
30:
31:
r:
if (player.isPlaying()) {
34:
player.stop();
35:
player.release();
Sumber: Blogger-Muntok.blogspot.com
36:
37:
yer.create(this, R.raw.dua);}
41:
38:
39:
catch(Exception e){ }
if (arg == 1){player = MediaPlayer.create(this, R.raw.satu);}
40:
a
42:
}
45:
43:
44:
;);}
46:
47:
51: }
52: }
48:
49:
50:
player.start();
Tw itter
Google+
Advertisement
Sumber: Blogger-Muntok.blogspot.com
R E L AT E D P O S T S
PREVIOUS
U n a va i l a b l e
NEXT
U n a va i l a b l e
Comment disabled
Sitemap Privacy Policy Disclaimer Contact A bout didesain oleh Damzaky powered by Blogger
Sumber: Blogger-Muntok.blogspot.com