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로 보이게 어떻게 할지
잘모르겠습니다 ㅠㅠ 초보라서...
도와주십시오 ㅠ