DateTime startDate8 = DateTime.now();
DateTime endDate8 = new DateTime(2014, 11, 5, 15, 0);
Period period8 = new Period(startDate8, endDate8, PeriodType.dayTime());
PeriodFormatter formatter8 = new PeriodFormatterBuilder()
.appendMinutes()
.toFormatter();
tw.setText(String.valueOf(formatter8.print(period8)));
내 안드로이드 앱.텍스트 뷰 텍스트 변경 방법
if tw is empty;
tw="00"
if tw is one-digit text, one-digit value = "x";
tw = "0x"
tw는 TextView의 텍스트입니다. TW가 빈 때 나는 TW 내가 http://i.imgur.com/5wBmMI9.png
을 설명
한 자리 문자 때 내가 접두사 "0"(TW)에 기록 할 TW에 "00"를 쓰기 원하는 그리고 우리는 당신이 당신의 시도를 보여주고 싶은 . 안드로이드 박사를 통해 검색 했습니까? 그렇다면 어떤 방법으로이 작업에 도움이 되었습니까? – user2336315
@ user2336315 내 코드 –