android-constraintlayout

    0热度

    2回答

    我学习如何使用ConstraintLayout构建响应式UI,方法是遵循此article。但是我的Android项目中看不到ConstraintLayout选项。 的build.gradle apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "23

    0热度

    1回答

    我使用android.support.constraint.ConstraintLayout与四个EditText和一个Button。当点击第一个Edittext时,SoftInput Keyboard可见,然后EditText和Button隐藏。 我试着在ManiFeast.xml android:windowSoftInputMode="adjustResize" android:window

    2热度

    3回答

    好的,这里是我的活动的XML。 <?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.c

    0热度

    1回答

    我想创建一个应用程序,可以动态地将视图添加到ConstraintLayout而不需要数据库。我把LayoutParams包装在这里,看看他们要去哪里。我已经可以添加视图,但我不知道他们为什么继续前往屏幕的左侧,即使我为每个视图使用了不同的LayoutParams,其大小也是一样的。利润率似乎也不如此。下面是我的代码: ConstraintSet set = new ConstraintSet()

    0热度

    2回答

    我试图让两张卡片成为相同的正方形,每边都有8dp的边距水平对齐。 事情是这样的: 我一直在使用约束布局和卡片的比例设置为1的尝试:1,卡对齐,并为正方形,但他们是小得可笑和不匹配整个布局。 这里是我的布局: <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent"

    0热度

    1回答

    我正在使用RemoteViews显示通知。当我使用ConstraintLayout时,会发生通货膨胀错误。当我用RelativeLayout替换ConstraintLayout时,则错误得到解决。 为什么ConstraintLayout不会膨胀? 我在运行时遇到以下错误。 错误 Couldn't inflate view for notification com.inadev.datasync.e

    0热度

    2回答

    我无法实现这个。 我想让viewB跟随viewA的开始。 然后,我想创建一个约束,从viewA的开始到它的父节点有一个空间。 。 代码我想: <android.support.constraint.ConstraintLayout android:layout_width="match_parent" android:layout_height="wrap_content"

    4热度

    1回答

    下面的视图需要是正方形的。我也希望将观点限制在一定的范围内。某种程度上,ConstraintLayout在与同一元素上的dimensionRatio结合使用时会忽略最大宽度/高度属性。 <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" x

    0热度

    2回答

    我使用约束布局作为根与3子视图: 的TextView 按钮 SurfaceView(View.Visibility =已删除) 我想当我点击Button时,SurfaceView出现(View.Visibility = Visible)from: Y = - SurfaceView.height 到: Y = 0 ,当我点击第二个时间上的按钮,SurfaceView消失(View.Visibili

    1热度

    1回答

    由于新的约束布局已经推出,它在默认情况下,只要你创建一个新的活动创建的,按照约定我已经换了约束布局内其他视图组(线性布局,相对布局等),在任何时候了吧? 或者可我只是删除约束布局,并继续使用其他View组作为根布局? 我问,因为我想澄清一下,如果谷歌将使其成为常态有包裹约束布局内的所有查看组或最终完全停止使用旧的视图组。