Xamarin layout designer view not working properly - android

I am working on visual studio for android development on Xamarin platform. I am facing a weird issue. If I make some changes in my .axml file 2-3 times, the designer vie stops working. It keeps on loading but do not show anything. I have to restart my visual studio as admin to check the design. Any help?

There is a bug I believe in the current version of Xamarin. Most users have downgraded to 4.1.2 to fix this issue.
See this post: https://forums.xamarin.com/discussion/77992/axml-layout-designer-inside-visual-studio-keeps-loading-forever

Related

Why is button showing on AVD but not the Designer?

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

Why android studio crashes automatically?

My studio's current version is 0.9.9 (recently updated), now here is the history:
There was some problems when I shifted eclipse to studio. The last problem happened when I updated it. My app became full of error. One of them was cannot resolve Symbol ActionbarActivity. And so many others. I spend a day behind it and gave up. I recreated my app from first to last with the same resources, then it became totally good to go. Three days later(today) again another problem raised. I turned on my laptop, opened Android studio and it says Rendering problem No Android SDK found. Please configure an Android SDK. But last night it was running fine. Now there is no design window.
I am wondering that why the errors come automatically. I don't do anythings in the settings stuff of the studio. I just develop my app. I just write code and make my app. So whats wrong with the studio. It crashes without any reason and I have to waste the half of the time. Is this a kind of jokes? It too much irritating. Updating latest version is not the reason. The problem is occurring from whenever I downloaded the Android Studio and shifted from Eclipse to it. With 2 or 3 days intervals it comes with new problem.
I suggest you to try fresh Installation or, As it happens because of some internal Intellij's libraries problem.

Loading data for Android when switching views in Eclipse

Came over a very strange problem with Eclipse.
I'm using Android platforms 4.0 to 4.4. And when i'm for example switching the tabs or opening a new tab in the top that shows the current opened layouts/views Eclipse starts to load all platforms again (Loading data For Android 4.x), from 4.0 to 4.4, and then rebuilds the workspace.
This makes Eclipse totally unusable as it's crashes when switching views. I hadn't this problem a couple of days ago, it started acting up after I received a update from Eclipse for two/three days ago.
Anyone knows what the problem is? Or can help me solving it?
I experienced the same issue, and the solution was to download the SDK again from Android: https://developer.android.com/sdk/index.html
I tried to revert the ADT from 22.6.0, which was the one giving this errors, to 22.3.0, but couldn't do it manually. So the solution was to download the SDK again from Android, because ironically, the online version at the time of this answer is still the old version of ADT (22.3.0), which works.
Hope it helps!

XML Layout Misbehavior with Eclipse-ADT

I am facing something strange issue with Android XML Layout Editor.
Whenever I am switching from Graphical Layout to Code Layout, It shows everything perfectly and when I'll click or move up down via keyboard arrow keys, it behaves strange and part of xml line are becoming visible/invisible.
Xml code is there, its not changing.
Have a look at attached video link.
http://screencast.com/t/rY1gKPY9vn
My current Config :
Eclipse SDK
Version: 3.7.2
Build id: M20120208-0800
Android Development Toolkit
Version: 20.0.3.v201208082019-427395
Update :
issue is still there with Eclipse with 4.2 also
Yes, it's a known issue and I have also faced this strange issue with Eclipse, the solution to it is to close the XML file and open it again. If that doesn't work, restarting Eclipse should also solve it.
the same issue i was facing in XML file. The solution is either reopen the file. And the perfect solution is upgrade your eclipse version to JUNO. That will not create such type of irritation problem..
Have fun.

Mono for Android VS2010: Cannot view layout in designer

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.

Categories

Resources