Eclipse Android GUI Editor: Show IDs? - android

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

Related

Can I inspect any app's layout to find out which components they are using on Android device?

Can I take an app that I like and inspect it to see which components it is build off?
Take for example the menu structure of Androids "Developer Options" settings.
Say that I want to see if it uses one big RecyclerView, a NestedScrollview with a RecyclerView or a RecycleView with multiple nested RecycleView's.
Would that be possible?
I think what you need is something like VirtualUETool. VirtualUETool can inspect other app's UI elements without their source code.

No visual editing of preferences screen anymore?

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.

android: how to debug UI

I am new to android technology, while developing application i need to debug the UI component like why this textview is not displayed or so.
Like we have Log facility for the java code, do we have similar kind of thing for xml also.
so that we can verify which layout is overlapping with another or find out other distortion in UI
Thanks for your time.
In Eclipse, there is a helpful tool to see your UI hierarchy. When in debug mode, open the "Devices" window (if you can't find it: Alt+Shift+Q, Q). Then click the "Dump View Hierarchy for UI Automator".
You can see some view attributes there as well as the way it's build up.
There's also a hierarchy viewer in the SDK tools/ directory, but I haven't used it yet.
It does have one. A very basic one. The problem is, the 'debugger' doesn't know what you want. Your TextView doesn't display is a problem for you because you want it to display. But the debugger though you left the code like this simply because you will programmatically add the text during run time. So debugger for UI wouldn't solve these kind of problems , but it will give you tips and warnings like this :

Where is the Create Button form the UI editor?

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.

Android editor Using Eclipse Link XML views to edit code and view graphic?

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.

Categories

Resources