titlebar

Android: Custom Title Bar

跟風遠走 提交于 2019-12-17 06:11:29
问题 I have a custom title bar requestWindowFeature(Window.FEATURE_CUSTOM_TITLE); setContentView(R.layout.activities); getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.custom_title); Which works basically fine. The problem is that until the above code is called the default title bar is shown. I don't want a title bar there at all, in other words before mine shows up no title shall show up. Adding this to the manifest: <application android:theme="@android:style/Theme.NoTitleBar">

Android: Custom Title Bar

不羁岁月 提交于 2019-12-17 06:11:08
问题 I have a custom title bar requestWindowFeature(Window.FEATURE_CUSTOM_TITLE); setContentView(R.layout.activities); getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.custom_title); Which works basically fine. The problem is that until the above code is called the default title bar is shown. I don't want a title bar there at all, in other words before mine shows up no title shall show up. Adding this to the manifest: <application android:theme="@android:style/Theme.NoTitleBar">

Is there a way to make changes to the titlebar with GTK2?

本秂侑毒 提交于 2019-12-14 03:55:07
问题 I have a desktop application written in Ruby that is using GTK2. It's just a small test application to play with GTK2, but I'm having problems achieving what I want to do. Is there any way using GTK2 to get at the titlebar (apart from setting the title), specifically to either add a button to it (beside the min/max/etc, B in the below diagram) or to add an option to the menu that pops up when you click the icon on the titlebar (A in the below diagram)? I'm thinking there might not be because

How to determine title and additional infos from an open window for use with Autohotkey?

自作多情 提交于 2019-12-13 08:49:38
问题 To access and control a window, dialog or popup with Autohotkey the title of that specific window is needed. For some windows the title can be read directly if its visible, but some windows hide it. The window class and the exe (ahk_class and ahk_exe) aren't visible at all. How to gather this information reliable? 回答1: Use the Window Spy tool, which is installed together with AHK, it can be started various ways: Right click the tray icon of a running AHK script and select Window Spy Start the

Disable menu bar in Windows Mobile 6.5

久未见 提交于 2019-12-12 09:39:37
问题 I'm porting .NET application from WM5 to WM6.5. Besides new resolution I noticed different UI behavior for start menu and title bar (caption bar). My application needs to work in kind of kiosk mode where user can't exit application and bypass our authentication. For this purpose on WM5 I was hiding start button and close button. I am using following function: SHFullScreen(hWnd, SHFS_HIDESTARTICON | SHFS_HIDESIPBUTTON); Hiding buttons kind of works on WM6.5 too, but there is another problem.

Drop down menu or view on slide

元气小坏坏 提交于 2019-12-12 08:15:38
问题 I was wondering if someone could guide me on how to accomplish the following, The user has a title bar, when the user holds the title bar and drags down; it shows the user a different view. This is a view residing in a tabhost. It is similar to android's default statusbar. 回答1: You should try to accomplish this (an AccordionView-like behavior) using ViewFlipper with RelativeLayout children and attached OnTouchListeners on the header s. It worked for me. Sample application main.xml //inside

Changing the font of the application title in android

六眼飞鱼酱① 提交于 2019-12-12 07:16:14
问题 I have a typeface, I want to change the font of the action-bar title in android. Is there a way to set title typeface like that? this.setTitle(myTitle.toUpperCase()); this.setTypefaceofTitle(tf); this is not a copy question, those methods on this link (How to Set a Custom Font in the ActionBar Title?) are not working. When I try them, eclipse gives that error : java.lang.noSuchMethodError 回答1: Try this, int actionBarTitle = Resources.getSystem().getIdentifier("action_bar_title", "id",

Facebook SDK 3.0 Android login custom title bar disappears

随声附和 提交于 2019-12-12 03:45:01
问题 When I'm launching the login/register Facebook Activity using the openSession method the application title bar (we're using a custom one) disappears and another one appears. Is there a way to set the custom bar for the new Activity as well? The way I'm calling the Facebook authorization: fb.openSession(this, new Session.StatusCallback() { @Override public void call(Session session, SessionState state, Exception exception) { Logger.d(LOGTAG, "Session moved to state " + state.name()); if (null

Finding the com… to use in Android Layout

◇◆丶佛笑我妖孽 提交于 2019-12-12 03:11:43
问题 I am using this tutorial to try to replace the default TitleBar with a custom ActionBar. I am to the part where I am trying to create the xml layout for the custom title (#2 Under INCLUDING THE ACTIONBAR WIDGET IN YOUR APPLICATION), and the tutorial defines the ActionBar in the xml using com.thira.examples.actionbar.widget.ActionBar I have no idea how to figure out what to put there for my ActionBar. I believe this is called the package name. If so, how do I figure out what mine is. If not,

Android custom TitleBar - hide text

纵然是瞬间 提交于 2019-12-11 11:49:16
问题 I am using a titlebar with a background image in my android app. values/custom_styles.xml: <?xml version="1.0" encoding="utf-8"?> <resources> <style name="TitlebarBackgroundStyle"> <item name="android:background">@drawable/titlebar</item> </style> <style name="Theme.MyCustomTheme" parent="android:Theme"> <item name="android:windowTitleBackgroundStyle">@style/TitlebarBackgroundStyle</item> <item name="android:windowTitleSize">45dp</item> </style> </resources> layout/titlebar.xml: <?xml version