feat: 自定义设备页按钮

This commit is contained in:
niushuai233 2022-10-21 16:35:52 +08:00
parent b6ba206511
commit 391dce160a
2 changed files with 21 additions and 2 deletions

View File

@ -39,8 +39,6 @@ public class DeviceAddPowerSwitchActivity extends BaseActivity {
// 设置标题栏信息
this.setTitle(null, getString(R.string.power_switch_add), null, R.drawable.ic_confrim_32);
}
/**

View File

@ -6,4 +6,25 @@
android:layout_height="match_parent"
tools:context=".ui.custom.DeviceCustomActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_world"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_world"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_world"/>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>