I have downloaded the entire pack from http://developer.android.com/design/downloads/index.html
I want to know how to use those. Do I place it somewhere in the android sdk folder so that it is visible in my Graphical Layout in Eclipse editor or should i be using the individual icons and fonts as required in my project by placing it in the drawable-hdpi folder?
Thanks in advance.
If you are using one of the latest versions of the Android Development Tools in Eclipse, you can just go to New->Other, and the Android->Android Icon Set and it will show you a step by step Wizard where you can select all those images, the color, name, sizes, and it will automatically place the different versions in the corresponding folders.
You can check it out here. Also, at the beggining of the linked page, thereĀ“s another link to the web app version that allows you to easily create nine-patch images, besides icons and other assets.
You have to put them manually in the drawable-mdpi/hdpi/xhdpi folders.
Related
I'm just starting with SceneBuilder and JavaFX. I've opened a test project and am checking out SceneBuilder. Added Label to the AnchorPane and wanted to change the font of the text. But I don't see any fonts installed in my system by me. I've already had some fonts installed in Windows before (Next Art, Montserrat, Bebas Neue). Neither of them is shown in SceneBuilder. I didn't find any helpful information on this problem. I've seen youtube videos where people choose their custom fonts directly from SceneBuilder. Am I doing something wrong?
P.S.: I know that I could simply write some code and integrate any font using CSS for example. But yet want to do it in SceneBuilder.
(I use Java SDK v.14.0.2, JavaFX v.11.0.2 and SceneBuilder v.11.0.0)
Finally, I managed to make it work properly. Yet the answer was in an unanswered question here on the site :D.
Well, the reason why SceneBuilder doesn't see my custom fonts is that they weren't installed for all users.
Windows 10 stores your custom fonts in this folder:
C:\Users\<username>\AppData\Local\Microsoft\Windows\Fonts
But the system does it if you simply open the font and click "Install" button or drag-and-drop it to Start>Settings>Personalization>Fonts or C:\Windows\Fonts folder.
To make your fonts visible in SceneBuilder on Windows 10
If you already had them installed in your system:
backup your font/fonts from C:\Windows\Fonts folder
delete it/them from there (otherwise fonts will be doubled later)
Select your custom font/fonts
Right-click it/them and choose Install for all users option (but not Install)
Relaunch your IDE and SceneBuilder.
Now you should be able to choose your custom fonts directly from SceneBuilder.
That helped me, thanks to the user d3f4lt.
I imported a project and every design XML file shows the same thing.
Also I can't drag anything onto the area.
The drop down for API version shows 'null'. Do you have the appropriate SDK platform packages installed? Also, does this project build without errors?
I'm facing a very strange issue on Eclipse with Android ADT plugin.
When I try to open an XML layout file, the result is the one in the screenshot.
The Layout editor doesn't show the file name and no content is loaded. The editor stuck on "Loading editor" and if I switch to view, the XML is loaded fine.
This issue is raising up with every layout file and with every project I open.
I tried to:
restart Eclipse
update the ADT plugin
install all the packages and updates from the Android SDK Manager
no errors are shown in the console.
UPDATE
Now Eclipse is showing a pop-up error "An error has occurred. See error log for more details.java.lang.NullPointerException" when I try to open any Layout XML file.
Solution 1
At the right side of the image you attached click the android logo with 19 a drop down list will open select some different version...
selecting 20 works for me
Solution 2
right click layout file in the Package Explorer view and click
Open With -> Android Layout Editor
Right-click on your project and close all unrelated projects. Keep only one project opened at any one time.
Close all your perspectives and then open only a Java perspective.
Ensure that there is indeed a UCApplicationTheme that it has access to, otherwise change it to a different theme.
Restart Eclipse. Then restart your computer.
Then try opening a default layout from a newly generated blank Android project. Do not open the layout of a web view, even if you normally develop on Phone Gap/Cordova. Let's eliminate the web view as a possible problem.
When all else fails, reinstall Eclipse, the SDK, and ADT, completely from scratch.
And if you do get a NullPointerException, please be specific. Cut and paste on here the exact error it's giving you.
The Problem is you did update only android development tools from developer tool..
so you need to update the whole packages which are provided by the eclipse market..
Go to help-->install new software-->add the Repository-->and select all check boxes which are available in the developer tool...
Its works for me..
I am going to develop a Java application. It will collect the server counter information and shown it in a JFreeChart. I am going to develop this in Eclipse Kepler with the help of Window Builder. So anyone can help me by telling how to connect to Eclipse Window Builder with JFreeChart?
place jfreechart jars somewhere on your hard drive (i placed mine in C:\Eclipse\ext_libraries)
Open Eclipse.
Start a new Java project like you normally would.
In the Package Explorer, right click your project and then click "Properties"
In the window that comes up, click the "Libraries" tab
Click "Add External JARs..."
Navigate to the folder you created, and highlight jcommon-1.0.x.jar (which ever version you have).
Click "Open"; this will add that jar to the list of external libraries.
Repeat 6-8 for jfreechart-1.0.x.jar and jfreechart-1.0.x-experimental.jar (if you want to use the experimental features)
You should now have access to the vast array of types, methods, objects, etc. that JFreeCharts provides; you'll of course, need to add "import org.jfree.chart.CLASS_YOU_WANT" to use them, but you should be able to copy and paste various samples available on the Net directly into Eclipse with little modification.
I am very new to Android application development.
I successfully added some backgrounds to several layouts. And added media files to play. However when I rename a file in the folder structure, it shows an error that the resource does not exist.
But I can see those files in gen-><mypackage>->R.java->drawable.
Now my background pictures and resources do not appear in code.
R.layout.splashforproduct1 it shows an error for splashforproduct1.
not only splashforproduct1 but this issue is the same for R.raw.media.mp4
This is not first time I have got this issues. Please help me.
I am using Android 2.2 with eclipse.
If cleaning your project doesn't work try this: Scroll up to the top of the file and delete the import lines. Then wait for Eclipse to detect your changes and let it work out what you need to import and accept its suggestions.
I guess you just need to clean your project.
In Eclipse you do it clicking:
Project -> Clean and then you choose your android project.