充电桩app代码

activity_recommend_charging_station.xml 11KB

    <?xml version="1.0" encoding="utf-8"?> <android.support.constraint.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" android:background="#ffffff" tools:context=".activity.RecommendChargingStationActivity"> <android.support.constraint.ConstraintLayout android:id="@+id/nav_bar" android:layout_width="match_parent" android:layout_height="44dp" 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:contentDescription="@null" 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" /> <TextView android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center" android:text="推荐" android:textColor="#222222" android:textSize="18sp" /> <View android:layout_width="match_parent" android:layout_height="0.5dp" android:background="#dddddd" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" /> </android.support.constraint.ConstraintLayout> <android.support.constraint.ConstraintLayout android:id="@+id/condition_first_bar" android:layout_width="match_parent" android:layout_height="40dp" 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="match_parent" android:gravity="center" android:orientation="horizontal"> <LinearLayout android:id="@+id/first_condition" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="0.224" android:gravity="center" android:orientation="horizontal"> <TextView android:id="@+id/first_condition_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center" android:text="智能推荐" android:textColor="#2fc45b" android:textSize="12sp" /> <ImageView android:id="@+id/first_condition_image" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5dp" android:src="@drawable/recommend_fold" /> </LinearLayout> <View android:layout_width="1dp" android:layout_height="10dp" android:background="#d8d8d8" /> <TextView android:id="@+id/first_can_charging" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="0.272" android:gravity="center" android:text="本APP可充电" android:textColor="#222222" android:textSize="12sp" /> <View android:layout_width="1dp" android:layout_height="10dp" android:background="#d8d8d8" /> <TextView android:id="@+id/first_free_parking" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="0.211" android:gravity="center" android:text="免费停车" android:textColor="#222222" android:textSize="12sp" /> <View android:layout_width="1dp" android:layout_height="10dp" android:background="#d8d8d8" /> <TextView android:id="@+id/first_quick_charging" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="0.147" android:gravity="center" android:text="快充" android:textColor="#222222" android:textSize="12sp" /> <View android:layout_width="1dp" android:layout_height="10dp" android:background="#d8d8d8" /> <TextView android:id="@+id/first_slow_charging" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="0.147" android:gravity="center" android:text="慢充" android:textColor="#222222" android:textSize="12sp" /> </LinearLayout> <View android:layout_width="match_parent" android:layout_height="0.5dp" android:background="#dddddd" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" /> </android.support.constraint.ConstraintLayout> <android.support.constraint.ConstraintLayout android:id="@+id/condition_second_bar" android:layout_width="match_parent" android:layout_height="0dp" android:visibility="gone" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintTop_toBottomOf="@+id/condition_first_bar" tools:visibility="visible"> <View android:layout_width="match_parent" android:layout_height="match_parent" android:alpha="0.29" android:background="#000000" /> <LinearLayout android:layout_width="match_parent" android:layout_height="120dp" android:background="#ffffff" android:orientation="vertical" android:paddingLeft="22dp" android:paddingTop="21dp" android:paddingRight="23dp" app:layout_constraintTop_toTopOf="parent"> <LinearLayout android:layout_width="match_parent" android:layout_height="30dp" android:orientation="horizontal"> <Button android:id="@+id/second_1" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" android:background="@drawable/recommend_btn_selected" android:text="智能推荐" android:textColor="#ffffff" android:textSize="12sp" /> <View android:layout_width="10dp" android:layout_height="match_parent" /> <Button android:id="@+id/second_2" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" android:background="@drawable/recommend_btn_normal" android:text="价格最低" android:textColor="#2FC45B" android:textSize="12sp" /> <View android:layout_width="10dp" android:layout_height="match_parent" /> <Button android:id="@+id/second_3" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" android:background="@drawable/recommend_btn_normal" android:text="距离最近" android:textColor="#2FC45B" android:textSize="12sp" /> <View android:layout_width="10dp" android:layout_height="match_parent" /> <Button android:id="@+id/second_4" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" android:background="@drawable/recommend_btn_normal" android:text="空闲最多" android:textColor="#2FC45B" android:textSize="12sp" /> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="30dp" android:layout_marginTop="15dp"> <Button android:id="@+id/second_5" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" android:background="@drawable/recommend_btn_normal" android:text="评分最高" android:textColor="#2FC45B" android:textSize="12sp" /> <View android:layout_width="10dp" android:layout_height="match_parent" /> <View android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" /> <View android:layout_width="10dp" android:layout_height="match_parent" /> <View android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" /> <View android:layout_width="10dp" android:layout_height="match_parent" /> <View android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" /> </LinearLayout> </LinearLayout> </android.support.constraint.ConstraintLayout> </android.support.constraint.ConstraintLayout>