Where is this button gone in the UI editor form ADT? Or what is the alternative?
It was very useful to create new layouts for different screen configurations.
Thanks
UPDATE: This button disappeared after updating to ADT 20.0
Where is this button gone in the UI editor form ADT? Or what is the alternative?
If that is what I think it is, it is in the drop-down that, by default, is labeled "default":
When folded open, the drop-down looks like this:
You can refer this SO Question/Answers and followings links, that gives you the same or better UI development tool for different configuration.
Droid Draw
Android App Developers GUI Kits
Android UI Utils
Simple UI
App Inventor
I'm regularly using these tools for UI development for my Android Application, You can try this for your development.
EDIT :
Sorry, I misunderstood the Question and the possible answer is,
You can get this button in Android Common XML Editor in top navigation bar, from there you can create alternative layout for different density.
Related
I wanted to add a settings menu to my android app.
I followed this tutorial
and added an "activity_settings.xml" in "res/xml/" like descripted.
But now I cannot edit with the WYSIWYG editor?
Why is that? Isn't google supporting this way of creating settings anymore?
How else should I do it? Create a "normal" activity layout file and use this as menu?
Found this, but no answer why:
Where is the option to add a new preference screen in Android Studio 0.4.0?
There has never been a visual editor for PreferenceScreen.
It is an xml file of preferences that are bound to an activity on run time.
I dont see anywhere in the official docs you linked that supports the idea of a visual editor.
You can edit visually, any activity layouts, but this has always (to my understanding) been different.
I can see where you are coming from though, at it is still an xml in a layout kind of structure.
Your best solution is to run your project periodically to see the progress.
I'm developing quite a few homescreen widgets and currently I have to install them on my emulator or my phone in order to preview the layout.
Is it possible to preview the layout in Eclipse? When I open the XML of my layout in the preview mode, it displays it as it it were an activity and therefore the scaling is entirely wrong.
You can use jimu as a plugin into Eclipse to achieve it. Jimu is a drag & drop style App creation tool for Android. That's the most suitable tool to allow you achieve what you have in mind to get WYSIWYG, as it will enable you to have live previews of Android layouts. You have also the option to use it with Eclipse, or with Android Studio or any other editor of your choice.
To avoid the need to compile-install-run, jimu Mirror gives you live previews of your app that update as you code.
As you can image, the most positive fact about Jimu is that it speeds up Apps development times.
Alternatively, you can use IntelliJ IDEA. IntelliJ IDEA also allows you UI layouts preview.
Thus allowing you achieve WYSIWYG. And equally IntelliJ IDEA gives you the option to integrate it with Eclipse. Of course, alternatively you may decide to simply completely to move to Intellij IDEA. It is available in a commercial edition as well as in a free open source community edition.
IntelliJ IDEA UI designer allows you to build application UI by dragging widgets from its side palette. In version 13 you can simultaneously preview the UI you’re creating on multiple devices, by just selecting Preview All Screen Sizes from the device drop-down. Preview displays all changes made through the UI designer or XML editor in real time.
Such tools for GUI implementation from Jimu and IntelliJ IDEA remembers a little bit Qt Designer, which is available also for Android. In fact, any approach that properly works, allowing interactive Android UI quick development, is a greatly welcome valuable tool for developers that should be well used to improve productivity.
At the top of the view in Eclipse switch to the Holo Panel theme. If you need your own theme attributes then create tour own theme override that parent's to this. Then you could choose that in the editor.
it displays it as it it were an activity and therefore the scaling is entirely wrong.
If it displays as an Activity, then create a dummy Activity that mimics the home screen. Then use a theme, or use an include tag to include the layout from your widget into the cell(s) of that larger dummy home screen.
This solution isn't ideal, but it should be able to give you a better approximation (if what you're looking for is just to tweak the layout of your widget).
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.
I am using the eclipse (adt plugin) android gui editor and I am wondering how one can display all the used IDs for the single views at once? Currently Iam looking it up by right clicking and choosing Edit ID, is there an easier way to just always show the IDs while the editor is displayed? Thanks!
you can use the tool from the abd hierarchy
That gives you a grear overview of your UI application.
You can switch to the XML Edit Window.
But I think that the right click on the view is the easiest way
I'm trying to get my app to blend in as much as possible with the "standard" with the rest of my android device. It's a stand-alone app, not integrated with the OS or anything, I just want it to look familiar.
The area I'm interested in is the "settings" screen. If I look at Android's standard settings screen, it's well spaced, perfect font size, with neat pin stripes between the menu items.
How do I do that? Is that a ListView? Is it done with a regular LinearLayout?
I would love to be able to replicate the look & feel in my app. Can anybody assist?
And it's not just the Adroid OS. it's most of the "professional" apps out there:
Many thanks
Actually, this is directly part of the Android source code, so I would strongly advise you to take a look in its structure. See the Android Settings tutorial for more info.
Settings are created from the SettingsActivity (which extends the PreferenceActivity, you might want to look this too), which in their turn have their layout based on the following xml files:
preferences.xml
preference.xml
Things are quite strongly interlocked so it needs some reading...
AFAIK its a ListView. by implementing a custom ListView, you can achieve similar effect.
Moreover, you'll have to follow the Icon Design Guidelines to create such icons for ListView rows