android - 在活动上拖放片段
问题描述
我有很多像recyclerview这样的线性布局的片段。我的意思是我在活动中有片段,片段有线性布局(垂直)布局。线性布局有片段。我想改变片段的位置,比如在recyclerview中拖放。如何做到这一点吗?你能帮帮我吗?
<ScrollView
android:id="@+id/scrollView_container"
android:background="@color/white"
android:paddingTop="@dimen/window_small_padding"
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="wrap_content"
tools:context=".fragments.MainFragment">
<LinearLayout
android:id="@+id/linear_layout_widget_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="6dp"
android:orientation="vertical">
</LinearLayout>
</ScrollView>
解决方案
推荐阅读
- react-native - react-native 每个下一个 post call 都没有正文
- mongodb - 将 MongoDB 的 ObjectId 集成到我的框架中
- python - 查找嵌套数组的形状
- php - PHP/MySQL:计算可用表的数量
- javascript - React-redux with Flow - 来自导入常量的动作类型名称
- c# - 从 winform c# 以编程方式通过命令行运行 .dtsx 文件
- reporting-services - 如何在 SSRS 报告中重命名 2 个复选框的 NULL 标签
- javascript - 接近地球极限时范围内的随机坐标问题
- java - 请在此处解释java代码中的错误
- laravel - Laravel PhpUnit:如何在 DOM 元素上触发事件