简体   繁体   中英

I cannot drag drop widgets in Android Studio Layout Editor, I have selected blank activity but there is no app background (frame) in workspace

I have installed all sdk and correctly installed but I have tried multiple times but I cannot fine frame of app where I can insert tool,widgets, button, etc. (Cannot add anything on workspace)

My Android studio window image: https://drive.google.com/file/d/0B8AWJ5JO_e0xVV9KVEE0TUpMYWc/view?usp=drivesdk

Looks like you've gotten rid of the Component Tree.

Try go to the Text-tab and paste

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
          android:orientation="vertical"
          android:layout_width="match_parent"
          android:layout_height="match_parent">

</LinearLayout>

or whatever root layout you need...

选择设备,sdk和主题,例如此图片: https : //drive.google.com/open?id=0B7VdJKtF9NwGNVFKeE5zZ2pxVHM

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