http://www.youtube.com/watch?v=e1qG6z6BbYQ
at 1:22, the way he edits the XML for resources is totally different from mine. Mine is only coding and his is more visual. Does he use a custom plugin?
No it is the normal Eclipse with AndroidSDK.
The bar at the bottom you can choose between xml-View and "Layout" (which is the more "Visual")
Related
I've just recently started coding with Eclipse so I don't know a whole lot about it. I was wondering, how do you change the background of and activity and also the color/pattern of buttons in Eclipse while working on an Android Application.
Thank You
Actually all this stuff should be accessed from xml editor. If you have some difficulties, just open the xml representation of layout and feel free to modify it the most common way(editor independent). The switch between the xml text and designer should be in the end of editor.
Also you should look for properties window on the right side of your editor if you want to edit design properties from UI representation of layout
In res>layout>xml, android:background="#000000" or any color you want inside " "
When I edit XML files in Eclipse using Android Common XML Editor I am only able to use the graphical layout editor. I see in pictures online how there are supposed to be tabs at the bottom for Graphical and Source but I have none. How do I get this fixed? Using Eclipse 4.2.1. Thanks!
That is probably a problem of Unity not displaying the editor correctly. I bet that you can still switch between the tabs using the keyboard. Press ShiftAltF7 to navigate to the previous page and AltF7 to navigate to the next page of a multi page editor.
I faced same problem so far.
Solution:
==> In your Layout editor there is a android version configuration dropdown box, from there select proper android version. (Eg. "Android 2.3.3")
try this and let me know.
I have discovered that this problem occurs after installing custom theme for eclipse. In my case it was "Dark Juno" theme. Bring back original theme and everythink will be all right again :-)
------ EDIT ------
You can use MoonRise dark theme ( https://github.com/guari/eclipse-ui-theme ). Bottom bar works perfectlly and design looks good.
Please try to use OpenWith ->Layout Editor on the xml file witch u want to open from project explorer under res folder
How do I remove the android emulator's Status Bar inside Eclipse's Graphical Layout? My application is set to run in full screen mode, but I'm having a hard time in layouting because the status bar is present in the graphical layout of Eclipse.
You can just change the theme in the drop-down list (or perhaps better said in Android terminology: Spinner :)) at the top right corner in the layout editor to one of the *.NoTitleBar.Fullscreen options.
Edit: added screenshot.
By the way, if you have a hard time creating layouts that properly scale with or without the titlebar/actionbar, you may have to rethink if you're going down the right path. If you're developing for a specific (number of) device(s), then I haven't said anything.
you can select the theme spinner and select the "Theme.NoTitleBar.Fullscreen".
Using code:-
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
above written code placed in oncreate method
I had the same problem. In debugging process, my graphical layout was perfect on the Eclipse but not correct on my phisycal device because of the statu bar at the bottom of the graphical layout on Eclipse.
I resolved this problem modifying the Theme of the layout inside eclipe and choosing "SearchBar", as shown in the pictures below. I hope to solve this question.
See the setting on Eclipse
my Android xml fle Design look like this.
but i want to view like this so how can do this?
Right click on xml and select open with -> Android XML Resources Editor and also
you can try open with -> Android Layout Editor to have Design Layout tab.
I also faced this problem earlier for all xml files but not for manifest file ,now it resolved
in my application our requirement is When the orientation of the activity changes place the appropriate land folder and xml files.in that we give wrong naming conventions for the layout folders instead of layout-land,layout-land-hdpi,layout-land-mdpi,layout-land-ldpi,layout-port,layout-port-hdpi,layout-port-mdpi,layout-port-ldpi when ever we correct the naming conventions it comes normally.
I'm just starting out working with Android and it was recommended to me to try and find an Eclipse WYSIWYG plugin that could handle the top layer UI.
So far my searches haven't come up with much other than App Inventor (which won't really do the trick).
Any help would be greatly appreciated.
Mt
In eclipse, you can get a WYSIWYG editor for the xml layout files. It can be found in the tab called "Graphical Layout" when you have a layout xml file open.
For example, if you create a new project, in the layout folder there is the main.xml file which automatically created. If you open this file, you should see two tabs at the bottom left of the editor. One which says "Graphical Layout" and another which says "main.xml". Open the Graphical Layout tab and it's as close to a WYSIWYG editor as I've found.
This is natively supported by the android sdk.
Try DroidDraw
http://www.droiddraw.org/