I don't want an activity in my app to show the title bar. So I added the following line to that activity in the manifest: android:theme="#android:style/Theme.Black.NoTitleBar". Now that activity does not show the title bar, but the graphical layout editor section in eclipse shows it. I need to get rid of the title bar in eclipse too. How do I remove it from eclipse's graphical layout editor?
Depending on your version of Eclipse, there should be a drop-down menu below at the top of tht view. The Themes can be selected from there. It let's you do it this way so that you can see what your app will look like with different themes.
There is a dropdown above the graphical layout editor. This screenshot might help you -
Related
In the below image you can see that there is no ActionBar and StatusBar in the preview of any XML layout file, if anyone is facing the same issue and has solution please post it.
I faced the same issue, and got this:
No ActionBar visible
Change a setting for Show Layout Decorations (By Default it is unchecked, just check it and ActionBar will be there)
Visible ActionBar
Select the theme from above which have action bar by clicking where AppTheme is written in top pane of preview window.
I have created options menu it has some attributes like android:I'd, android : title,android:icon etc how can I set a image as android option menu and also I want title of the item below the icon not beside the icon
You cannot do this easily and you should not. What you explain sounds more like Tabs to me, which you could use instead. With these you'll get text below the icon out of the box.
I recently got into android development. I just started on my first app and was wondering how to move the app title right next to the drawer icon instead of it being in the middle like this.Example
Is there anyway to do this at all? Thanks.
Normally,the app title is right next to the drawer icon. I think your layout file may have a problem, can you show you layout code?
I have an android application that I want to add a sub menu for. The background of the application is the default which is black. All of the text on the app is white which I also think is the default. So I added in the sub menu but when I click on the sub menu the background turns to white but the text doesn't turn to black.
Any idea why the default sub menu behavior isn't working correctly? I'm hoping not to have to create styles and all that and the solution will be fairly simple.
Figured this out. This was due to me using titleCondensed instead of just using title. For some reason on sub menus it needs to use title but on the regular menu it works fine. Programming mistake by me.
I'm learning how to develop in Android Studio now and i have a problem.
I want to open Resources Window (like on a screenshot, link on it is placed below), but not by using button "A" in window of activity editor. May be some Hot-Key, or it is hidden in menus.
If i just open some resources in Project Window (for example strings.xml) i see just xml editor. I have no Design button at the bottom of the window. And in View->Tool window submenu Design is disabled.
Do any one have idea?
http://i.stack.imgur.com/aLFXp.png
For strings there will be no design tab.Only files in Layouts only have the design tab.
As far as I know, the only way to open that window is to click on that '3 dots button' on an 'text' property.