본문 바로가기 메뉴 바로가기

코모스튜디오

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

코모스튜디오

검색하기 폼
  • 분류 전체보기 (273)
    • 코모 어플리케이션즈 (68)
      • 말하는 알람 시계 (42)
      • 말하는 일상 카운터 (3)
      • 말하는 타이머 스톱워치 (1)
      • 말하는 시계 (13)
      • SpeakingAlarmClock (0)
      • 번갯불 (2)
      • 빠른 손전등 (2)
      • 일정 브리핑 알람 (2)
    • [안드로이드 공부] (181)
      • 코틀린 (7)
      • 선플라워 디비보기 (6)
      • 안드로이드 스튜디오 (29)
      • 프리퍼런스 (11)
      • 안드로이드 공부 (30)
      • 프래그먼트 (7)
      • 동기화 (12)
      • 액티비티 (8)
      • UI (47)
      • 미디어 (2)
      • 알림 (8)
      • 서비스 (3)
      • 애드 (9)
      • 테스트 (1)
    • [애플] (0)
    • [IT 뉴스] (18)
      • 모바일 (10)
      • 과학 (5)
      • 인터넷 (3)
    • [엔터테이먼트] (1)
      • 영화 (1)
    • 기타 (2)
  • 방명록

[안드로이드 공부]/UI (47)
안드로이드 리사이클러 뷰 구분선 및 색상 RecyclerView divider color

아주 간단하다.아래 처럼 넣어 주면, 색깔까지 완벽하게! DividerItemDecoration dividerItemDecoration = new DividerItemDecoration(mContext,LinearLayoutManager.VERTICAL); dividerItemDecoration.setDrawable(mContext.getResources().getDrawable(R.drawable.recyclerview_divider)); mRecyclerView.addItemDecoration(dividerItemDecoration);아래는 recyclerview_divider.xml

[안드로이드 공부]/UI 2018. 12. 13. 12:06
안드로이드 동적 컬러리스트 적용 ColorStateList setTextColor

color/a.xml ColorStateList colorStateList = null; if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.M) { colorStateList = context.getResources().getColorStateList(R.color.a, context.getTheme()); } else { colorStateList = context.getResources().getColorStateList(R.color.a); } textView.setTextColor(colorStateList) 요렇게 하면, 간단하게 컬러 리스트를 동적으로(programmatically) 적용 할 수 있다.

[안드로이드 공부]/UI 2018. 12. 9. 10:50
안드로이드 BroadcastReceiver ANR

브로드 캐스트 리시버 에서는 10 초 이내에 모든 작업을 완료 해야함. 그렇지 않으면 시스템이 죽여 버리거나, ANR을 발생 시킨다. 1. onReceive 에서 최대한 간결하게 코드를 처리 한다.1.1 다른 서비스로 리턴 시킨다.1.2 또는 goAsync()를 사용 하여 타임아웃을 연장 한다. 아래는 구글의 설명이다. /** * This can be called by an application in {@link #onReceive} to allow * it to keep the broadcast active after returning from that function. * This does not change the expectation of being relatively * responsive to..

[안드로이드 공부]/UI 2018. 12. 7. 15:25
Fatal Exception: android.content.ActivityNotFoundException

Fatal Exception: android.content.ActivityNotFoundException No Activity found to handle Intentif(intent.resolveActivity(getPackageManager()) != null) startActivityForResult();

[안드로이드 공부]/UI 2018. 12. 6. 15:10
Fatal Exception: java.lang.IllegalStateException Fragment d{} not attached to Activity

Fatal Exception: java.lang.IllegalStateExceptionFragment d{} not attached to Activity 항상 context를 가져온놈으로 쓰고, attached 여부도 확인 할 것.getString --> context.getString()

[안드로이드 공부]/UI 2018. 12. 3. 14:03
org.apache.http.impl.auth.NegotiateScheme: can't find referenced class org.ietf.jgss.GSSName

proguard-ruls 파일에-keep class org.apache.http.**{ *; }-dontwarn org.apache.http.**

[안드로이드 공부]/UI 2018. 10. 1. 12:27
import org.apache.http.NameValuePair 에러

gradle 에서 useLibrary 'org.apache.http.legacy' dependencies에 compileOnly 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2' 두 줄 넣어주면 됨.

[안드로이드 공부]/UI 2018. 10. 1. 12:00
inputchannel is not initialized

Fatal Exception: java.lang.RuntimeExceptioninputchannel is not initialized 알려진 버그로...아직 해결방법이 없는 듯 하다.... https://issuetracker.google.com/issues/36948946

[안드로이드 공부]/UI 2018. 9. 27. 09:29
ava.lang.NumberFormatException: For input string: "-1.0"

java.lang.NumberFormatException: For input string: "-1.0" String val = "-1"Interger.valueOf(val)--> ERROR int a = 0;try{ a = Interger.valueOf(val)} catch(NumberFormatException e){ double d = Double.parseDouble(val) a = (int)d;} 요렇게 하자.

[안드로이드 공부]/UI 2018. 9. 20. 09:58
Resources$NotFoundException: Resource ID #0x0 in AlertDialog

Resources$NotFoundException: Resource ID #0x0 in AlertDialogstyle 이 빠질 경우 발생. new android.support.v7.app.AlertDialog.Builder(context, R.style.dialogStyle);

[안드로이드 공부]/UI 2018. 9. 14. 14:27
이전 1 2 3 4 5 다음
이전 다음
공지사항
최근에 올라온 글
  • Caused by: android.view.⋯
  • viewpager 사용 시 하단⋯
  • fragment container view⋯
  • Resources$NotFoundExcept⋯
최근에 달린 댓글
  • 안드로이드 10 인데 위 코드⋯
  • 제보 : https://horae.tistor⋯
  • 잘 안쓰는데 감사 인사 re:⋯
  • 안녕하세요. 좋은 말씀 감사⋯
Total
410,774
Today
117
Yesterday
252

Blog is powered by Tistory / Designed by Tistory