Do not concatenate text displayed with setText.(Format Specifiers)


Do not concatenate text displayed with setText.(Format Specifiers)

-원인 코드에 text자체를 적었을 때 발생하는 경고이다. values/strings 안에 text를 정의해야 유지 보수가 유리하다. text = "${item.owner}/${item.name}" //경고 / 때문에 -해결 포맷 지정자(Format Specifiers) %[parameter_index$][format_type] %: 포맷지정자 시작을 알림 parameter_index: 파라미터 번호, 뒤에 $ 붙여야함 format_type: s - String, d - 정수, f - 실수 //values/strings 안에 선언 %1$s/%2$s context.getString(R.string.repo_item_format, item.owner, item.name) //결과 "owner/name" -참..


원문링크 : Do not concatenate text displayed with setText.(Format Specifiers)