ec6ea1d031749e9156d041a2475769R246">246
                    />
247 247
            </LinearLayout>
248 248
249
            <GridView
249
            <androidx.recyclerview.widget.RecyclerView
250 250
                android:visibility="gone"
251 251
                android:id="@+id/noScrollgridview"
252 252
                android:layout_width="match_parent"
253 253
                android:layout_height="wrap_content"
254 254
                android:layout_marginLeft="15dp"
255 255
                android:layout_marginRight="15dp"
256
                android:horizontalSpacing="3dp"
257
                android:numColumns="3"
258 256
                android:scrollbars="none"
259
                android:verticalSpacing="5dp"></GridView>
257
                />
260 258
261 259
            <View
262 260
                android:layout_width="match_parent"

+ 6 - 4
app/src/main/res/layout/layout_item_add_img.xml

@ -1,18 +1,20 @@
1 1
<?xml version="1.0" encoding="utf-8"?>
2
<RelativeLayout  xmlns:android="http://schemas.android.com/apk/res/android"
2
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 3
    android:layout_width="match_parent"
4
    android:layout_height="match_parent">
4
    android:layout_height="match_parent"
5
    xmlns:tools="http://schemas.android.com/tools">
5 6
    <ImageView
7
        tools:src="@drawable/icon_comment_upload"
6 8
        android:id="@+id/image"
7 9
        android:scaleType="centerCrop"
8 10
        android:layout_centerInParent="true"
9 11
        android:layout_width="match_parent"
10 12
        android:layout_height="match_parent"/>
11 13
    <ImageView
12
        android:padding="8dp"
14
        android:padding="5dp"
13 15
        android:id="@+id/remove"
14 16
        android:layout_alignParentEnd="true"
15
        android:src="@drawable/icon_close"
17
        android:src="@drawable/ic_round_close"
16 18
        android:layout_width="wrap_content"
17 19
        android:layout_height="wrap_content"/>
18 20
</RelativeLayout>

优化站点列表的停车位费用展示 · c013d06896 - Gogs: Go Git Service
Selaa lähdekoodia

优化站点列表的停车位费用展示

hy 4 vuotta sitten
vanhempi
commit
c013d06896

+ 3 - 1
app/src/main/java/com/electric/chargingpile/activity/CarBrandActivity.java

@ -25,7 +25,9 @@ import com.electric.chargingpile.view.LetterSideView;
25 25
import org.greenrobot.eventbus.EventBus;
26 26
27 27
import java.util.ArrayList;
28
28
/**
29
 * 车型品牌选择
30
 * */
29 31
public class CarBrandActivity extends AppCompatActivity implements View.OnClickListener {
30 32
31 33
    private LetterSideView letter_side_view;

+ 4 - 1
app/src/main/java/com/electric/chargingpile/activity/RecommendChargingStationActivity.java

@ -204,6 +204,7 @@ public class RecommendChargingStationActivity extends AppCompatActivity implemen
204 204
            final TextView window_tv_slow_free_label;
205 205
            final TextView window_tv_slow_total_num;
206 206
            final TextView fenshi_info_textview;
207
            final TextView parkingFee;
207 208
208 209
            public ViewHolder(View itemView) {
209 210
                super(itemView);
@ -232,6 +233,7 @@ public class RecommendChargingStationActivity extends AppCompatActivity implemen
232 233
                window_tv_slow_free_num = itemView.findViewById(R.id.window_tv_slow_free_num);
233 234
                window_tv_slow_total_num = itemView.findViewById(R.id.window_tv_slow_total_num);
234 235
                fenshi_info_textview = itemView.findViewById(R.id.fenshi_info_textview);
236
                parkingFee = itemView.findViewById(R.id.parkingFee);
235 237
236 238
            }
237 239
        }
@ -338,7 +340,8 @@ public class RecommendChargingStationActivity extends AppCompatActivity implemen
338 340
            holder.iv_label_public.setText(recommendZhan.getBelong_attribute());
339 341
            holder.iv_label_ground.setText("0".equals(recommendZhan.getPark_location()) ? "地下" : "地上");
340 342
            holder.iv_label_free_park.setVisibility(recommendZhan.getStop_cost().contains("免费") ? View.VISIBLE : View.GONE);
341
343
            holder.parkingFee.setText("停车费:"+recommendZhan.getStop_cost());
344
            holder.parkingFee.setVisibility(recommendZhan.getStop_cost().contains("免费") ? View.GONE : View.VISIBLE);
342 345
343 346
            if ("1".equals(recommendZhan.getOwn_pay())) {
344 347
                holder.payment_method.setText("可使用本APP扫码支付");

+ 5 - 5
app/src/main/res/layout/activity_user_center.xml

@ -57,8 +57,8 @@
57 57
58 58
            <com.electric.chargingpile.view.RoundImageView
59 59
                android:id="@+id/user"
60
                android:layout_width="67dp"
61
                android:layout_height="67dp"
60
                android:layout_width="60dp"
61
                android:layout_height="60dp"
62 62
                android:scaleType="fitXY"
63 63
                android:layout_gravity="center"
64 64
                app:type="circle"
@ -154,7 +154,7 @@
154 154
            android:layout_width="wrap_content"
155 155
            android:layout_height="wrap_content"
156 156
            android:layout_alignParentRight="true"
157
            android:layout_alignBottom="@+id/ll_noLogin"
157
            android:layout_marginTop="25dp"
158 158
            android:src="@drawable/icon_qiandaohavegift"
159 159
            android:layout_marginRight="6dp"/>
160 160
@ -172,8 +172,8 @@
172 172
173 173
            <com.electric.chargingpile.view.RoundImageView
174 174
                android:id="@+id/user_default"
175
                android:layout_width="67dp"
176
                android:layout_height="67dp"
175
                android:layout_width="60dp"
176
                android:layout_height="60dp"
177 177
                android:layout_alignParentTop="true"
178 178
                android:layout_alignParentStart="true"
179 179
                android:layout_gravity="center"

+ 5 - 2
app/src/main/res/layout/recommend_charging_station_item.xml

@ -212,11 +212,14 @@
212 212
        </LinearLayout>
213 213
    </LinearLayout>
214 214
    <TextView
215
        android:visibility="gone"
216
        android:id="@+id/parkingFee"
217
        android:layout_marginEnd="15dp"
215 218
        android:layout_marginTop="15dp"
216
        android:layout_marginLeft="15dp"
219
        android:layout_marginStart="15dp"
217 220
        android:layout_width="wrap_content"
218 221
        android:layout_height="wrap_content"
219
        android:text="停车费:以实际收费为准"
222
        tools:text="停车费:以实际收费为准"
220 223
        android:textColor="@color/color_ffe32727"
221 224
        android:textSize="13sp"
222 225
        />