简体   繁体   English

如何在Activity中的androidManifest中为工具栏添加textsize?

[英]How to add textsize for toolbar in the androidManifest inside an Activity?

Toolbar title size decreases when screen is change to landscape screen, for that I want to add a textsize in the AndroidManifest Activity. 当屏幕更改为横向屏幕时,工具栏标题大小会减小,为此,我想在AndroidManifest Activity中添加一个textsize。 This is my code 这是我的代码

<activity android:name=".Transportation"
            android:label="Transportation">
            <intent-filter>
                <action android:name="android.intent.action.TRANSPORTATION" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value=".Transportation">
            </meta-data>
        </activity>

you can not change the toolbar text size in the manifest. 您不能更改清单中工具栏的文本大小。 you will need to add a style to the toolbar in the activity xml file. 您将需要在活动xml文件的工具栏中添加样式。 check out this: change toolbar text size 检查一下: 更改工具栏的文字大小

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM