Thursday, September 11, 2014

fragment B displays contents of different fragments

 public void changeData(int index)
    {
        String[] descriptions=getResources().getStringArray(R.array.Desc);
        Log.d("FragmentB","Descriptions retrieved");
        text.setText(descriptions[index]);
    }

The above needs to be changed to load different html, I think I can use index to get different html file.


FragmentA  contains contents

1. titles
2. descriptions
2. images

No comments:

Post a Comment