开发者

Change app window size from manifest file

开发者 https://www.devze.com 2023-03-21 20:53 出处:网络
I want to test an app on a smallscreen device but all I have开发者_如何学Go is a Samsung Galaxy tab. So I thought adding

I want to test an app on a smallscreen device but all I have开发者_如何学Go is a Samsung Galaxy tab. So I thought adding

<supports-screens android:smallScreens="true"></supports-screens>

to the manifest will decrease the window size. But it doesnt work! I even tried setting support for large and normal screens to false but in vain. So I had to change the app's window size within the onCreate of the main activity. But I want to know why wont the above line in the manifest make any change to the window?


If you are viewing the app on Tablet and willing to get the small screen size view, you may also need to add this attributes :

android:xlargeScreens="false"
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号