How to change the height and width of the switch in the Android system

Updated on technology 2024-03-26
4 answers
  1. Anonymous users2024-02-07

    That's just one set of my own.

  2. Anonymous users2024-02-06

    I am Hongchen, and I speak for myself.

  3. Anonymous users2024-02-05

    1. Set it in mainfest. Agree with the upstairs.

    2. It can also be set in onstart or oncreate.

    If you say setting up the system,This depends on how the system source code is configured,Remember it's not too clear,In it,There are a few functions that are based on some constants to set the settings of each horizontal and vertical screen。 You shouldn't be making a system, because no one manufacturer will make all the contents of the system die.

  4. Anonymous users2024-02-04

    5. Modify the vertical screen display when booting up.

    In this case, the source needs to be modified and recompiled.

    frameworks/base/core/res/res/values/

    Before: 90

    After: 0 Another: Set the orientation of the main window of the activity, the direction in the array will be set to the screenorientation property in the class, and the value of the screenorientation property must be the following constant value.

    * Do not specify a direction, let the system decide the best direction for the activity.

    * You want the activity to be displayed on the landscape screen, that is, the width of the landscape should be greater than the height of the portrait orientation, and the influence of the orientation sensor should be ignored.

    *You want the activity to be displayed on the portrait screen, that is, the height of the portrait should be greater than the width of the landscape, and the influence of the orientation sensor should be ignored.

    * Use the current preferred orientation of the user's device.

    * Always maintain the same orientation as the screen, regardless of whether the activity is in the foreground or background.

    *The direction of the activity is determined by the physical orientation sensor and is displayed in the direction in which the user rotates the device.

    * Always ignore the judgment of the orientation sensor, when the user rotates the device, the display does not follow the rotation.

    *I want the activity to be displayed on the landscape screen, but you can change it according to the direction indicated by the orientation sensor.

    *I want the activity to be displayed on the portrait screen, but you can change it according to the direction indicated by the orientation sensor.

    * Expect the activity to be displayed on the landscape screen, but in the opposite direction to the normal landscape screen.

    *Expect the activity to be displayed on the portrait screen, but in the opposite direction of the normal portrait screen

Related questions
9 answers2024-03-26

Dongfeng double rear axle blister dual-purpose fire truck size is length, width and height = 9550 2500 3400 (mm). >>>More

12 answers2024-03-26

The first thing to do is to let your folder generate a file,(Copying one directly into it has no effect,My document is okay)The following is an example of changing the background of the *** folder under the E disk: >>>More

7 answers2024-03-26

The name of the rural collective land use certificate may be changed. First apply to the housing management office for the house ownership certificate of the house, and change it to your own name, and then apply to the township land office with the changed real estate certificate to handle the registration of the change of land use right in a prudent manner. In principle, the collective land use certificate can be transferred, but the transfer object must be the villagers of the rural village and the group. >>>More

7 answers2024-03-26

The width of the ramp at the entrance of the accessible building should not be less than, the width of the ramp for the indoor walkway should not be less than, and the width of the ramp for the outdoor access should be less than. >>>More

15 answers2024-03-26

The length of the international standard volleyball net is meters, the height is 1 meter, the wire diameter of the net has three standards, the mesh is 10 * 10cm square, the upper edge is 7cm 320 advertising cloth, the side & bottom edge is 7cm 320 advertising cloth, and the steel wire of the net is rubberized steel wire. >>>More