【发布时间】:2019-10-11 14:42:29
【问题描述】:
我作为 OEM 开发人员工作,我们为所有应用程序使用通用 GUI 库。在我们的应用程序中,我们扩展了带有 ScrollView 作为我的应用程序基本布局的 GUI 库。现在我的团队正计划在应用程序中使用约束布局。我们可以在 Scroll View 中使用约束布局吗?
我使用 Android 设计工具将线性布局转换为约束布局。但 滚动不起作用。
<ScrollView
style="@style/Body_ScrollView"
android:id="@+id/no_sim_layout">
<LinearLayout style="@style/Body.LinearLayout.No_Sim">
<-- All other child views are going here-->
</LinearLayout>
</ScrollView>
想转换成
<ScrollView
style="@style/Body_ScrollView"
android:id="@+id/no_sim_layout">
<ConstrainLayout style="@style/Body.LinearLayout.No_Sim">
<-- All other child views are going here-->
</ConstrainLayout>
</ScrollView>
【问题讨论】:
标签: android android-layout android-view android-constraintlayout android-scrollview