// xml 이거 안넣어주면 스크롤시 배경이 사라짐 ;;; > // java package pkg.MinPos; import java.util.ArrayList; import android.app.Activity; import android.os.Bundle; import android.widget.ArrayAdapter; import android.widget.ListView; public class MagamSum extends Activity { private ListView mList; private FOSDBHandler mFos; private ArrayList arMagamList; @Override public void onCreate(Bundle savedInstanceState) { s..
android:orientation = "vertical" android:layout_width = "fill_parent" android:layout_height = "fill_parent" xmlns:android = "http://schemas.android.com/apk/res/android"> android:id = "@+id/ListDay" android:layout_height = "500px" android:layout_width = "fill_parent" android:cacheColorHint = "#00000000" > android:layout_width = "fill_parent" android:layout_height = "wrap_content" ..
public ArrayAdapter GetMagamList() { String Sql, CloseTime, Str; Cursor Cur; ArrayAdapter Adapter; mFos = new FOSDBHandler(this); arMagamList = new ArrayList(); arMagamShowList = new ArrayList(); Sql = "SELECT DISTINCT close_time FROM CLOSE_DATA ORDER BY close_time DESC LIMIT 200 "; Cur = mFos.QueryProcessing(Sql); if(Cur.getCount() > 0) { while(Cur.moveToNext()) { CloseTime = Cur.getString(0); ..
// 연,월,일,시,분을 관리 할 수 있는 구조체 클래스 public class DateTime { int Year; int Month; int Day; int Hour; int Minute; } private DateTime mStartDate, mStopDate; Button.OnClickListener mClick = new View.OnClickListener() { @Override public void onClick(View v) { switch(v.getId()) { case R.id.BtnStartDate : new DatePickerDialog(DaySum.this, dateSetListener, mStartDate.Year, mStartDate.Month, mStartDate.Day)...
new AlertDialog.Builder(MagamDel.this) .setTitle("마감 삭제") .setIcon(R.drawable.icon) .setMessage("선택한 마감 이전 자료를 삭제하시겠습니까?") .setPositiveButton("삭제", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { Toast.makeText(MagamDel.this, "삭제가 완료 되었습니다.", Toast.LENGTH_SHORT).show(); GetMagamList(); } }) .setNegativeButton("취소", null) .show();
// 종료 DialogInterface.OnClickListener mExitClick = new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { if(which == DialogInterface.BUTTON1) finish(); else return; } }; @Override public boolean onKeyDown(int keyCode, KeyEvent event) { switch(keyCode){ case KeyEvent.KEYCODE_BACK: new AlertDialog.Builder(LieDetectorActivity.this) .setTitle("프로그..
// main.xml // SpeechToTextActivity.java package pkg.SpeechToText; import java.util.ArrayList; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.speech.RecognizerIntent; import android.view.View; import android.widget.Button; import android.widget.EditText; public class SpeechToTextActivity extends Activity { private static final int REQUEST_COD..
- Total
- Today
- Yesterday