在Android Android Studio的上下文菜单中添加约束布局障碍 [英] Add Constraint Layout Barriers Missing In Context Menu of Android Android Studio

查看:185
本文介绍了在Android Android Studio的上下文菜单中添加约束布局障碍的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在阅读ConstraintLayout教程,并停留在特定步骤中( https://codelabs.developers.google.com/codelabs/constraint-layout/#10 ).

I am currently going through a ConstraintLayout tutorial and stuck in a specific step (https://codelabs.developers.google.com/codelabs/constraint-layout/#10).

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

按照下面的说明,它说要添加一个垂直障碍,但我在菜单中看不到添加选项.实际上,整个菜单选项看起来都不同. 添加垂直障碍"菜单在哪里?

Per instructions below, it says to add a vertical barrier but I do not see the add option in the menu. Actually the entire menu options look different. Where is the "Add Vertical barrier" menu?

右键单击蓝图或组件中的ConstraintLayout 树.您将看到添加垂直障碍和添加水平障碍 选项.

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.

I am running Android 2.3.3.

build.gradle(模块:应用)

build.gradle (Module: 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'
}

推荐答案

我正在运行Android 2.3.3.

I am running Android 2.3.3.

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

I am going to guess that you mean that you are running Android Studio 2.3.3. In that case, there is no such menu. That is added in Android Studio 3.0, available in beta from today.

这篇关于在Android Android Studio的上下文菜单中添加约束布局障碍的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆