android source

get color table int

리오파파 2019. 7. 28. 22:38

how to define colors

> values > colors.xml
    <color name="myColor">SlateBlue</color>
    <color name="SlateBlue">#6A5ACD</color>​

 

        int color = mActivity.getResources().getColor(R.color.myColor);

 

 

 

'android source ' 카테고리의 다른 글

To get the Camera full folder name  (0) 2019.08.17
read text file in raw folder  (0) 2019.08.17
hander message pass  (0) 2019.07.28
sleep  (0) 2019.07.28
vibratePhone()  (0) 2019.07.23