Custom title with image

It’s possible to set your own custom title layout, however the order of execution matters. You must do things in this order: requestWindowFeature(Window.FEATURE_CUSTOM_TITLE); setContentView(R.layout.my_layout); getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.my_custom_title); Additionally, you may need to increase the size of the title; if you don’t, then the bottom of your custom layout may just be covered up by your Activity. … Read more

Android: Custom Title Bar

I had the same issue as you. The issue is with something you have in your style. Try this out: <?xml version=”1.0″ encoding=”utf-8″?> <resources> <style name=”My_Theme”> <item name=”android:windowTitleSize”>35dp</item> <item name=”android:windowTitleBackgroundStyle”>@android:color/black</item> </style> </resources>

How to customize title bar and window of desktop application

######################################################### ## customize Title bar ## dotpy.ir ## [email protected] ######################################################### import sys from PyQt4 import QtGui from PyQt4 import QtCore from PyQt4.QtCore import Qt class TitleBar(QtGui.QDialog): def __init__(self, parent=None): QtGui.QWidget.__init__(self, parent) self.setWindowFlags(Qt.FramelessWindowHint); css = “”” QWidget{ Background: #AA00AA; color:white; font:12px bold; font-weight:bold; border-radius: 1px; height: 11px; } QDialog{ Background-image:url(‘img/titlebar bg.png’); font-size:12px; color: black; } QToolButton{ … Read more

How to set different label for launcher rather than activity title?

Apparently <intent-filter> can have a label attribute. If it’s absent the label is inherited from the parent component (either Activity or Application). So using this, you can set a label for the launcher icon, while still having the Activity with it’s own title. Note that, while this works on emulators, it might not work on … Read more