I recently updated my eclipse installation with which I develop my Android apps.
Soon I found my layout files have lost the up and down arrows associated with each VIEW and LAYOUT which helps to organize my layouts.
I don't know whatelse the update, if anything, has messed up but I wonder and would appreciate any information on how to fix this issue so I can get my developments back on track, please.
Thanks
Unfortunately this is not a bug: they have been officially removed.
The new editor in 8.x might look the same, but it's completely
different underneath and we have added the +/- features back.
the "-" button should be replaced by delete anyway. You can right
click and choose delete or simply hit delete on your keyboard.
The "+" option is indeed replaced by drag and drop. We've improved
drag and drop significantly (and still improving it for the next
version), and should be good enough that using "+" isn't needed.
In some cases too, "+" isn't enough, you need more information to know
where the item will be placed (like when dropping into a
relativeLayout).
(same thing with the up/down arrows)
(source)
Related
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).
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?
So I have been trying to create a pretty basic calculator app.
I converted my RelativeLayout to a ConstraintLayout and started creating constraints.
After some time I noticed that while creating new constraints, the older ones get deleted.
Why is this happening?
I'm pretty new to Android development so I'm just trying to learn Android, my apologies if this is a low quality question.
Hoping to see some answer regarding this happening. I did some research on Google & YouTube and StackExchange, I'm sure I did everything correctly, just the constraints themself started disappearing after some time.
That could happen because constrain layout is still in beta. This will come with a lot of bug like these for instance. It could happen that it deleted all the constrains or maybe u accidentally pressed the 'clear all constrains' button in android studio.
You can check if constrains are still there by looking in to the text tab in edition to the design tab. And look for
app:layout_constraintRight_toRightOf="parent"
or any other variaty.
Since the constraint layout is still in beta. I would recommend just using the other layouts of android (Linear, grid, relative etc.).
hi I'm using Eclipse at the moment, and I'm not sure if there is a plug in for it or a better piece of software I can use. It seems fine for the Java side The problem I have is with XML editing, the line up of the characters is very inconsistent and when editing my layouts, I work with a graphic view open and a code view open, but the two are not linked, so if I double click on an element it switches from graphic view to code view in that pane. it would be awesome if I could link the two open panes?
Please see the screen shot for my desired outcome.
I understand that this question could be seen as discussion based, but I am seriously just looking for a solution here. The example I show is very simple, but some of the xml files turn out quite large and complex, and it is becoming more important to me to find a solution for this.
You can use DroidDraw for ui designing. Although it is a bit buggy, but at-least you dont need to edit raw xml files if you use this.
I am now using the Android eclipse Juno development kit, and while I still dont have dual window available, the double click select is working. there is also an Outline pane which shows the layout, although annoyingly this doesn't show comments very well.
Most Android devices feature a home screen which you can scroll horizontally by dragging (there're others that have a grid-like 2d scrolling feature too, but I'm only interested in horizontal scrolling).
Could someone shed some light for me on how this might be achieved?
First I was thinking about using a custom ViewFlipper. I could attach proper sliding animations for it, but it's not exactly the same thing. On the home screen, the "amount of sliding" depends on how far you've dragged your finger on the screen. Animations are fire-and-forget things, I can't stop them midway.
Any ideas?
Here's a video about the desired behaviour: http://www.youtube.com/watch?v=UGdWM2TQNSo&feature=player_detailpage#t=104s
You can take a look at the way Android's stock Launcher app does this here: https://android.googlesource.com/platform/packages/apps/Launcher2/+/master/src/com/android/launcher2/Workspace.java
You're primarily interested in the onTouchEvent, onInterceptTouchEvent, and computeScroll methods.
Google released the compatibility pack with some new UI Elements, which you can download via SDK Manager.
put the .jar file located in sdkfolder/extras/compatibility in your build path.
now you can use a class called ViewPager which behaves like the Android Homescreen.
Or, if you are using Eclipse and ADT plugin v12 or higher, just right click your project, choose "Android Tools" and then "add compatibility package".