Question - 6
a. Create spinner with strings taken from resource folder(res >> value folder).
b. On changing spinner value, change image.
Step 1: Create New Project in eclipse and go to res/layout folder.
Step 2: Add 5 Images of your choice into res/drawable-hdpi/ folder of your project.
Step 3: Edit Activity_Spinner XML file in res/layout/ folder of your project.
Step 4: Edit Activity Spinner Java file in src/package/ folder of your project.
Step 2: Add 5 Images of your choice into res/drawable-hdpi/ folder of your project.
Step 3: Edit Activity_Spinner XML file in res/layout/ folder of your project.
Step 4: Edit Activity Spinner Java file in src/package/ folder of your project.
No comments:
Post a Comment