I usually work with multiple projects. Lately android studio added new feature of having 2+ projects shown in the same window. It looks very similar to the for example google chrome when you have open 3 tabs.
You can nicely and very fast switch between projects which is super useful.
Anyways sometimes when I open new projects, they are not "auto added" to this tab mode and I finish with having 2-3 projects and every project is in its own window.
I tried playing with View and Window part in android studio toolbar but did not manage to find solution yet. I believe it's something with Window.
Can someone please explain it here not only for me, but also for all android devs that have same question
Related
At developer.android.com I found a tutorial called "Build a simple user interface". Unfortunately, it is based on an older version of Android Studio. It tells the user to open activity_main.xml. If one does this, the user cannot find the right icons in the toolbar. I searched and someone said open content_main.xml instead. This indeed posts the right icons in the toolbar, but as one continues in the tutorial, more and more errors appear. My question is: Is there a newer Android Studio User Interface tutorial that is appropriate for the latest Android Studio, version 3.6.1?
I really want to learn how to build interfaces via Android Studio and not clumsily play directly with XML code. Thanks for any ideas!
--Steve
Visual Studio 2015, Update 3.
Create a blank solution. Choose Add New Project -> Visual F# -> Android.
Create either a Blank App (Android) or a Unit Test App (Android).
The app is created successfully.
Right click on References, and choose "Add Reference". The following dialog box pops up:
Note that when you look at the Project Properties, there are two "Application" tabs. The second one generates an error:
Once the project has been unloaded, it can no longer be reloaded. The resulting error message is:
I have reported this on the Xamarin Forums, but the process is slow. I'd like to find a workaround, but I'm fumbling in the dark. Once I've unloaded the fsproj file, I can't find any mention of "frameworkName", and I can't reload it either.
My Android settings appear to all be up to date:
Does anyone know of any workarounds that will allow me to start unit testing my existing app?
I believe I have a fix for this issue :)
Xamarin expects F# 3.x to be present, which at this point must be manually added. You should be able to download F# 3.x here
Please let me know if this fixes the issue for you.
Thanks!
Edit: I have filed the following bug as well: https://bugzilla.xamarin.com/show_bug.cgi?id=42970
Android Studio forces me to "uninstall previous version" and installs a new version every time I try to open it. I have tried to completely uninstall android studio and i have re downloaded it. The software just makes no sense. If I close my project it takes forever to get back into android studio. Importing projects is a pain in the ass as well. I have tried to follow along the Lynda simple note taking app and it will not allow me to import the material design project. I know its a little off topic but if anyone can help with either of these issues i would greatly appreciate it.
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
My situation is: I once made an android project(2.2 version) but soon needed to format my computer. After formatting, I downloaded eclipse again but when I imported my project, I wasn't able to use the 'graphical layout' menu for xml. It doesn't show me anything like the picture below.
http://img525.imageshack.us/img525/3586/19978552.png
I cleaned the project and updated the Android SDK, however, none of these seemed to work well. What could be causing this?
Try restarting Eclipse. Usually that solves the problem for me when that happens.
Right click on your layout xml file and select Open With -> Android Layout Editor. It will force eclipse to open file in android's layout editor mode
None of above worked for me. what worked for me is:
1- Select a Google APIs Project Build Target rather than one of the Android X.X ones. This setting is in right click on project -> Properties->Android.
2- Make a change in XML and save it. Now switch back to "Graphical Layout" and it will show the layout.
For some, only 2nd step works.
This Question was asked 3 year ago, I am sure that you have get your solution, however i was also facing the same problem but got the solution in eclipse, here it is:-
1)Goto help->AboutEclipse->Installation details.
2)check the version of Android DDMS, Android development tool, Android hierarchy viewer, Android native development tool, Android trace view and tracer for openGl ES in installed software tab.
3)If they have different version than you have to update all of them.
4)Goto help->check for update in eclipse and follow the instruction.
5)Then restart eclipse.
This solve my problem.
The topic seems a little bit cold, but I wanted to add it nonetheless.
I had a similar problem with my layouts recently. When i create a project it automatically creates the layouts in the latest version of Android (eclipse shows it as version 22 of android as of today). But i can't see anything. So i just change the version to, say 18, and it shows ok. Furthermore if i want to change it back to version 22 it throws and exception, saying that a class can't be instantiated. (I am probably missing a class or a library on my system.)
Therefore if you cant see the layout it might be a good idea to switch back to earlier versions for development. cheers.