I'm working in Eclipse and in my Android app, if I click around inside my XML file, it randomly re arranges the text and even deletes some of it! Has this happened to any of you, and if so, what is going on here?!
It is probably because there is some error in eclipse. Usually, just save it where you are and just reopen it. Yes, I do agree that you will lose the ability to undo once you close the file and reopen it :( but what can you do. hopefully, they fix i :)
Related
I have a problem because I am using a tiling window manager, everytime I open an XML file, in Android studio, then these two small windows open op and block my view of the code. I don't know how I can permanently disable the windows/toolbars/view, (or what you call them)
I use Mod+Q to exit them every time I open the XML file, and it is quite tiring, so I am wondering if there is a way to get rid of these useless panels for goods :-)
I already searched alot in the settings of android studio, and I tried to click remove from sidebar and I even found out that you can click Shift+Escape to hide it, but my fingers gets tired from all this extra clicking everytime I enter XML split mode... :-)
Please Help Me - and thanks in advance! :-)
Thanks in advance.
right click on the title, and click on attached side
then left
then you can minimize it
This problem happen after android studio suddenly close itself. I feel relieve when i see the interface output can show it's text but, it annoy me when i try to codes the interface and there is no text shown there. How can i solve this problem and what make this problem occur?
I already solve this problem by use the new render layout. I kind a hesitate to use it at first because i have face this problem before and it is also render problem. No matter how many time i change my codes according to suggestion and change the render layout. Still nothing works. I need start from scratch because i can't find the solution. But this time it's work.
i have found that android studios has never contained any way of 'redoing' a text edit (the opposite of ctrl+z)?
the option exists in the menu/ toolbar but is greyed out. it always has been and it has never functioned.
to test, i have created a clean, empty project, typed in the java class, moved the cursor to elsewhere in the class (incase back to default for some reason prevents it working), typed again.
i then have tested both ctrl+z and manually clicking the undo button, but i am simply NOT ABLE to use the 'redo' option at all. not once since i have been using this IDE.
can ANYONE please explain this behavious and how to get this functionality back? as im finding i often undo one step too many and forget what ive just destroyed.
thanks
Go to File -> Settings -> Keymap
On the right side of the screen, search for "redo" and right-click on the Redo option.
Add a keyboard shortcut (I use ctrl+Y which is pretty standard across applications).
Recently did a refreshers course in Android. I see that they changed a lot with the update. I have run into a few problems which I hope someone can help me figure out. The course gave me this code to be able to add in a button and make it activate for Android. However, this code is slightly outdated and I have attached the screenshot of the code I tried to fix according to what Andriod wants. think most of the problem is that with the new andriod sutidio I am working with this layout :androidx.constraintlayout.widget.ConstraintLayout
I would like to know in the ain activity how can I fix the problem in the screenshot attached to get this right. Please help because I can't move forward until I figure out the problem. I would like to know how do I change the "R" to the right code for constraint layout.
If you have error of R, then follow below steps.
Go to File menu in android studio and click on Invalidate cache / restart option.
Then clean your project.
So this problem is happening to me a ton and I can't believe there is not a mention of others having the same issue on the interwebs. In the course of working with Xamarin Android axil files, often I will double click one in the solutions pane and XS will stick , showing "Opening xxxxxxxxxxx.axml". The only way to get out of it is to restart XS. Right now I am doing some work that requires a single line alteration on about 30 different axml files and I have had this happen 9-10 times in the last 20 minutes. I have also had this bug happen on multiple Macs, with (obviously) separate installs of XS and it has been an issue for months. I am getting to my wits end.
On top of the above bug, I also get one that will prevent an edited axml from saving changes. So I will do a bunch of work on one, save it, close the tab out, and then open it again only to find that all the changes were not saved. I am to the point now that I have to select all, copy, close the file, open it, select all, paste and then save again, just to get my edits to save. I have lost SO MUCH time and work because of these bugs.
Is anyone having a similar experience? How can they be fixed?