怎麽自定义Android标题栏修改TitleBar的布局?

怎麽自定义Android标题栏修改TitleBar的布局


千巷猫影
浏览 1142回答 4
4回答

狐的传说

<style name="ThemeActivity" mce_bogus="1">&nbsp; &nbsp; &nbsp; &nbsp; <item name="android:windowAnimationStyle">@style/AnimationActivity</item>&nbsp; &nbsp; &nbsp; &nbsp; <item name="android:windowNoTitle">true</item>&nbsp; &nbsp; &nbsp; &nbsp; <item name="android:textSize">15sp</item>&nbsp; &nbsp; &nbsp; &nbsp; <item name="android:textStyle">normal</item>&nbsp; &nbsp; &nbsp; &nbsp; <item name="android:typeface">monospace</item>&nbsp; &nbsp; </style>&nbsp; &nbsp; <style name="AnimationActivity" mce_bogus="1" parent="@android:style/Animation.Activity">&nbsp; &nbsp; &nbsp; &nbsp; <item name="android:activityOpenEnterAnimation">@anim/anim_enter</item>&nbsp; &nbsp; &nbsp; &nbsp; <item name="android:activityOpenExitAnimation">@anim/anim_exit</item>&nbsp; &nbsp; &nbsp; &nbsp; <item name="android:activityCloseEnterAnimation">@anim/back_enter</item>&nbsp; &nbsp; &nbsp; &nbsp; <item name="android:activityCloseExitAnimation">@anim/back_exit</item>&nbsp; &nbsp; </style>定义style引用<application&nbsp; &nbsp; &nbsp; &nbsp; android:allowBackup="true"&nbsp; &nbsp; &nbsp; &nbsp; android:icon="@drawable/camera_bj"&nbsp; &nbsp; &nbsp; &nbsp; android:label="@string/app_name"&nbsp; &nbsp; &nbsp; &nbsp; android:theme="@style/ThemeActivity" >
打开App,查看更多内容
随时随地看视频慕课网APP