Mobile/Android(135)
-
[안드로이드,Android]키보드 보이기, 숨기기
package com.example.ggari_keyboard; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.view.inputmethod.InputMethodManager; import android.widget.Button; import android.widget.EditText; public class MainActivity extends Activity { InputMethodManager Imm; Button btnShow; Button btnHide; EditText et01; public vo..
2013.01.28 -
[안드로이드,Android]로그,LOG
이클립스 안에서 Window -> Show View -> Other -> Log Cat 선택합니다~ 그럼 아래와같이 로그캣 화면을 볼수 있습니다. package com.example.testlog; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class MainActivity extends Activity { private String TAG = "로그테스트"; Button btn1; Button btn2; @Overrid..
2013.01.25 -
[안드로이드,Android]메뉴 옵션
package com.example.ggari_optionmenu; import android.app.Activity; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.view.SubMenu; import android.widget.TextView; import android.widget.Toast; public class MainActivity extends Activity { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView tv = new TextView(t..
2013.01.24 -
[안드로이드,Android]타이머 Timer
MainActivitypackage com.example.ggari_timer; import android.app.Activity; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.widget.TextView; public class MainActivity extends Activity { int val=0; TextView tv01; Handler handler; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.acti..
2013.01.23 -
[안드로이드,Android] RatingBar (별점수)
MainActivity.java package com.example.rating; import android.app.Activity; import android.os.Bundle; import android.widget.RatingBar; import android.widget.RatingBar.OnRatingBarChangeListener; import android.widget.TextView; public class MainActivity extends Activity { RatingBar rating; TextView tv01; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceStat..
2013.01.21 -
[안드로이드,Android]탭,TabHost 만들기
레이아웃 부분
2013.01.15