feat(form): 添加动态表单组件和下拉选择功能
- 新增 FormField 数据模型定义五种字段类型(文本、数字、下拉、日期、固定值) - 实现 FormFieldAdapter 适配器支持动态表单渲染和数据绑定 - 添加 DropdownPopup 弹窗组件和 DropdownAdapter 适配器 - 新增多个圆角背景资源文件(bg_gray_radius10、bg_white_radius10_stroke 等) - 在 Common.kt 中添加 hideKeyboard 扩展函数用于隐藏软键盘 - 创建 DictType 数据模型用于字典类型数据传输 - 添加表单项和下拉项的布局文件(list_item_form_field、list_item_dropdown 等)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/rvWarehouse"
|
||||
android:layout_width="280dp"
|
||||
android:layout_height="wrap_content"
|
||||
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
||||
tools:itemCount="10"
|
||||
android:layout_margin="1dp"
|
||||
android:overScrollMode="never"
|
||||
tools:listitem="@layout/list_item_dropdown"
|
||||
android:background="@drawable/bg_white_radius10_stroke" />
|
||||
|
||||
</FrameLayout>
|
||||
Reference in New Issue
Block a user