tag:blogger.com,1999:blog-380980011076825656.post4810370223824453281..comments2022-11-18T12:04:27.523+01:00Comments on GEEK!mind: Android: Custom ListView SelectorStefan Klumpphttp://www.blogger.com/profile/02899343387413244345noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-380980011076825656.post-38957573695265087382011-10-05T21:03:22.788+02:002011-10-05T21:03:22.788+02:00note that in sdk version 8 +,
you can't add an...note that in sdk version 8 +,<br />you can't add android:style<br /><br />use: android:listselector instead,<br /><br />and referance it to "@drawable/list_selector_backgroud".<br /><br />you don't need the style.xml as well.<br /><br />cheers<br />vladVlad Ostrovskihttps://www.blogger.com/profile/16973400368527777095noreply@blogger.comtag:blogger.com,1999:blog-380980011076825656.post-29465750584671322982010-07-30T10:02:16.064+02:002010-07-30T10:02:16.064+02:00Thanx Stefan Klumpp,
very good. its working .. Am...Thanx Stefan Klumpp,<br /><br />very good. its working .. Amazing ..!!!!!<br /><br />-AshAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-380980011076825656.post-83682543349094628732010-07-07T23:00:01.684+02:002010-07-07T23:00:01.684+02:00I was also having the 'resource not found'...I was also having the 'resource not found' error, and it was due to the fact that I had modified the NinePath images incorrectly.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-380980011076825656.post-50256174662370936162010-06-03T15:26:41.676+02:002010-06-03T15:26:41.676+02:00Hi Stefan,
I met the same problem as z0ro, can yo...Hi Stefan,<br /><br />I met the same problem as z0ro, can you help with this issue?<br /><br />Thanks.<br /><br />VyconUnknownhttps://www.blogger.com/profile/07586801024403750476noreply@blogger.comtag:blogger.com,1999:blog-380980011076825656.post-31963139036869349872010-03-17T00:36:13.430+01:002010-03-17T00:36:13.430+01:00Hey z0ro,
I'm very busy right now. But will l...Hey z0ro,<br /><br />I'm very busy right now. But will look into your issues soon.Stefan Klumpphttps://www.blogger.com/profile/02899343387413244345noreply@blogger.comtag:blogger.com,1999:blog-380980011076825656.post-92226822971046679522010-03-16T12:48:50.912+01:002010-03-16T12:48:50.912+01:00Hi Stefan,
I am trying hard to make it work
its...Hi Stefan, <br />I am trying hard to make it work <br /><br />its keep saying :<br /><br />[2010-03-16 13:41:59 - MoreLists]ERROR: Failure processing PNG image C:\Documents and Settings\Zoro\workspace\MoreLists\res\drawable\list_selector_background_focus.9.png<br />[2010-03-16 13:41:59 - MoreLists]C:\Documents and Settings\Zoro\workspace\MoreLists\res\drawable\list_selector_background.xml:7: ERROR Error: No resource found that matches the given name (at 'drawable' with value '@drawable/list_selector_background_disabled').<br />[2010-03-16 13:41:59 - MoreLists]C:\Documents and Settings\Zoro\workspace\MoreLists\res\drawable\list_selector_background.xml:9: ERROR Error: No resource found that matches the given name (at 'drawable' with value '@drawable/list_selector_background_disabled').<br />[2010-03-16 13:41:59 - MoreLists]C:\Documents and Settings\Zoro\workspace\MoreLists\res\drawable\list_selector_background.xml:12: ERROR Error: No resource found that matches the given name (at 'drawable' with value '@drawable/list_selector_background_transition').<br />[2010-03-16 13:41:59 - MoreLists]C:\Documents and Settings\workspace\MoreLists\res\drawable\list_selector_background.xml:14: ERROR Error: No resource found that matches the given name (at 'drawable' with value '@drawable/list_selector_background_transition').<br />[2010-03-16 13:41:59 - MoreLists]C:\Documents and Settings\workspace\MoreLists\res\drawable\list_selector_background.xml:17: ERROR Error: No resource found that matches the given name (at 'drawable' with value '@drawable/list_selector_background_focus').<br />[2010-03-16 13:41:59 - MoreLists]C:\Documents and Settings\workspace\MoreLists\AndroidManifest.xml:6: ERROR Error: No resource found that matches the given name (at 'icon' with value '@drawable/icon').<br /><br />I download all files to<br />for the file :<br />C:\Documents and Settings\workspace\MoreLists\res\drawable:<br /><br />list_selector_background.xml<br />list_selector_background_transition.xml<br /><br />list_selector_background_focus.9.png <br />list_selector_background_longpress.9.png <br />list_selector_background_pressed.9.png <br />list_selector_background_disabled.9.png <br /><br />whaen i reaname the image name witout the .9 its seems good but there no effect on the ListView<br /><br />thankszOronoreply@blogger.comtag:blogger.com,1999:blog-380980011076825656.post-81163829429993082782010-03-15T13:55:16.847+01:002010-03-15T13:55:16.847+01:00Hi , Stefan this is what i meant :
http://www.wav...Hi , Stefan this is what i meant :<br /><br />http://www.wave-site.com/wave-site/images/Android_Style.gif<br /><br />it's only a mark , not getting any error but still my list appear with out no style ..<br /><br />maybe it because the android:list id that i use:<br /><br /><br /> <br />this is my style.xml :<br /><br />http://www.wave-site.com/wave-site/images/Android_Style.gif<br /> <br /><br />at onCreate I give id for the list<br /><br />lvFeed =(ListView)findViewById(android.R.id.list);<br /><br /> keep doing my staff OK<br /><br />lvFeed.setOnItemClickListener(new OnItemClickListener() {<br /><br />public void onItemClick(AdapterView _av, View _v, int _index,<br /><br />long arg3) {<br /><br />selectedFeed = m_data.get(_index);<br /><br />showDialog(UrlDialog);<br /><br />}<br /><br />});<br /><br />thanks<br />zOroAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-380980011076825656.post-50773991892146548982010-03-11T19:11:48.867+01:002010-03-11T19:11:48.867+01:00Hey zOro,
Thanks for your feedback. However, I ca...Hey zOro,<br /><br />Thanks for your feedback. However, I can't find the misspelt word. Can point out where exactly? Thanks.Stefan Klumpphttps://www.blogger.com/profile/02899343387413244345noreply@blogger.comtag:blogger.com,1999:blog-380980011076825656.post-78120885018323433152010-03-11T18:47:30.395+01:002010-03-11T18:47:30.395+01:00Hey , thanks for Sharing
i am at the final step ...Hey , thanks for Sharing <br />i am at the final step with your sample <br />us said :<br />The word '@drawable' is not correctly spelled<br /><br />@drawable/list_selector_background <br /><br />at /res/values/styles.xml/ <br /><br />thankszOronoreply@blogger.com