蓝牙连接

This commit is contained in:
fengjignqi
2026-11-07 16:25:22 +08:00
parent 0dc9b21e62
commit 166b4aad7d
226 changed files with 11008 additions and 4117 deletions

View File

@@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/device_home_background"
android:background="@color/white"
android:clipChildren="false"
android:clipToPadding="false"
android:orientation="vertical"
@@ -37,66 +37,22 @@
android:textSize="25sp"
android:textStyle="bold" />
<androidx.cardview.widget.CardView
android:id="@+id/cv_notifications"
<ImageView
android:id="@+id/iv_notifications"
android:layout_width="38dp"
android:layout_height="38dp"
android:clickable="true"
android:contentDescription="@string/device_home_notifications"
android:focusable="true"
android:foreground="?attr/selectableItemBackground"
app:cardBackgroundColor="@android:color/white"
app:cardCornerRadius="19dp"
app:cardElevation="4dp"
app:cardPreventCornerOverlap="false">
android:layout_gravity="center"
android:contentDescription="@null"
android:src="@mipmap/icon_notice" />
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/iv_notifications"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_gravity="center"
android:contentDescription="@null"
android:src="@mipmap/ic_launcher" />
<View
android:id="@+id/view_notification_dot"
android:layout_width="7dp"
android:layout_height="7dp"
android:layout_gravity="top|end"
android:layout_marginTop="7dp"
android:layout_marginEnd="8dp"
android:background="@drawable/device_home_notification_dot"
android:visibility="gone"
tools:visibility="visible" />
</FrameLayout>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:id="@+id/cv_add_device"
<ImageView
android:id="@+id/iv_add_device"
android:layout_width="38dp"
android:layout_height="38dp"
android:layout_marginStart="10dp"
android:clickable="true"
android:contentDescription="@string/device_home_add_device"
android:focusable="true"
android:foreground="?attr/selectableItemBackground"
app:cardBackgroundColor="@android:color/white"
app:cardCornerRadius="19dp"
app:cardElevation="4dp"
app:cardPreventCornerOverlap="false">
<ImageView
android:id="@+id/iv_add_device"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_gravity="center"
android:contentDescription="@null"
android:src="@mipmap/ic_launcher" />
</androidx.cardview.widget.CardView>
android:layout_gravity="center"
android:contentDescription="@null"
android:src="@mipmap/icon_top_right_add" />
</LinearLayout>
<androidx.cardview.widget.CardView
@@ -131,8 +87,7 @@
android:layout_height="38dp"
android:background="@drawable/device_home_stat_icon_bg"
android:contentDescription="@null"
android:padding="9dp"
android:src="@mipmap/ic_launcher" />
android:src="@mipmap/icon_charcoal" />
<TextView
android:id="@+id/tv_charcoal_saved"
@@ -172,8 +127,7 @@
android:layout_height="44dp"
android:background="@drawable/device_home_stat_icon_bg"
android:contentDescription="@null"
android:padding="11dp"
android:src="@mipmap/ic_launcher" />
android:src="@mipmap/icon_balance" />
<TextView
android:id="@+id/tv_balance"
@@ -213,8 +167,7 @@
android:layout_height="38dp"
android:background="@drawable/device_home_stat_icon_bg"
android:contentDescription="@null"
android:padding="9dp"
android:src="@mipmap/ic_launcher" />
android:src="@mipmap/icon_birr" />
<TextView
android:id="@+id/tv_saving_birr"
@@ -284,13 +237,13 @@
<androidx.cardview.widget.CardView
android:id="@+id/cv_empty_devices"
android:layout_width="match_parent"
android:layout_height="239dp"
android:layout_height="wrap_content"
android:layout_marginHorizontal="5dp"
android:layout_marginTop="20dp"
android:layout_marginBottom="12dp"
app:cardBackgroundColor="@android:color/white"
app:cardCornerRadius="16dp"
app:cardElevation="1dp"
app:cardElevation="3dp"
app:cardPreventCornerOverlap="false">
<LinearLayout
@@ -299,23 +252,13 @@
android:gravity="center_horizontal"
android:orientation="vertical"
android:paddingTop="34dp">
<androidx.cardview.widget.CardView
android:layout_width="64dp"
android:layout_height="64dp"
app:cardBackgroundColor="#FFF3EA"
app:cardCornerRadius="32dp"
app:cardElevation="0dp"
app:cardPreventCornerOverlap="false">
<ImageView
android:id="@+id/iv_empty_devices"
android:layout_width="26dp"
android:layout_height="26dp"
android:layout_gravity="center"
android:contentDescription="@null"
android:src="@mipmap/ic_launcher" />
</androidx.cardview.widget.CardView>
<ImageView
android:id="@+id/iv_empty_devices"
android:layout_width="65dp"
android:layout_height="65dp"
android:layout_gravity="center"
android:contentDescription="@null"
android:src="@mipmap/icon_add_device" />
<TextView
android:id="@+id/tv_empty_devices"