在Android Android Studio的上下文菜单中添加约束布局障碍

我目前正在阅读ConstraintLayout教程,并坚持一个特定的步骤( https://codelabs.developers.google.com/codelabs/constraint-layout/#10).

来源在这里(https://github.com/googlecodelabs/constraint-layout).

根据下面的说明,它表示添加垂直屏障,但我没有在菜单中看到添加选项.实际上整个菜单选项看起来不同. “添加垂直屏障”菜单在哪里?

Right click on ConstraintLayout in the blueprint or the Component
Tree. You will see the Add Vertical barrier and Add Horizontal barrier
options.

我正在运行Android 2.3.3.

build.gradle(模块:app)

apply plugin: 'com.android.application'

android {
    compileSdkVersion 25
    buildToolsversion "25.0.3"
    defaultConfig {
        applicationId "com.google.googleio"
        minSdkVersion 22
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'),'proguard-rules.pro'
        }
    }
}

dependencies {
    compile filetree(dir: 'libs',include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support.constraint:constraint-layout:1.1.0-beta1'
}

解决方法

I am running Android 2.3.3.

我猜你的意思是说你正在运行Android Studio 2.3.3.在那种情况下,没有这样的菜单.这是在Android Studio 3.0中添加的,从今天开始提供测试版.

相关文章

Android性能优化——之控件的优化 前面讲了图像的优化,接下...
前言 上一篇已经讲了如何实现textView中粗字体效果,里面主要...
最近项目重构,涉及到了数据库和文件下载,发现GreenDao这个...
WebView加载页面的两种方式 一、加载网络页面 加载网络页面,...
给APP全局设置字体主要分为两个方面来介绍 一、给原生界面设...
前言 最近UI大牛出了一版新的效果图,按照IOS的效果做的,页...