public class a1 extends Activity {
private TextView objTxtView2;
/** 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
objTxtView2=(TextView)findViewById(R.id.objTxtView2);
}
public 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로 화면구현하는 방법아시는분 없나요ㅠㅠ
부탁드립니다....ㅠㅠ