简体   繁体   中英

Custom Image Title scaling with Screen-width

Im trying to make a custom Titlebar for my App, which is no more, than an Image.

Totally custom example: 在此处输入图片说明

My Goal is to have the Size of the Picture scale by the Screen-width of the Display.

I already tried removing the TitleBar, and just placing an ImageView, but still a Titlebar, with App-Name and Icon got created...

manifest<application>标记中设置此属性以删除标题栏

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

Set your activity like this in 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>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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