充电桩app代码

view_alterdialog_update.xml 3.8KB

    <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/lLayout_bg" android:layout_width="272dp" android:layout_height="wrap_content" android:orientation="vertical"> <androidx.constraintlayout.widget.ConstraintLayout android:layout_width="match_parent" android:layout_height="wrap_content"> <View android:layout_width="match_parent" android:layout_height="50dp" android:background="@color/white" app:layout_constraintBottom_toBottomOf="parent" /> <ImageView android:id="@+id/update_header" android:layout_width="match_parent" android:layout_height="wrap_content" android:scaleType="fitXY" android:src="@drawable/update_header" app:layout_constraintTop_toTopOf="parent" /> </androidx.constraintlayout.widget.ConstraintLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/white" android:orientation="vertical"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center_horizontal" android:orientation="horizontal" android:paddingTop="10dp"> <TextView android:id="@+id/txt_title" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="#444444" android:textSize="15sp" tools:text="更新提示 3.5.2" /> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="10dp" android:src="@drawable/update_new_icon" /> </LinearLayout> <TextView android:id="@+id/txt_msg" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="18dp" android:layout_marginTop="12dp" android:layout_marginRight="18dp" android:gravity="center|left" android:textColor="#444444" android:textSize="13sp" tools:text="1-新增“聊聊”新能源车主社区版块。可以通过短图文和视频的方式,聊聊你的新能源汽车和生活\n\n2-修改已知BUG" /> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@drawable/update_alert_bottom_shape" android:gravity="center_horizontal" android:orientation="horizontal" android:paddingTop="30dp" android:paddingBottom="28dp"> <Button android:id="@+id/btn_neg" android:layout_width="115dp" android:layout_height="35dp" android:layout_marginLeft="5dp" android:layout_marginRight="5dp" android:background="@drawable/update_alert_left_btn_shape" android:textColor="#999999" android:textSize="13sp" tools:text="忽略" /> <Button android:id="@+id/btn_pos" android:layout_width="115dp" android:layout_height="35dp" android:layout_marginLeft="5dp" android:layout_marginRight="5dp" android:background="@drawable/update_alert_right_btn_shape" android:textColor="@color/white" android:textSize="13sp" tools:text="忽略" /> </LinearLayout> </LinearLayout>