如何增加标题栏的大小在Android应用程序? [英] How to increase the size of the title bar in an Android application?

查看:104
本文介绍了如何增加标题栏的大小在Android应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何增加连接到任何屏幕顶部的机器人

How to increase the size of the title bar attached to the top of any screen in android

推荐答案

这是Android的标题栏,你可以在不增加它的大小。它需要这个功能在你的应用程序,那么你可以创建一个自定义标题栏。

This is android title bar and you can not increase its size. It you need this feature in your application then you can create a custom title bar.

使用此code。在您的活动中删除这个默认的标题栏。

Remove the this default Title bar by using this code in your activity..

getWindow().requestFeature(Window.FEATURE_NO_TITLE);

在您的manifast您的活动标签内或本。

or this in your manifast inside your activity tag.

android:theme="@android:style/Theme.NoTitleBar.Fullscreen" 

,然后在XML文件中创建一个自定义标题栏。

and then create a custom title bar in your XML file.

这篇关于如何增加标题栏的大小在Android应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆