謨事在人 成事在天[-0ㅡメ]

  • 홈
  • 태그
  • 미디어로그
  • 위치로그
  • 방명록

GradientDrawable 1

GradientDrawable활용 button shape selector 코드 처리

public static void setButtonBackground(Button btn, int normal_color, int press_color) { StateListDrawable res = new StateListDrawable(); res.addState(new int[]{android.R.attr.state_pressed}, setGradientColors(normal_color)); res.addState(new int[]{}, setGradientColors(press_color)); btn.setBackground(res); } public static GradientDrawable setGradientColors(int color) { GradientDrawable gradient ..

프로그래밍/Android 2017.07.20
이전
1
다음
더보기
프로필사진

謨事在人 成事在天[-0ㅡメ]

  • 전체보기 (102)
    • 스마트폰앱개발자(Android) (5)
      • 제작,제어 이론 (5)
    • 공모전&소식 (3)
    • 어플 소개 (4)
    • 유용한 팁 (14)
    • 내 이야기 (1)
    • 책 리뷰 (5)
    • 프로그래밍 (70)
      • Android (28)
      • NDK (2)
      • Node.js (2)
      • Unity3d (6)
      • 패턴인식 (2)
      • 알고리즘 (13)
      • RiveScript (17)

Tag

Android, GradientDrawable, chatbot, Begin Block, Redirections, TRIGGERS, Topics, botstar, MORE DEFINITIONS, AI, tutorial, Learning Things, Person Substitutions, Bot, JSON, Discussions, Recursion Depth, Conditionals, RiveScript, Arrays,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/12   »
일 월 화 수 목 금 토
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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

  • 디지털 세계 모험기
  • 금지된 엑시노아의 비공정
  • greenfish blog

티스토리툴바