Unable to see completed view layout in Android Studio

前端 未结 15 1570
不思量自难忘°
不思量自难忘° 2020-12-12 14:37

I am creating a vertical LinearLayout that will be displayed in a vertical ScrollView. I can\'t find a way in Android Studio to see the portion of the LinearLayout that is

15条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-12 15:26

    Like Drew said, creating a user defined device definition has been the only solution which worked for me. Below i show you the steps to follow:

    Step 1) Within the preview-pane, open the Virtual Device Selection drop-down and select Add Device Definition..

    Step 2) Within the Your Virtual Devices dialog click the Create Virtual Device button.

    Step 3) Within the Select Hardware dialog click the New Hardware Profile button.

    Step 4) Within the Configure Hardware Profile dialog specify (f.e.) a Resolution of 720 x 4000 px and a Screensize of 12 inch. Also setting the Screensize results in a density of xhdpi (thanks to Mete).

    Step 5) Close all dialogs and restart Android Studio. Step 6) Open the Virtual Device Selection drop-down. The new user defined hardware profile can be found under Generic Phones and Tablets.

提交回复
热议问题