[英]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.