Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable titlebar in eclipse android plugin Graphical layout preview?

I know you can disable the label of an activity by adding

android:theme="@android:style/Theme.NoTitleBar"

in AndroidManifest.xml, but even if I do so, the Graphical Layout tab of the layout xml file is still showing the title bar, I think there should be a way to disable the title bar in eclipse UI but couldn't find it. Has anybody ever found where it is?

like image 507
Arrow Cen Avatar asked Dec 20 '25 09:12

Arrow Cen


2 Answers

Look at the selected theme that is being rendered in preview of your layout. You'll get it at the top bar of your layout graphical preview where you select different preview screen, theme , orientation etc. Select the correct theme from there, i,e what you set in Manifest , then you'll not see the titlebar. See the image...

enter image description here

like image 175
ayon Avatar answered Dec 22 '25 23:12

ayon


You can change theme directly in Graphical Layout tab enter image description here

like image 22
Bracadabra Avatar answered Dec 23 '25 00:12

Bracadabra



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!