ColorDrawable

2019. 10. 23. 16:48모바일/Android_Java

ColoDrawable colorD = new ColorDrawable(getResources().getColor(~~.ThemaState==~~.HM_THEMA.THEMA_WHITTE?R.color.color5:R.color.color13));
int divederHeight = (int)CommonUti.getDpToPixel(getActivity(),(float)1);

listView.setDivider(colorD);
listView.setDiverHeight(diverHeight<1?1:diverHeight);
  • 왜쓰는지 알아보도록 하자..

'모바일 > Android_Java' 카테고리의 다른 글

View관련  (1) 2019.10.25
가로,세로화면(Configuration.ORIENTATION_PORTRAIT)  (0) 2019.10.24
savedInstanceState  (0) 2019.10.17
액티비티 전환 플래그  (0) 2019.10.16
Activity 관련  (0) 2019.10.16