Intellij idea has a list of most used vector icons in "Asset studio", appreciate for filtering icons by category, But how can I search a term among those icons to find it a bit easily?
Regardless of what you are using Android Studio or Idea IDE I suppose you can just start typing while select icon window is active.
I am on OS X and it looks a bit different here:
P.S. The screenshot is from Android Studio 3.0 Beta 2, but Android Studio 2.3 stable has exactly the same asset studio interface.
P.P.S. Android Studio is based on Idea IDE + Android plugin. Asset Studio is available in both of them and works identically. Just Checked.
Related
Not sure where to post this issue I have with Android Studio IDE, I hope it can be answered here.
When I open the Asset Studio in Android Studio by right clicking on my Android Module and selecting new -> Image Asset I cannot get past the first screen. Even when I leave this default, when I try and press next the Asset Window start shaking shortly after a second or two.
I encountered this problem with a prior version of Android Stuido but an update to the latest version did not help.
I tried updating the android SDK and build tools since they are obviously related but without success.
I tried restarting Android Studio but the "bug" still remains.
Perhaps I am doing something wrong, I created a video of my workflow and the issue I am encountering.
I had the same problem.
In the Legacy tab, I set the Google Play Store Icon to No and I could pass the first screen.
I had exactly the same problem while I was trying to create adaptive icon from vector graphics.
What helped me was that I need to set Size to 108 dp x 108 dp when I imported Vector Asset (res -> right click -> New -> Vector Asset).
I have faced the same issue with vectors that had a dashed line. Android Studio doesn't support dashed-strokes by default. You can check what is not supported in this link Dashes stroke-dasharray in Android Vector. So in such cases Android Studio just doesn't show any error upfront.
In your case I see its happening even for normal vectors.
To check why its failing notice every time it fails the exclamation mark at the extreme bottom right of Android Studio turns red and flashes. Just close pop up window of Android Studio and click on the red exclamation mark. It will give you the reason why its failing. Although there was nothing much I could do about it maybe you can figure out whats wrong.
I know it's been answered but here's another thing that might fix someone else's problem when adding an asset and getting the weird shaky window error: check the asset dimensions you're importing.
I was trying to add a Vector Asset with dimensions about 23dp x 1077dp (really big height and small width), and for some reason Android Studio didn't accept it. After changing it to a dimension bigger than 170dp x 8137.3dp (it scales automatically) it worked. Then I went on the .xml file and changed it to a dimension I wanted, preserving the proportion of mostly 200dp in width or height as prompted by Lint in a warning.
I don't really know why it worked but I managed to add the asset. If anyone knows it, feel free to explain.
Steps:
1) Have you tried setting it manually through file explorer/directories etc.?
2) Maybe try a drawable importer? Like this.
3) Have a look at this answer, it might help.
4) Try completely uninstalling Android Studio, re-download and install again, if all else fails.
As per your project structure, I believe this is not a native application.
That's right, Flutter projects are not Android projects. Many Android tools are enabled only for projects that have an Android facet. Adding that to Flutter projects causes many problems, so we don't do that and this functionality available for only in native android application.
Furthermore,If you want to use may be it'll help you.
Open android studio File->Open folder->navigate to your flutter project and select the Android folder. Wait for it to sync, then navigate inside the Android studio folder and find the res folder right click on it and choose New you will see the Image asset studio.
This happened to me and the problem was that the dimensions of my source image were too small, which I think is the takeaway from all the other answers as well.
In my case the issue was caused by some unusual project structure, including some source directories added manually within the module.
The only solution was to create a new sample project in Android Studio, use the Asset Editor, generate all the assets to finally copy those to my "unusual" project.
One could also read the IDE (Android Studio) logs to see exception that are being thrown when the editor windows shakes as it's described by the Author of this thread.
I need some help with the designer of the visual studio/xamarin on the android.
I'm kinda noob with development, but I was hoping to do some examples, but the designer isn't showing up...
The tutorial videos, from the Xamarin itself, only says it need to create a new project and play with the designer, but when I do that, the designer is empty and I can't do nothing...
Here some pictures from what I have and from what I see on videos:
There's a couple things I'm thinking here. It's quite possible that your installation of Xamarin didn't go according to plan. Check your detailed Visual Studio version information in "Help -> About -> Copy Detailed Info".
Additionally, you might also be running on an outdated version of the Android SDK or there might be an issue with your Java config. Ensure you've got the Android SDK installed and updated and that you're using a current version of the Java SDK.
I also see there's a white box showing up on your Designer screen. Does that ever populate with an error? Usually, that will show some info on what exactly is going wrong.
Lastly, you can also check your logs in the following directory for more hints as to what's going on:
%LOCALAPPDATA%\Xamarin\Log
I hope this helps!
I am very new to android apps, I do mostly VS2013, and I was just trying to do a hello world or anything basic. Why is there a tiny "hello world" on my design for my .xml file, but the button I added shows on the AVD? I'm really confused.
EDIT: To clarify, this is a brand new project. My question specifically is how can I make sure I can see on the design/text tabs what is going to be on my emulator? All I have done is drag/drop from the Palette onto the screen,and see nothing. What should I be doing instead?
The design device is the same as my AVD.
All: The solution was an issue with the rending, and is apparently a bug with the newest version of the Studio. This link I found had the information and solutions to help me with it:
Rendering problems in Android Studio v 1.1 / 1.2
How do I get the Android Lollipop system icons in Android Studio for use in my app? I am strictly working on Lollipop and whenever I try and do android:icon="#android/drawable/... I always get old Kit Kat era icons. I want the icons referred to on this page here. But I get stuff like this:
EDIT: Found a neat little plugin available for Android Studio. I created an answer to this question. Hopefully it will help others in the future who are looking to do the same.
After some more digging I found a great solution. Not quite exactly built in but it is a great alternative and I didn't find a 100% definitive answer on here so I'll make this post for future people.
So there is this plugin for Android Studio called Android Drawable Importer by a man named Marc Prengemann that will allow you to import whichever icons from the Lollipop system icons, given that you download them first.
To download them go here and you can download, they are also available on github. But, the plugin also offers the ability to download them. Your choice.
So to get the plugin go to:
WINDOWS: File > Settings > Plugins > Browse Repositories
MAC: Android Studio > Preferences > Plugins > Browse Repositories
and at the top search for Android Drawable Importer. It should look similar to this:
Click install and Android Studio will need to restart.
Next you are going to have to go back to:
WINDOWS: File > Settings > Android Drawable Importer
MAC: Android Studio > Preferences > Other Settings > Android Drawable Importer
and here is where you either download the icon pack or provide the path you stored them if you previously downloaded them (that's what I did here). It will look similar to this:
Now you are good to go. To add an asset to you project, right click on
WINDOWS/MAC: Drawable > New > MaterialIcons Import like so:
You will get a nice little popup window like this that will allow you to look through the different categories like alert or hardware or social and choose the icon, size, and which dimensions you want (hdpi, xhdpi, etc..):
Hope this helps some folks in the future. You don't only have to use it for material design icons, you could put whatever icons you want in the root path. Again, I didn't make this, just sharing the wealth.
It will depend on your target android version and also on the version you use for rendering in android studio.
Open the preview panel on the right of your xml, on the top left you can choose 'Android version to use when rendering in the IDE'. That only changes what you see in the IDE though.
Your app theme could also be responsible.
I installed Mono for Android with the intention of using Visual Studio 2010 to design android apps. I am able to compile and deploy applications, but I am not able to view the layout designer. When I double click on an .axml file it opens in source view and there is no context menu option such as "View in designer." I am able to use MonoDevelop to create the layout, but I shouldn't have to do that.
Here are some screen caps:
Any tips?
It seems to simple but right clicking on the Main.axml in Visual Studio and select and choose Open with. Then select Android Designer should do the trick.
Despite that Android Designer can be set as Default it appears not to be working like that. I should say that's a BUG in VS and/or Monofor Android.
Are you shure to have the latest Mono for Android installed? (Version 4.2.4)
The Open With Dialog should have an entry "Android Designer".
Select this now and click "Set as Default".
Did a full uninstall, reinstall and reboot.
At first it didn't seem to have fixed it - my existing hello world project still wouldn't open the designer.
I tried creating a new project and ta-da all good now! Very odd.
I've very pleased to have gui designer. It really helps level the learning curve when learning a new platform - nice work Xamarin.
I did 3 installs until it finally took. I uninstalled then reinstalled and it still didn't work. I then just did a repair and it finally worked. Just keep reinstalling and you'll get it.