i have created a viewpager swipe view withot using fragments. according to the swipe get the position and layout is displayed. Actually this is a calendar application. i have get the current date when app starting and i want to change a textview according to that date. the problem is when i access the non class layout like below and change the textview, it want change.
Calendar cal = Calendar.getInstance();
int dd = cal.get(Calendar.DAY_OF_MONTH);
int mm = cal.get(Calendar.MONTH);
++mm;
int yy = cal.get(Calendar.YEAR);
String today = String.valueOf(dd);
final View vi = inflater.inflate(R.layout.december, null);
t1 = (TextView)vi.findViewById(R.id.do4);
t1.setText("today");