Thomas Lee
Thomas Lee

Reputation: 1027

Disable zoom function in tablet

Now I have created an apps in tablet which fit the screen size but there are button at the right bottom corner which can choose either stretch to fill screen or zoom to fill screen. I want to disable the function either hide that button or won't change anything after pressing anything

I have tried to trigger the keyevent of that button but there is no related keycode.

anyone can help?

Upvotes: 1

Views: 2909

Answers (2)

ivan
ivan

Reputation: 1

This can help you to disable that function:

<supports-screens
    android:anyDensity="false"
    android:largeScreens="false"
    android:normalScreens="true"
    android:resizeable="false"
    android:smallScreens="true"
    android:xlargeScreens="false" />

Upvotes: 0

Tim
Tim

Reputation: 6712

To disable that function your app has to support xlarge screens. You can set this in your manifest:

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

Upvotes: 4

Related Questions