Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
- {
- View v = inflater.inflate(R.layout.fragment_layout, container,false);
- ImageView img1 = (ImageView) v.findViewById(R.id.im1);
- TextView tv1 = (TextView ) v.findViewById(R.id.pt1);
- ImageView img2 = (ImageView) v.findViewById(R.id.im2);
- TextView tv2 = (TextView ) v.findViewById(R.id.pt2);
- ImageView img3 = (ImageView) v.findViewById(R.id.im3);
- TextView tv3 = (TextView ) v.findViewById(R.id.pt3);
- if(current_page == 1) // Aras an Uachtaran page
- {
- img1.setImageResource(R.drawable.aras_static_1);
- tv1.setText(R.string.aras_an_uachtarain_desc_p1);
- img2.setImageResource(R.drawable.aras_static_2);
- tv2.setText(R.string.aras_an_uachtarain_desc_p2);
- img3.setImageResource(R.drawable.aras_static_3);
- tv3.setText(R.string.aras_an_uachtarain_desc_p3);
- }
- else if(current_page == 2) // Papal cross page
- {
- img1.setImageResource(R.drawable.papal_static_1);
- tv1.setText(R.string.papal_cross_desc_p1);
- img2.setImageResource(R.drawable.papal_static_2);
- tv2.setText(R.string.papal_cross_desc_p2);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement