Hi I created one grid view application. it’s display my sdcard images in my grid view, now I have 10 images only. if I click my 1st image in grid view I want to show one paragraph using text view. then i click 2nd images i want to show another one paragraph….so i create one xml file, the xml file have 10 paragraph. my doubt how to show this paragraph? when i click that gridview images i wish to show this images that’s all….
<paragraph>
<par1>
dkdkkddkdkkdkkdkdkkdkdkdkdkdkdkdk]
dkdkkdkdkdkdkkdkdkdkdkdkdkdkdk
</par1>
<par2>
skjdkjfidfdjfkdjfoiudifjieiiejriej
dkiekdikdididkdkdkipppw;wpp;eokkll
</par2>
.
.
.
.
.
<par10>
dkdi;;iathehe thid tihoodfjalkjfkjdfk
dkjfldkjflkjdalkjldkjoaiuidfiudofuoia
</par10>
</paragraph>
This is my example xml file i wish to parse only sax parse only. I am confused please help me……..
Create your xml structure as below:
Then Parse these strings into an arraylist, and according to the selection position of image, display paragraph from index.