[英]Custom Image Title scaling with Screen-width
我试图为我的应用制作一个自定义的标题栏,仅此而已。
完全自定义的示例:
我的目标是使图片的大小与显示器的屏幕宽度相等。
我已经尝试删除TitleBar,只放置一个ImageView,但是仍然创建了Titlebar,并创建了App-Name和Icon ...
在manifest
的<application>
标记中设置此属性以删除标题栏
android:theme="@android:style/Theme.NoTitleBar">
在manifest.xml
这样设置您的活动
<activity
android:name=".YourActivity"
android:configChanges="keyboardHidden|orientation|keyboard" // this is hide keyboard
android:theme="@android:style/Theme.Translucent.NoTitleBar" > // hide the title bar
</activity>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.