Discussion Forums  >  Images, Documents, File Locations

Replies: 6    Views: 141

jlescribanoc
Aspiring developer
Profile
Posts: 25
Reg: Aug 12, 2012
VALLADOLID, SPA...
6,500
08/20/12 12:23 AM (13 years ago)

Tab Layout icons?

Hi! I use BT v2.0 / Android I set Tabbed Layout and set for each tab an icon file (.png) 56x56 But I try to use local icon file that I download before and they do not show on tab Then I try putting URL name for each icon and neither What's the problem ?
 
andydahl
Aspiring developer
Profile
Posts: 209
Reg: Jul 20, 2011
Villa Grove
4,540
like
08/20/12 04:50 AM (13 years ago)
Icons should go in the Res --> Drawable folder. You have to stop the emulator and restart anytime you add new files (I believe). Over the weekend I was having issues with local files being recognized in the emulator. Try "refreshing" after restarting if they aren't showing. Also, make sure your file names contain only lowercase letters and numbers, nothing more. Android is pretty picky about file-names. I'd make them as short and simple as possible. Good luck! Andy
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
08/21/12 05:02 AM (13 years ago)
@andydahl is right about the image files, should go into Res-> drawable If I add new files to an eclipse project I always go to "Project" -> "Clean" and then restart the emulator.
 
jlescribanoc
Aspiring developer
Profile
Posts: 25
Reg: Aug 12, 2012
VALLADOLID, SPA...
6,500
like
09/09/12 01:46 AM (13 years ago)
I see error ... Sorry .. files names ... Thanks
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
09/09/12 03:39 AM (13 years ago)
File names should be lowercase a-z and 0-9 with no underscores or special characters although I think a hyphen is ok. (But don't use them if you want to be sure!)
 
jlescribanoc
Aspiring developer
Profile
Posts: 25
Reg: Aug 12, 2012
VALLADOLID, SPA...
6,500
like
09/09/12 09:05 AM (13 years ago)
Yeah! icon-good.png icon_bad.png Thats all folks!
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
09/09/12 05:21 PM (13 years ago)
Great to hear it's working for you :)
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.