public class a1 extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.a_type); // 평형정보 화면입니다.
// TODO Auto-generated method stub
}
class dday{
public int caldate(int myear, int mmonth, int mday) {
try {
Calendar today = Calendar.getInstance(); //현재 오늘 날짜
Calendar dday = Calendar.getInstance();
dday.set(2014,8,2);// D-day의 날짜를 입력합니다.
long day = dday.getTimeInMillis()/86400000;
// 각각 날의 시간 값을 얻어온 다음
//( 1일의 값(86400000 = 24시간 * 60분 * 60초 * 1000(1초값) ) )
long tday = today.getTimeInMillis()/86400000;
long count = tday - day; // 오늘 날짜에서 dday 날짜를 빼주게 됩니다.
return (int) count+1; // 날짜는 하루 + 시켜줘야합니다.
}
catch (Exception e)
{
e.printStackTrace();
return -1;
}
}
}
}
자바코드입니다.

이런식으로 구현하고싶은데 화면구현을 못하겠습니다
xml로 화면에 구현되게 할수있을까요?ㅠㅠ
초보라서ㅠㅠ 도와주십시오
감사합니다