标签: custom-titlebar

如何在标题栏上放置自定义按钮?

可能重复:
航空玻璃窗上的非客户端绘画

我希望在标题栏上有一个像Skype的紧凑视图按钮这样的按钮.我怎样才能做到这一点?

例如:

Vista风格的标题栏,最小化按钮左侧有一个额外的按钮

delphi delphi-7 custom-titlebar

4
推荐指数
1
解决办法
3440
查看次数

Gnu emacs 窗口标题默认

我在 Windows XP 中使用 Gnu emacs,默认窗口标题为“emacs@ACH1797VM2”而不是缓冲区标题,据我所知,这是我想要的,也是正确的默认行为。

阅读/sf/answers/163684671/后,我将以下行放在 ~/.emacs 文件的末尾,但行为没有变化。

(setq frame-title-format "%b - emacs")
Run Code Online (Sandbox Code Playgroud)

我可以更改窗口标题

M-x set-frame-name NewName RET
Run Code Online (Sandbox Code Playgroud)

但我希望它自动更改以匹配缓冲区名称。

windows emacs titlebar custom-titlebar

3
推荐指数
1
解决办法
3093
查看次数

设置活动的标题栏名称

我正在尝试更改我的应用程序活动菜单栏标题.我设法改变字体如下.任何人都可以帮我改变标题的名称.它可能只是一行,但我无法弄清楚.

int actionBarTitle = Resources.getSystem().getIdentifier("action_bar_title", "id", "android");
    TextView actionBarTitleView = (TextView) getWindow().findViewById(actionBarTitle);
    if(actionBarTitleView != null){
        actionBarTitleView.setTypeface(typeFace);
    }
Run Code Online (Sandbox Code Playgroud)

android android-titlebar custom-titlebar

2
推荐指数
1
解决办法
1万
查看次数

将图像添加到Android中的自定义窗口标题栏

我需要在自定义窗口标题栏中添加3个图像.gravity第一张图片是left.gravity第2张图像centergravity第3张图像是right.我使用下面的代码.但第三张图片没有显示.我认为它被第二张图片覆盖.

如何在上述位置显示3张图像?

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="35dip"
    android:background="#323331"
    android:gravity="center_vertical"
    android:orientation="horizontal"
    android:paddingLeft="5dip" >

    <ImageView
        android:id="@+id/header_left"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:contentDescription="@string/header_img_dec"
        android:src="@drawable/left_logo" />

    <ImageView
        android:id="@+id/header_middle"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:contentDescription="@string/header_img_dec"
        android:gravity="center" />

    <ImageView
        android:id="@+id/header_right"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:gravity="right"
        android:contentDescription="@string/header_img_dec"
        android:src="@drawable/right_img" />

</LinearLayout>
Run Code Online (Sandbox Code Playgroud)

android imageview custom-titlebar android-imageview

1
推荐指数
1
解决办法
1444
查看次数