充电桩app代码

activity_publish_items.xml 6.6KB

    <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout 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:layout_width="match_parent" android:layout_height="match_parent"> <androidx.constraintlayout.widget.ConstraintLayout android:id="@+id/nav_bar" android:layout_width="match_parent" android:layout_height="45dp" android:background="#ffffff" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="parent"> <ImageView android:id="@+id/iv_back" android:layout_width="wrap_content" android:layout_height="match_parent" android:paddingLeft="15dp" android:paddingRight="15dp" android:src="@drawable/icon_lvback1119" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintTop_toTopOf="parent" /> </androidx.constraintlayout.widget.ConstraintLayout> <ImageView android:id="@+id/share_scan_icon" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@drawable/app_publish_items_bg" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toBottomOf="@+id/nav_bar" /> <LinearLayout android:layout_width="match_parent" android:layout_height="0dp" android:gravity="center" android:orientation="vertical" app:layout_constraintBottom_toTopOf="@+id/agree_view" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/share_scan_icon"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center" android:orientation="horizontal"> <LinearLayout android:id="@+id/publish_video" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center" android:orientation="vertical" android:padding="20dp"> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@drawable/app_publish_video_icon" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="10dp" android:text="视频" android:textColor="@color/color_222222" android:textSize="15sp" /> </LinearLayout> <LinearLayout android:id="@+id/publish_picture" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center" android:orientation="vertical" android:padding="20dp"> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@drawable/app_publish_pic_icon" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="10dp" android:text="图文" android:textColor="@color/color_222222" android:textSize="15sp" /> </LinearLayout> <LinearLayout android:id="@+id/publish_qa" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center" android:orientation="vertical" android:padding="20dp"> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@drawable/app_publish_qa_icon" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="10dp" android:text="提问" android:textColor="@color/color_222222" android:textSize="15sp" /> </LinearLayout> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingTop="20dp" android:gravity="center"> <ImageView android:id="@+id/share_publish_close" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@drawable/app_publish_close_icon" /> </LinearLayout> </LinearLayout> <LinearLayout android:id="@+id/agree_view" android:layout_width="match_parent" android:layout_height="120dp" android:gravity="center" android:orientation="horizontal" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent"> <ImageView android:id="@+id/publish_radio" android:layout_width="wrap_content" android:layout_height="wrap_content" android:padding="5dp" android:src="@drawable/radio_unselected" /> <TextView android:id="@+id/rule_publish" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingTop="20dp" android:paddingRight="5dp" android:paddingBottom="20dp" android:text="同意《用户发布内容规则》" android:textColor="@color/color_0088f6" android:textSize="14sp" /> </LinearLayout> </androidx.constraintlayout.widget.ConstraintLayout>