반응형

프로그래밍 정리/안드로이드 109

[Android - 안드로이드] Navigation Drawer or DrawerLayout

- DrawerLayout을 통해서 적용시킬수 있음. drawerLyaout.openDrawer(cup_hello2); - 해당뷰(cup_hello2)에 layout_gravity 속성에 'start'or 'end' 속성이 적용되어있어야함.- android:layout_gravity="start", android:layout_gravity="end" - start 속성은 좌측, end 속성은 우측- left, right 속성도 마찬가지인듯...?(테스트 안 해본...)- 양쪽의 둘다 넣을수도 있음. - java.lang.IllegalArgumentException is not a drawer 이 옴의 에러때문에 한시간 버림...ㅠ_ㅠ 소스 첨부 소스MainActivity.java==============..

[Android - 안드로이드] 자바 소스에서 상황에 따른 Color값 변경(presee, check.. 등등)

int[][] states = new int[][] {// new int[] { android.R.attr.state_enabled}, // enabled// new int[] {-android.R.attr.state_enabled}, // disabled// new int[] {-android.R.attr.state_checked}, // unchecked new int[] { android.R.attr.state_pressed}, // pressed new int[] {}}; int[] colors = new int[] { Color.parseColor( ("#" + cRowNor) ), Color.parseColor( ("#" + cRowSel) )};ColorStateList c = new Col..

[Android - 안드로이드] AsyncTask 병렬처리

AsyncTask 당연히 병렬처리 된다고 생각했는데... 아니었음... When first introduced, AsyncTasks were executed serially on a single background thread. Starting with DONUT, this was changed to a pool of threads allowing multiple tasks to operate in parallel. After HONEYCOMB, it is planned to change this back to a single thread to avoid common application errors caused by parallel execution. If you truly want parallel e..

[Android - 안드로이드] TextView 링크 관련(이메일, 웹주소 등등)

http://jhrun.tistory.com/138 블로그 참조. 좋으신 분 ㅠ_ㅠ 간단하게 TextView에다가 textView.setAutoLinkMask(Linkify.ALL); 라고 하면 이메일, 웹주소가 하나의 텍스트로 묶여있어도자동으로 구분함... 짱임... ex)TextView tv = new TextView(context);tv.setAutoLinkMask(Linkify.ALL);tv.setText("이메일 주소 : xxx@xxx.com 홈페이지 주소 : http://xxx.com");=> 이렇게 하면 자동으로 이메일주소 링크 클릭시 이메일관련 액션view 소환 홈페이지주소 링크 클릭시 인터넷관련 액션View 소환. Good! ===================================..

[Android - 안드로이드] Google(구글) 인앱 결제

아이군의 블로그http://theeye.pe.kr/archives/2118 발로 쓰는 블로그http://writefoot.tistory.com/entry/구글-inapp-billing-v3-인앱-결제 안드로이드 디벨로퍼http://developer.android.com/google/play/billing/billing_integrate.html http://developer.android.com/google/play/billing/billing_reference.html 정리가 매우 잘 되어있음.저 두분 블로그 참고해서 하는데 잘 됨 ( -_-)~ !

[Android - 안드로이드] sending message to a Handler on a dead thread

W/MessageQueue(16433): Handler (android.os.Handler) {44858668} sending message to a Handler on a dead threadW/MessageQueue(16433): java.lang.RuntimeException: Handler (android.os.Handler) {44858668} sending message to a Handler on a dead threadW/MessageQueue(16433): at android.os.MessageQueue.enqueueMessage(MessageQueue.java:311)W/MessageQueue(16433): at android.os.Handler.enqueueMessage(Handler..

반응형