Android(安卓)ConstraintLayout Toolbar
16lz
2021-01-26
.....
android:id="@+id/toolbar"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:background="@color/colorAccent"
tools:layout_editor_absoluteY="0dp"
tools:layout_editor_absoluteX="8dp">
...
This view is not constrained, it only has designtime positions, so it will jump to (0,0) unless you add constraints
layout_editor_absoluteY 是绝对位置,删除就好了
更多相关文章
- 自定义对话框 位置 大小等
- android > 获取当前位置
- Android(安卓)Media Recorder录音播放源代码
- Android带删除按钮的ListView
- 融云清空历史消息 Android(安卓)端
- Android(安卓)ApiDemos示例解析(101):Views->Auto Complete->3.
- android 开发-系统设置界面的实现
- Android通过GPS或NetWork获取当前位置信息
- Android(安卓)Studio常用快捷键---不断更新中