package pkg.WavPlay; import android.app.Activity; import android.media.MediaPlayer; import android.os.Bundle; import android.view.View; import android.widget.Button; public class WavPlayActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); findVie..
final ProgressDialog proDlg = new ProgressDialog(this); proDlg.setTitle("데이터 받아 오는중 ..."); proDlg.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL); proDlg.setMax(DataCount); proDlg.show(); Thread t = new Thread() { int i = public void run() { while(true) { proDlg.setProgress(i); i++; } } proDlg.dismiss();
// 멤버 변수 private Button BtnDlgStartDate, BtnDlgStopDate; // 버튼 이벤트 Button.OnClickListener mClick = new View.OnClickListener() { @Override public void onClick(View v) { switch(v.getId()) { case R.id.BtnDlgStartDate : msgBox("버튼 이벤트 되냐?"); break; } } }; // 다이얼로그 띄우기 final LinearLayout linear; linear = (LinearLayout) View.inflate(SaleView.this, R.layout.selectdate, null); linear.findViewById(R.id.B..
// xml // java 1. create() private Spinner mComStation; private String mStationList[]; mComStation = (Spinner) findViewById(R.id.ComStation); // 충전소 리스트 선택시 이벤트 mComStation.setOnItemSelectedListener( new OnItemSelectedListener() { public void onItemSelected(AdapterView parent, View view, int position, long id) { msgBox("충전소 선택", mStationList[position].toString()); } public void onNothingSelected..
- Total
- Today
- Yesterday