I have hard time to understand how the layout folders are binded with specific preview devices. I have an app and I'm trying to support Samsung Galaxy s4 zoom device. This device is 540x960 4,3 inches and ~256 dpi as I found. I've created a layout folder for this device with name "layout-w540dp-h960dp", and I created a virtual device according to above values also. The problem is that the available preview devices for this layout folder are nexus tablets with 7", 9" and 10", and If I try to use the custom virtual device I created, the layout folder changes automatic to hdpi layout folder. In both cases the elements need corrections(much more on tablet previews, in which needed resizing and repositioning of almost all elements). Is there any way to bind the "layout-w540dp-h960dp" folder with the virtual device I made, which has the correct dimensions?
Related
So I'm starting to get to know the ropes with some basic Android development in Eclipse. Most things are working fine, and I recently built my first signed packages and installed them on my G1 and my wife's milestone. However, I've hit a snag trying to provide custom icons for my apps.
In the eclipse IDE, there are three folders in res/ named drawable-hdpi, drawable-mdpi and drawable-ldpi. In each one, there's a icon.png of the default Android app icon, in 72x72, 48x48 and 36x36 pixels respectively.
I've created a (pretty crumby) icon for my app, and I have resized it to those three sizes and replaced the original icon.png files in each directory.
But when I build the .apk, it comes with the default icon packaged. What am I missing here?
This guide is to help people start creating Themes for ADW and understand what they are doing.
Instead of just replacing images by unzipping an APK I will tell you how to create your own theme from scratch.
I had a real struggle to find all this and I now I want to share what I found out
I will provide you with links with content that you should read and write some things by myself.
How to : Setup your working environment
How to : Make your own theme
Where should I put my images/xml?
The drawables (images/xml) should be putted in the drawable folder as standard. If you want to have different images for different pixel density(xhdpi/hdpi/mdpi/ldpi) make the folders: drawable-xhdpi,drawable-hdpi,drawable-mdpi and drawable-ldpi.
the text behind the hyphen (-) is a configuration qualifier. Android looks for these and if it suits the specific device it will choose the drawables from that folder instead of from the default folder. If a resource android looks for isn't found in the special folder it will instead look in the default folder for it.
If you want different images for landscape mode you would need to create a folder called drawable-land and if you want different images when the device is both mdpi and in landscape you would create a folder called drawable-land-hdpi.
Find out more about resource qualifiers
How do I add my own icons?
Find the name of the icon you want to replace at Theme Icon Name Database
Place your own drawable in the right folder.
E.g. To change the icon for the Android stock browser in a hdpi device I would ad a file called com_android_browser_browseractivity.png in drawable-hdpi. If I want the same icon for all devices that uses my theme I could add the same icon in the folder drawable.
How do I export my theme for testing?
Right click on you project in Eclipse and select export. Click the Android folder and select Export Android Application. Press next and then next again. Choose "Use existing keystore". Press browse.
In windows find C:\Users\ENTER YOUR USERNAME HERE\.android\debug.keystore
In Linux and OS X I think it is in: ~/.android/debug.keystore
The Password is android.Press next.Choose "Use existing key".
Alias: androiddebugkey
Password:android
Press next. Press browse and choose your destination of the apk. Click Finish and you are done.
Help! ADW force closes and I can't uninstall the theme!
Look here for sulution
If there is something that needs to be added send me a PM or write a comment.
I will add: program to use to create the images and eventually a complete sample theme with documentation.
If you find the tutorial good, please post to bump the thread.
hello
can you tell me how i make one of CUSTOM DOCK using the v0.3 dock_pack.xml standard in the theme ?
thanks
Nice guide damn thats a big youtube video lol
Hi there. Just wondering if you have gotten multiple wallpapers into a theme , and if they look right on screen?
I can change the wallpaper in the theme but i want to have a couple to choose from. Also i have tried a wallpaper that has a built in 'dock' graphic at the bottom. When i add it to a theme the dock is completely below the bottom. Any hints?
i hate that if after done with my theme and it says application not installed.
somebody knows how to fix it?
Introducing my latest project, the Honeycomb Skin Maker and Tablet Skin Installer.
Honeycomb Skin Maker can modify SystemUI.apk and framework-res.apk to allow skinning system files on honeycomb tablets. Paired with the Android app "Tablet Skin Installer" skins can be applied easily with virtually no hacking required.
All images within these two APKs can be modified, and the XML files inside are modifiable to allow much greater skinning possibilities than previously possible.
Honeycomb Skin Maker can make .androidskin files which must be placed in the "Skins" folder on your internal SD card. This folder is created automatically when "Tablet Skin Installer" is first run.
The app requires root, and I can't give enough warnings about the potential to damage your tablet with this program. Ensure you have a method of recovery before attempting to install / make a skin.
Download Honeycomb Skin Maker for free from stormwave.me.uk/AndroidSkinInstaller/
(I can't post links yet).
It is still early days for this project and I have many ideas on how to expand it, but all feedback is appreciated and will be taken onboard.
Seems to be a very helpful project for themers!
Honeycomb Skin Maker v0.2
Thanks for the link and screenshot, that's a really big help.
The app is now free, I may choose to add a paid verson in the future.
I really want people to try this out as I think it'll make theming much easier.
Also, would it be possible for a moderator to add [TOOLS] to the beginning of this thread title?
Here is a market link to the skin installer.
https://market.android.com/details?...xLDEsImNvbS5zdG9ybXdhdmUuc2tpbmluc3RhbGxlciJd
I'll have to give this a test run as it looks pretty nice. Thanks for making it.
im tring to edit an .xml, because my systemui.apk will not decompile with any tools due to multilple resource errors. when I change a string in the xml with honeycombskinmaker.. it says dimension attribute not set, etc. any idea? built an .androidskin and installed on device streak 7, and doesnt show up in list in app. theres a blank listing at top but tried that, rebooted fine but didnt see changes I was hoping for: trying to edit HC 3.2 status bar clock color and change to bold. ?? thanks.
for hdpi,mdpi.xhdpi.xxhdpi ?
and if I'm storing some 20 pictures in my resources folder and displaying them one by one in "imageview" do I have to store these 20 pictures according to there size or dimensions in these hdpi,mdpi,xhdpi,xxhdpi folder? thus making 20x4 = 80 pictures ? :/
DPI : Device independent pixcel
Hey.
Android has device dpi format to display the layout.
Regarding images . if you want to support all devices screen. Yes, You need to make 80 images.
In development as developer we use mostly two sizes
1) Mobile
2) Tablet
When you put your images into drawable folder. Each mobile & tablet will access this.
I am using android studio version 3.0. App icon smaller compared to other apps on virtual and real device, I've done whatever can be done in android studio and in android asset studio, trim, don't trim and change shape, always my app icon smaller after installing. Cannot remove padding of the icon.
I figured it out how to fix it by creating separate icons with different resolutions.