일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- replace
- javascript
- 무선랜카드
- 크로스 컴파일
- SQL Injection
- ajax
- jQuery
- utf-8
- jquery 레이어
- FileSystemObject
- form
- 커널
- Injection
- euc-kr
- PHP GCM
- 따라다니는 배너
- RTL88x2BU
- disabled
- XMLHTTP
- include
- println
- Getrows
- AC1300
- lsusb
- submit
- ASP
- 시놀로지
- DS718+
- readonly
- synology
- Today
- Total
목록분류 전체보기 (165)
아는 것이 좋은 것이다.
android:maxLength="10"android:singleLine="true" EditText에 위와 같이 코드를 추가하면 텍스트의 길이를 10으로 제한하고,SingleLine을 true로 설정하면 엔터가 되지않고 1줄로만 입력이 가능해집니다.
레이아웃 자바 코드 String[] arrayData = {"aaa", "BBB", "CCC"};ArrayAdapter arrAdapter = new ArrayAdapter(mContext,android.R.layout.simple_dropdown_item_1line, arrayData); autoEdit = (AutoCompleteTextView) findViewById(R.id.textview1); autoEdit.setAdapter(arrAdapter);
Log.i("분류할 변수", "로그 내용");
CharSequence[] items = { "aaaaaa", "bbbbbb", "cccccc" }; AlertDialog.Builder builder = new AlertDialog.Builder(mContext);// builder.setTitle("다이얼로그 타이틀");builder.setItems(items, new DialogInterface.OnClickListener() {public void onClick(DialogInterface dialog, int item) {Toast.makeText(this, items[item], Toast.LENGTH_LONG).show();}});AlertDialog alert = builder.create();alert.show();
// 연결URL url = new URL("값을 보낼 URL");HttpURLConnection conn = (HttpURLConnection) url.openConnection();conn.setDoOutput(true);conn.setRequestMethod("POST"); // 보내는 타입conn.setRequestProperty("Accept-Language", "ko-kr,ko;q=0.8,en-us;q=0.5,en;q=0.3");// 데이터String param = "{\"title\": \"asdasd\", \"body\" : \"ddddddddd\"}"; // 전송OutputStreamWriter osw = new OutputStreamWriter(conn.getOutputStream());..
intent = new Intent(this, FirstActivity.class);intent.putExtra("변수", "넘길값");startActivity(intent);
Intent intent;switch (position) {case 1: break;case 2: break;case 3:intent = new Intent(this, FirstActivity.class);startActivity(intent);break;case 4:intent = new Intent(this, SecondActivity.class);startActivity(intent);break;case 5:intent = new Intent(this, ThirdActivity.class);startActivity(intent);break;case 6: break;default:break;}
String[] n = new String[]{"google","microsoft","apple"}; final List list = new ArrayList(); Collections.addAll(list, n); list.remove("apple"); 출처 : http://stackoverflow.com/questions/7940337/remove-a-specific-string-from-an-array-of-string
Log.i("check", Json.toString());
values -> themes.xml