titlebar

Minimize, Maximize and close buttons of Windows title bar does not work on single click when pop up window is open

白昼怎懂夜的黑 提交于 2019-12-11 09:07:12
问题 While my popup window is open, The first single click on minimize or maximize or close button does not work. The first Click on these title bar buttons closes the popup menu and shifts the focus, And then on the second click the minimize/maximize/close of window works. Is there any way - where we can activate these title bar buttons on the first click itself ? MainWindow.xaml <Button Height="54" Width="50" Margin="100,0,0,0" x:Name="btnNotification" FontFamily="Segoe UI Symbol" FontSize="20"

Detect height of a window's title bar

穿精又带淫゛_ 提交于 2019-12-11 08:25:15
问题 I am using ClipCursor to lock a mouse in a window. How do I detect the height of the window's title bar and border of the window (so the only place the mouse can't click the title bar and the minimize, restore and maximize button)? The height of the title bar depends on OS (I can't give a definite value for this). I'm not sure if the borders have different widths with different operating systems. I'm using windows XP on classic mode. When I change to themed mode the height of the title bar

How to make a custom tite bar without changing the AppTheme to CustomTheme?

≡放荡痞女 提交于 2019-12-11 06:51:35
问题 I dont like how the CustomTheme looks and I want to keep the AppTheme. but when I use a customized title bar with AppTheme it crashes telling me I cant combine numerous styles. How can I do that? Thanks! 回答1: First crate your own custom layout for the ActionBar tab_header.xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="match_parent" android:gravity="center" android:layout_height="match_parent"> <TextView

android studio not showing title bar in preview

谁说胖子不能爱 提交于 2019-12-11 03:15:06
问题 The preview of my app in android studio does not show title bars, however when I run the app on my phone the title is there. Why is this and how can I get the software preview to display this? 回答1: Try this on your Preview pane. 回答2: This is an issue with the API 22 (5.1) SDK: https://code.google.com/p/android/issues/detail?id=159793 https://code.google.com/p/android/issues/detail?id=159780 As a temporary workaround you can either uninstall the API 22 SDK and revert to 21, or just tell

Navigation Drawer Below Transparent Actionbar

天大地大妈咪最大 提交于 2019-12-10 22:29:34
问题 I'm getting a transparent Actionbar by using the following code that @GunnarKarlsson shows here: Transparent Actionbar: custom tabcolor getWindow().requestFeature(Window.FEATURE_ACTION_BAR_OVERLAY); ActionBar actionBar = getActionBar(); actionBar.setBackgroundDrawable(new ColorDrawable(Color.parseColor("#330000ff"))); actionBar.setStackedBackgroundDrawable(new ColorDrawable(Color.parseColor("#550000ff"))); It works pretty much perfectly with the exception of how it affects the navigation

Android - fullscreen only in splash screen not in app

吃可爱长大的小学妹 提交于 2019-12-10 11:36:14
问题 I want to show my splash screen on fullscreen. I use this: <activity android:name="app" android:label="@string/app_name" android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> But when my splash screen finish, my app appear back of my status bar.

Customizing title bar in Android. Getting Exception You need to use a Theme.AppCompat theme

我是研究僧i 提交于 2019-12-09 03:56:09
问题 Search a lot but nothing found useful. I am creating a simple app with my customized Title bar but not getting so far from days. I am using this https://developer.android.com/training/basics/actionbar/styling.html. Manifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.title" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="11" android:targetSdkVersion="17" />

Windows Form with Resizing Frame and no Title Bar?

点点圈 提交于 2019-12-08 21:30:25
问题 How can I hide the title bar from a Windows Form but still have a Resizing Frame? 回答1: Setting FormBorderStyle = None will remove the title bar (at both design and run time) - and also remove your ability to resize the form. If you need a border you can set: ControlBox = false Text = "" 回答2: Set the ControlBox property of the form to False, and the Text property to empty string. The form will open with no perceivable (to the user) title bar, but they will be able to resize the form. 来源: https

Gradient styles

梦想的初衷 提交于 2019-12-08 17:36:02
问题 In my Android application I've hidden the default title bar, introduced a TabView and added my own titlebar under that TabView's tabs. At the moment, I'm using the ?android:attr/windowTitleStyle style which makes my new titlebar look gray and gradient. It looks pretty good, but my screens are looking pretty grayscale. I'd like to spice things up a bit by making this titlebar a different color gradient. What am I looking at here? Creating my own image and using it? The ?android:attr

Change the text color of the activity title

为君一笑 提交于 2019-12-08 14:00:02
问题 In Xamarin, how can I change the text colour of the text in the ActionBar ? I have changed the background colour successfully, but not the text colour. Here is my code: ColorDrawable colorDrawable = new ColorDrawable(Color.White); ActionBar.SetBackgroundDrawable(colorDrawable); this.TitleColor = Color.Black; I cannot see a correct method in the ActionBar object, and specifying this.TitleColor does not work correctly. 回答1: did you try this? int actionBarTitleId = Resources.getSystem()