반응형
Notice
Recent Posts
Recent Comments
Link
목록colors파일 (1)
투케이2K
57. (AndroidStudio/android/java) colors.xml 파일에 등록된 색상을 xml 및 java 파일에서 호출 실시
/* =========================== */ [ 개발 환경 설정 ] 개발 툴 : AndroidStudio 개발 언어 : java /* =========================== */ /* =========================== */ [소스 코드] #1565c0 #1565c0 #1565c0 android:background="@color/colorPrimary" textView = (TextView)findViewById(R.id.textView); int color = ContextCompat.getColor(this, R.color.colorPrimary); textView.setBackgroundColor(color); /* ===================..
Android
2021. 2. 22. 08:58