android - 相同的 ScrollView 代码在另一个布局中不起作用
问题描述
我开发了一个视频通话应用程序。但在消息屏幕上,我的客户要求回复功能。在开发这个时,我复制了我在另一个布局中运行的 Scrollview 的代码。但是相同的代码在另一个布局中不起作用?
这是我的代码:
<LinearLayout
android:layout_width="match_parent"
android:layout_height="80dp"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:layout_marginBottom="3dp"
android:animateLayoutChanges="true"
android:background="@drawable/background_their_message_ll"
android:orientation="vertical">
<ScrollView
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/reply_text_view_adapter"
android:layout_width="190dp"
android:layout_height="wrap_content"
android:layout_gravity="left"
android:layout_marginStart="5dp"
android:layout_marginRight="6dp"
android:text="Reply Message Here"
android:textSize="12sp"
android:textStyle="italic"
tools:ignore="HardcodedText,RtlHardcoded" />
</LinearLayout>
</ScrollView>
</LinearLayout>
我到底哪里错了?
解决方案
推荐阅读
- excel - 左直接的VBA偏移单元
- linux - 寻找与驱动程序相关的手册页 drm-radeon (7)
- javascript - Reactjs - 本地主机和实际部署的网站中的文本样式不同
- angular - 无限循环角 NGXS 调度
- flutter - futurebuilder 中的 ElevatedButton
- java - 我的 batis java 解析 SQL Mapper 配置时出错
- java - Jpanel 2d 对象数组绘制问题
- python - 将列表转换为数据框的问题 - 并非所有元素都放入数据框
- python-3.x - 读取整数并打印整数的 Python 代码,它是 2 或 5 但不是两者的倍数
- r - 复制图 Rstudio