我在 Windows XP 中使用 Gnu emacs,默认窗口标题为“emacs@ACH1797VM2”而不是缓冲区标题,据我所知,这是我想要的,也是正确的默认行为。
阅读/sf/answers/163684671/后,我将以下行放在 ~/.emacs 文件的末尾,但行为没有变化。
(setq frame-title-format "%b - emacs")
我可以更改窗口标题
M-x set-frame-name NewName RET
但我希望它自动更改以匹配缓冲区名称。
我正在尝试更改我的应用程序活动菜单栏标题.我设法改变字体如下.任何人都可以帮我改变标题的名称.它可能只是一行,但我无法弄清楚.
int actionBarTitle = Resources.getSystem().getIdentifier("action_bar_title", "id", "android");
    TextView actionBarTitleView = (TextView) getWindow().findViewById(actionBarTitle);
    if(actionBarTitleView != null){
        actionBarTitleView.setTypeface(typeFace);
    }
我需要在自定义窗口标题栏中添加3个图像.gravity第一张图片是left.gravity第2张图像center和gravity第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>