¾ÛÅøÁî
46.¢½.168.138
46.¢½.168.129
46.¢½.168.161
46.¢½.168.136
46.¢½.168.145
46.¢½.168.162
46.¢½.168.144
46.¢½.168.140
115.¢½.135.198
46.¢½.168.139
 
°Ô½Ã¹° 223°Ç
   
À̹ÌÁö ¹öÆ° 9°³Á¤µµ ¹è¿­ °¡´ÉÇϳª¿ä?
±Û¾´ÀÌ : ±èº´ÁÖ                   ³¯Â¥ : 2011-08-04 (¸ñ) 13:56 Á¶È¸ : 4051
<main.xml>
 
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:weightSum="1">
<TextView 
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="@string/hello"
    />
<TableLayout android:layout_height="wrap_content" android:layout_width="match_parent" android:id="@+id/tableLayout1" android:layout_weight="0.62" android:gravity="center_vertical|center_horizontal">
    <TableRow android:id="@+id/tableRow1" android:layout_width="wrap_content" android:layout_height="wrap_content">
        <Button android:text="Button" android:id="@+id/button1" android:layout_height="wrap_content" android:layout_width="105dp"></Button>
        <Button android:text="Button" android:id="@+id/button6" android:layout_height="wrap_content" android:layout_width="105dp"></Button>
        <Button android:text="Button" android:id="@+id/button11" android:layout_height="wrap_content" android:layout_width="105dp"></Button>
    </TableRow>
    <TableRow android:id="@+id/tableRow2" android:layout_width="wrap_content" android:layout_height="wrap_content">
        <Button android:text="Button" android:id="@+id/button2" android:layout_width="wrap_content" android:layout_height="wrap_content"></Button>
        <Button android:text="Button" android:id="@+id/button5" android:layout_width="wrap_content" android:layout_height="wrap_content"></Button>
        <Button android:text="Button" android:id="@+id/button12" android:layout_width="wrap_content" android:layout_height="wrap_content"></Button>
    </TableRow>
    <TableRow android:id="@+id/tableRow3" android:layout_width="wrap_content" android:layout_height="wrap_content">
        <Button android:text="Button" android:id="@+id/button3" android:layout_width="wrap_content" android:layout_height="wrap_content"></Button>
        <Button android:text="Button" android:id="@+id/button4" android:layout_width="wrap_content" android:layout_height="wrap_content"></Button>
        <Button android:text="Button" android:id="@+id/button13" android:layout_width="wrap_content" android:layout_height="wrap_content"></Button>
    </TableRow>
    <TableRow android:id="@+id/tableRow4" android:layout_width="wrap_content" android:layout_height="wrap_content">
        <Button android:text="Button" android:id="@+id/button7" android:layout_width="wrap_content" android:layout_height="wrap_content"></Button>
        <Button android:text="Button" android:id="@+id/button9" android:layout_width="wrap_content" android:layout_height="wrap_content"></Button>
        <Button android:text="Button" android:id="@+id/button14" android:layout_width="wrap_content" android:layout_height="wrap_content"></Button>
    </TableRow>
    <TableRow android:id="@+id/tableRow5" android:layout_width="wrap_content" android:layout_height="wrap_content">
        <Button android:text="Button" android:id="@+id/button8" android:layout_width="wrap_content" android:layout_height="wrap_content"></Button>
        <Button android:text="Button" android:id="@+id/button10" android:layout_width="wrap_content" android:layout_height="wrap_content"></Button>
        <Button android:text="Button" android:id="@+id/button15" android:layout_width="wrap_content" android:layout_height="wrap_content"></Button>
    </TableRow>
</TableLayout>
</LinearLayout>
 
 
<mainActivity>
class ...{
Button btn1,btn2,btn3,btn4,btn5,....btn15;
 
{
....
setContentView(R.layout.main);
btn1 = (Button)findViewById(R.id.button1);
....btn15 = (Button)findViewById(R.id.button15);
 
btn1.setOnClickListener(this);
 
}
 
public void onClick(View v)
{
switch(v.getId())
case R.id.button1 :
~~~~
break;
case R.id.button15 :
~~~~
break;
}
}
ÀÌ·±½ÄÀ¸·Î Â¥ÁÖ½Ã¸é µË´Ï´Ù.
* ±ÛÀ» µî·ÏÇϽǶ§ ²À ÇÊ¿äÇÑ °æ¿ì°¡ ¾Æ´Ï¸é °³ÀÎÁ¤º¸¸¦ ³²±âÁö ¸¶¼¼¿ä ^^ (¿¬¶ôó,À̸ÞÀÏÁÖ¼Ò,Áֹεî·Ï¹øÈ£ µî)




±èº´ÁÖ ´ÔÀÇ Q&A ÃÖ½Å±Û [´õº¸±â]


   

°Ô½Ã¹° 223°Ç
¹øÈ£ Á¦¸ñ ±Û¾´ÀÌ ³¯Â¥ Á¶È¸
103  [JAVA} Thread¿Í Runnable ¿¡¼­ÀÇ Àǹ®Á¡ÀÔ´Ï´Ù +2 À̱ÔÇü 08-11 3375
102  HTTP / Socket °¢°¢ ¾î´À°æ¿ì¿¡ »ç¿ëÇϳª¿ä? ÀÌ»óÈ­ 08-07 3920
101  ¾Èµå·ÎÀ̵å ÀÔ¹® !! +2 ÃÖ¼ºÁ¶ 08-07 2990
100  HTTP? / SOCKET? ¾î´À°ÍÀ» »ç¿ëÇÒÁö °í¹ÎÁßÀÔ´Ï´Ù. Á¶¾ðºÎŹµå¸³´Ï´Ù. +1 ÀÌ»óÈ­ 08-06 5139
99  vlc½ºÆ®¸®¹Ö MediaPlayer °ü·Ã Áú¹® ÃÖ¼öÈñ 08-04 4696
98  AVD¿¡¼­ °¡·Î¹æÇâ ¼³Á¤ +1 ÀÌÅÂÈñ 08-03 2929
97  ¾Èµå·ÎÀ̵å..±¸±Û Ä̸°´õ ¿¬µ¿ Çϴ¹æ¹ý. +2 ±èº´ÁÖ 08-01 6952
96  À̹ÌÁö ¾È¿¡ À̹ÌÁö ³Ö±â +1 ±è°Ç¿Ï 08-01 2849
95  ¾Èµå·ÎÀÌµå ¾îÇà °³¹ßÈÄ µð¹ÙÀ̽º¿¡ °üÇÑ Áú¹®ÀÔ´Ï´Ù +4 Á¶¿ë±¸ 08-01 3508
94  °¡»ê ¹æ½ÄÀ¸·Î È­¸é¿¡ »Ñ¸®´Â°Ô °¡´ÉÇÑ°¡¿ä? (addictive) Á¤ÅÂÇü 07-31 2823
93     °¡»ê ¹æ½ÄÀ¸·Î È­¸é¿¡ »Ñ¸®´Â°Ô °¡´ÉÇÑ°¡¿ä? (addictive) ±èº´ÁÖ 09-26 4175
92  ¾Û°³¹ßÀ» ÇÏ·Á°í Çϴµ¥¿ä ^^ +3 ¼±ÁÖÇü 07-29 2615
91  ChoogerActivity ½ÇÇàÀ» ¸·´Â ¹æ¹ý ¾øÀ»±î¿ä? +1 ÀÌÀ缺 07-28 4000
90  Æ¯Á¤ ·¹À̾ƿô¸¸ º¯°æÇϴ°Š¼Ò½º ÀÔ´Ï´Ù. +1 ÀÌÁ¾È£ 07-28 4224
89  ¾Èµå·ÎÀ̵å Áöµµ °ü·Ã Áú¹®ÀÔ´Ï´Ù ÀÌÇÑÁø 07-27 3345
88  ¹öÆ°À» ´©¸£¸é ƯÁ¤ ·¹À̾ƿô¸¸ º¯°æµÇµµ·Ï ÇÏ°í½ÍÀºµ¥ ¤Ð¤Ð +1 ÀÌÀ缺 07-27 4153
87  ¾Æ·¡ ¹öÆ° ·¹À̾ƿô ¹®ÀÇÇϽŰŠÇѹø ¸¸µé¾îºÃ½À´Ï´Ù. +1 ÀÌÁ¾È£ 07-25 4207
86  À̹ÌÁö ¹öÆ° 9°³Á¤µµ ¹è¿­ °¡´ÉÇϳª¿ä? +1 ±èÅ¿ì 07-23 5231
85     À̹ÌÁö ¹öÆ° 9°³Á¤µµ ¹è¿­ °¡´ÉÇϳª¿ä? ±èº´ÁÖ 08-04 4052
84  ÀÌ·± ¹öÆ°¹èÄ¡¸¦ Çϱâ À§Çؼ± ¾î¶² ·¹À̾ƿôÀ» »ç¿ëÇؾßÇÒ±î¿ä? +2 ±Ç¿ëÀÌ 07-23 2810
 1  2  3  4  5  6  7  8  9  10  11  12  
 
 
 
Copyright ¨Ï wwwold.androidstudy.co.kr. All rights reserved.