所以最近,与Android Studio 2.2中有一个新的ConstraintLayout,使设计轻松了很多,但不像RelativeLayout并且Linearlayout,我不能使用ScrollView包围ConstraintLayot.这可能吗?如果是这样,怎么样?
即
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:layout_editor_absoluteX="0dp"
tools:layout_editor_absoluteY="0dp">
<android.support.constraint.ConstraintLayout
android:id="@+id/constraintLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:layout_editor_absoluteX="0dp"
tools:layout_editor_absoluteY="0dp">
<!-- Have whatever children you want inside -->
</android.support.constraint.ConstraintLayout>
</ScrollView>
Run Code Online (Sandbox Code Playgroud) user-interface android android-layout android-constraintlayout
我在处理 3.3.6 中有以下代码片段:
menuBarButtons.add(new TextButton("File", 0, 0, 20, menuBarHeight, (() -> println("Test")) ));
但是,处理给出了错误
Lambda expressions are allowed only at source level 1.8 or above
通过更改构建路径/运行配置中的 JRE,这在任何普通的 Java IDE 中都很容易修复,但我在设置中找不到任何选项。我尝试将更新的 JRE 复制粘贴到处理文件夹中,但无济于事。