feat(setting): 添加调料配置功能并优化界面布局
- 在设置页面添加调料配置按钮和设备切换功能 - 将设备配置页面标题从"设备配置"改为"设备切换" - 新增SeasoningConfigFragment调料配置片段 - 将秤数据监控按钮可见性从gone改为visible - 优化collectFragment布局加载方式 - 在DeviceConfigActivity中添加调试日志输出 - 重构SettingActivity中的按钮样式管理逻辑 - 调整fragment列表顺序和点击事件处理 - 修改列表项高度以改善界面显示效果 - 注释掉DeviceConfigFragment中未使用的viewModel相关代码
This commit is contained in:
@@ -23,11 +23,20 @@
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="70dp"
|
||||
android:layout_weight="1"
|
||||
android:text="设备配置"
|
||||
android:text="设备切换"
|
||||
android:textSize="28sp"
|
||||
android:textStyle="bold"
|
||||
android:background="@android:color/transparent" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatButton
|
||||
android:id="@+id/btnSeasoningConfig"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="70dp"
|
||||
android:layout_weight="1"
|
||||
android:text="调料配置"
|
||||
android:textSize="26sp"
|
||||
android:background="@android:color/transparent" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatButton
|
||||
android:id="@+id/btnFoodCollect"
|
||||
android:layout_width="0dp"
|
||||
@@ -53,7 +62,7 @@
|
||||
android:layout_weight="1"
|
||||
android:text="秤数据监控"
|
||||
android:textSize="26sp"
|
||||
android:visibility="gone"
|
||||
android:visibility="visible"
|
||||
android:background="@android:color/transparent" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
Reference in New Issue
Block a user