refactor(layout): 优化布局尺寸计算逻辑并提取公共工具类
- 添加 SizeTool 工具类统一管理 Flexbox 布局尺寸计算 - 在 MasterScaleActivity 中使用 SizeTool 替代硬编码计算 - 在 SeasoningConfigFragment 中使用 SizeTool 重构尺寸计算 - 在 SlaveActivity 中应用统一的尺寸计算方法 - 更新 Seasoning18GridAdapter 和 Seasoning22GridAdapter 使用现代化布局参数设置 - 调整 fragment_seasoning_config.xml 中的边距和内边距数值 - 为布局文件添加 tools:itemCount 属性支持预览功能
This commit is contained in:
@@ -59,6 +59,7 @@
|
||||
app:layout_constraintTop_toBottomOf="@id/tvConnectionStatus"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
android:overScrollMode="never"
|
||||
tools:itemCount="4"
|
||||
tools:listitem="@layout/list_type_scale22"/>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
@@ -8,9 +8,9 @@
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="0dp"
|
||||
android:layout_marginEnd="0dp"
|
||||
android:paddingBottom="20dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:paddingBottom="10dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:background="@drawable/shape_white_30_corners"
|
||||
android:orientation="vertical">
|
||||
|
||||
Reference in New Issue
Block a user