Как вы можете установить различные рисованные изображения для разных тем в приложении для Android? - PullRequest
0 голосов
/ 16 февраля 2012

Как установить различные рисованные изображения для разных тем в приложении для Android?

1 Ответ

0 голосов
/ 17 февраля 2012

вы можете реализовать это с помощью динамической структуры, откуда вся информация о проектировании будет поступать с сервера

 1.for that you have to create a xml having list of themes what names you required to give associated with an id.
 2.parse xml and show its content to a list then at selection of an item of list save id associated with it in your shared preferences.
 3.each time when the designing part will be loaded you will send id with it as http://xyz.abc.com/images/menu-images/your_id which will respond you with an image or design info related to that theme id
 4.to save downloading each time of content indroduce a check that if value saved in preferences then use existing image saved or cached in application
 5.Or in case you want to ship images with your applicatio just hardcode the tag the theme id with the image name at run time check selected theme and show the theme related images
   hope this idea will help you.
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...