// }
|
576
|
|
// }).setNegativeButton("取消", new View.OnClickListener() {
|
|
577
|
|
// @Override
|
|
578
|
|
// public void onClick(View v) {
|
|
579
|
|
//
|
|
580
|
|
//
|
|
581
|
|
// }
|
|
582
|
|
// }).show();
|
|
583
|
|
//
|
|
584
|
|
// }
|
|
585
|
|
// });
|
|
586
|
|
// historyList.setAdapter(adapter3);
|
|
587
|
|
// historyList.setVisibility(View.VISIBLE);
|
|
588
|
|
// lvContent.setVisibility(View.GONE);
|
|
589
|
|
// ll_menu.setVisibility(View.GONE);
|
|
590
|
|
|
|
591
|
389
|
break;
|
|
592
|
|
//按地点搜索
|
|
593
|
|
// case R.id.ll_address:
|
|
594
|
|
// searchInPoi();
|
|
595
|
|
// ll_menu.setVisibility(View.GONE);
|
|
596
|
|
// imm.hideSoftInputFromWindow(v.getWindowToken(), 0);
|
|
597
|
|
// break;
|
|
598
|
|
// //按站点搜索
|
|
599
|
|
// case R.id.ll_zhan:
|
|
600
|
|
// getSearchZhan();
|
|
601
|
|
// ll_menu.setVisibility(View.GONE);
|
|
602
|
|
// imm.hideSoftInputFromWindow(v.getWindowToken(), 0);
|
|
603
|
|
// break;
|
|
604
|
390
|
}
|
|
605
|
391
|
}
|
|
606
|
392
|
|
|
|
@ -626,9 +412,7 @@ public class SearchActivity extends Activity implements OnClickListener, Inputti
|
|
626
|
412
|
poiResult = result;
|
|
627
|
413
|
// 取得搜索到的poiitems有多少页
|
|
628
|
414
|
List<PoiItem> mList = poiResult.getPois();// 取得第一页的poiitem数据,页数从数字0开始
|
|
629
|
|
// List<PoiItem> mList = result.getAllPoi();
|
|
630
|
|
List<SuggestionCity> suggestionCities = poiResult
|
|
631
|
|
.getSearchSuggestionCitys();// 当搜索不到poiitem数据时,会返回含有搜索关键字的城市信息
|
|
|
415
|
List<SuggestionCity> suggestionCities = poiResult.getSearchSuggestionCitys();// 当搜索不到poiitem数据时,会返回含有搜索关键字的城市信息
|
|
632
|
416
|
|
|
633
|
417
|
if (mList != null && mList.size() > 0) {
|
|
634
|
418
|
list.clear();
|
|
|
@ -647,48 +431,26 @@ public class SearchActivity extends Activity implements OnClickListener, Inputti
|
|
647
|
431
|
list.add(map);
|
|
648
|
432
|
}
|
|
649
|
433
|
if (list != null && list.size() > 0) {
|
|
650
|
|
|
|
651
|
|
|
|
652
|
434
|
runOnUiThread(new Runnable() {
|
|
653
|
435
|
@Override
|
|
654
|
436
|
public void run() {
|
|
655
|
437
|
adapter.notifyDataSetChanged();
|
|
656
|
438
|
}
|
|
657
|
439
|
});
|
|
658
|
|
|
|
659
|
|
|
|
660
|
440
|
}
|
|
661
|
441
|
|
|
662
|
442
|
} catch (Exception e) {
|
|
663
|
443
|
e.printStackTrace();
|
|
664
|
444
|
}
|
|
665
|
445
|
} else {
|
|
666
|
|
Toast.makeText(SearchActivity.this, "抱歉,未找到结果", Toast.LENGTH_SHORT)
|
|
667
|
|
.show();
|
|
|
446
|
Toast.makeText(SearchActivity.this, "抱歉,未找到结果", Toast.LENGTH_SHORT).show();
|
|
668
|
447
|
list.clear();
|
|
669
|
448
|
adapter.notifyDataSetChanged();
|
|
670
|
449
|
}
|
|
671
|
|
|
|
672
|
|
// if (poiItems != null && poiItems.size() > 0) {
|
|
673
|
|
//// aMap.clear();// 清理之前的图标
|
|
674
|
|
// PoiOverlay poiOverlay = new PoiOverlay(aMap, poiItems);
|
|
675
|
|
// poiOverlay.removeFromMap();
|
|
676
|
|
// poiOverlay.addToMap();
|
|
677
|
|
// poiOverlay.zoomToSpan();
|
|
678
|
|
// } else if (suggestionCities != null
|
|
679
|
|
// && suggestionCities.size() > 0) {
|
|
680
|
|
// showSuggestCity(suggestionCities);
|
|
681
|
|
// } else {
|
|
682
|
|
//// ToastUtil.show(PoiKeywordSearchActivity.this,
|
|
683
|
|
//// R.string.no_result);
|
|
684
|
|
// }
|
|
685
|
450
|
}
|
|
686
|
451
|
} else {
|
|
687
|
|
// ToastUtil.show(PoiKeywordSearchActivity.this,
|
|
688
|
|
// R.string.no_result);
|
|
689
|
452
|
}
|
|
690
|
453
|
} else {
|
|
691
|
|
// ToastUtil.showerror(this, rCode);
|
|
692
|
454
|
}
|
|
693
|
455
|
}
|
|
694
|
456
|
|
|
|
@ -725,15 +487,11 @@ public class SearchActivity extends Activity implements OnClickListener, Inputti
|
|
725
|
487
|
public View getView(int position, View convertView, ViewGroup parent) {
|
|
726
|
488
|
ViewHolder viewHolder = null;
|
|
727
|
489
|
if (convertView == null) {
|
|
728
|
|
convertView = LayoutInflater.from(context).inflate(
|
|
729
|
|
R.layout.item_search, null);
|
|
|
490
|
convertView = LayoutInflater.from(context).inflate(R.layout.item_search, null);
|
|
730
|
491
|
viewHolder = new ViewHolder();
|
|
731
|
|
viewHolder.name = (TextView) convertView
|
|
732
|
|
.findViewById(R.id.search_name);
|
|
733
|
|
viewHolder.address = (TextView) convertView
|
|
734
|
|
.findViewById(R.id.search_address);
|
|
735
|
|
viewHolder.zhan = (ImageView) convertView
|
|
736
|
|
.findViewById(R.id.search_zhan);
|
|
|
492
|
viewHolder.name = (TextView) convertView.findViewById(R.id.search_name);
|
|
|
493
|
viewHolder.address = (TextView) convertView.findViewById(R.id.search_address);
|
|
|
494
|
viewHolder.zhan = (ImageView) convertView.findViewById(R.id.search_zhan);
|
|
737
|
495
|
convertView.setTag(viewHolder);
|
|
738
|
496
|
} else {
|
|
739
|
497
|
viewHolder = (ViewHolder) convertView.getTag();
|
|
|
@ -746,9 +504,7 @@ public class SearchActivity extends Activity implements OnClickListener, Inputti
|
|
746
|
504
|
} else {
|
|
747
|
505
|
viewHolder.zhan.setVisibility(View.VISIBLE);
|
|
748
|
506
|
if (!TextUtils.isEmpty(list.get(position).get("url"))) {
|
|
749
|
|
ImageLoader.getInstance().init(
|
|
750
|
|
ImageLoaderConfiguration
|
|
751
|
|
.createDefault(SearchActivity.this));
|
|
|
507
|
ImageLoader.getInstance().init(ImageLoaderConfiguration.createDefault(SearchActivity.this));
|
|
752
|
508
|
DisplayImageOptions.Builder builder = new DisplayImageOptions.Builder();
|
|
753
|
509
|
builder.cacheInMemory(true);
|
|
754
|
510
|
builder.cacheOnDisc(true);
|
|
|
@ -756,9 +512,7 @@ public class SearchActivity extends Activity implements OnClickListener, Inputti
|
|
756
|
512
|
builder.showImageForEmptyUri(R.drawable.image_default);
|
|
757
|
513
|
builder.showImageOnFail(R.drawable.image_default);
|
|
758
|
514
|
builder.displayer(new RoundedBitmapDisplayer(0));
|
|
759
|
|
ImageLoader.getInstance().displayImage(
|
|
760
|
|
list.get(position).get("url"), viewHolder.zhan,
|
|
761
|
|
builder.build());
|
|
|
515
|
ImageLoader.getInstance().displayImage(list.get(position).get("url"), viewHolder.zhan, builder.build());
|
|
762
|
516
|
} else {
|
|
763
|
517
|
viewHolder.zhan.setImageResource(R.drawable.image_default);
|
|
764
|
518
|
}
|
|
|
@ -772,54 +526,6 @@ public class SearchActivity extends Activity implements OnClickListener, Inputti
|
|
772
|
526
|
}
|
|
773
|
527
|
}
|
|
774
|
528
|
|
|
775
|
|
// @Override
|
|
776
|
|
// public void onGetPoiDetailResult(PoiDetailResult result) {
|
|
777
|
|
// if (result.error != SearchResult.ERRORNO.NO_ERROR) {
|
|
778
|
|
// Toast.makeText(SearchActivity.this, "抱歉,未找到结果", Toast.LENGTH_SHORT)
|
|
779
|
|
// .show();
|
|
780
|
|
// }
|
|
781
|
|
// }
|
|
782
|
|
|
|
783
|
|
// @Override
|
|
784
|
|
// public void onGetPoiResult(PoiResult result) {
|
|
785
|
|
// if (result == null
|
|
786
|
|
// || result.error == SearchResult.ERRORNO.RESULT_NOT_FOUND) {
|
|
787
|
|
//// Toast.makeText(SearchActivity.this, "抱歉,没有搜到相关信息\n" +
|
|
788
|
|
//// "您可尝试切换城市搜索", Toast.LENGTH_LONG)
|
|
789
|
|
//// .show();
|
|
790
|
|
// showTextToast("抱歉,没有搜到相关信息\n" +
|
|
791
|
|
// "您可尝试切换城市搜索");
|
|
792
|
|
// list.clear();
|
|
793
|
|
// adapter.notifyDataSetChanged();
|
|
794
|
|
// return;
|
|
795
|
|
// }
|
|
796
|
|
// if (result.error == SearchResult.ERRORNO.NO_ERROR) {
|
|
797
|
|
// List<PoiInfo> mList = result.getAllPoi();
|
|
798
|
|
// if (mList != null && mList.size() > 0) {
|
|
799
|
|
// list.clear();
|
|
800
|
|
// try {
|
|
801
|
|
// for (int i = 0; i < mList.size(); i++) {
|
|
802
|
|
// map = new HashMap<String, String>();
|
|
803
|
|
// map.put("name", mList.get(i).name);
|
|
804
|
|
// map.put("address", mList.get(i).address);
|
|
805
|
|
// map.put("jing", mList.get(i).location.longitude + "");
|
|
806
|
|
// map.put("wei", mList.get(i).location.latitude + "");
|
|
807
|
|
// map.put("url", "");
|
|
808
|
|
// list.add(map);
|
|
809
|
|
// }
|
|
810
|
|
// adapter.notifyDataSetChanged();
|
|
811
|
|
// } catch (Exception e) {
|
|
812
|
|
// e.printStackTrace();
|
|
813
|
|
// }
|
|
814
|
|
// }else {
|
|
815
|
|
// Toast.makeText(SearchActivity.this, "抱歉,未找到结果", Toast.LENGTH_LONG)
|
|
816
|
|
// .show();
|
|
817
|
|
// }
|
|
818
|
|
//
|
|
819
|
|
// return;
|
|
820
|
|
// }
|
|
821
|
|
// }
|
|
822
|
|
|
|
823
|
529
|
@Override
|
|
824
|
530
|
protected void onPause() {
|
|
825
|
531
|
super.onPause();
|
|
|
@ -848,7 +554,6 @@ public class SearchActivity extends Activity implements OnClickListener, Inputti
|
|
848
|
554
|
* 开始进行poi搜索
|
|
849
|
555
|
*/
|
|
850
|
556
|
protected void doSearchQuery() {
|
|
851
|
|
// showProgressDialog();// 显示进度框
|
|
852
|
557
|
currentPage = 0;
|
|
853
|
558
|
query = new PoiSearch.Query(keyWord, "", MainApplication.atCity);// 第一个参数表示搜索字符串,第二个参数表示poi搜索类型,第三个参数表示poi搜索区域(空字符串代表全国)
|
|
854
|
559
|
query.setPageSize(10);// 设置每页最多返回多少条poiitem
|
|
|
@ -858,23 +563,4 @@ public class SearchActivity extends Activity implements OnClickListener, Inputti
|
|
858
|
563
|
poiSearch.setOnPoiSearchListener(this);
|
|
859
|
564
|
poiSearch.searchPOIAsyn();
|
|
860
|
565
|
}
|
|
861
|
|
|
|
862
|
|
|
|
863
|
|
// @Override
|
|
864
|
|
// public void onGetInputtips(List<Tip> tipList, int rCode) {
|
|
865
|
|
// if (rCode == 1000) {// 正确返回
|
|
866
|
|
// List<String> listString = new ArrayList<String>();
|
|
867
|
|
// for (int i = 0; i < tipList.size(); i++) {
|
|
868
|
|
// listString.add(tipList.get(i).getName());
|
|
869
|
|
// }
|
|
870
|
|
// ArrayAdapter<String> aAdapter = new ArrayAdapter<String>(
|
|
871
|
|
// getApplicationContext(),
|
|
872
|
|
// R.layout.route_inputs, listString);
|
|
873
|
|
// searchText.setAdapter(aAdapter);
|
|
874
|
|
// aAdapter.notifyDataSetChanged();
|
|
875
|
|
// } else {
|
|
876
|
|
//// ToastUtil.showerror(this, rCode);
|
|
877
|
|
// }
|
|
878
|
|
//
|
|
879
|
|
// }
|
|
880
|
566
|
}
|
|
|
@ -1,5 +1,6 @@
|
|
1
|
1
|
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
2
|
<com.zhy.autolayout.AutoLinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
3
|
xmlns:tools="http://schemas.android.com/tools"
|
|
3
|
4
|
android:layout_width="match_parent"
|
|
4
|
5
|
android:layout_height="match_parent"
|
|
5
|
6
|
android:background="@color/activity_bgcolor"
|
|
|
@ -14,11 +15,11 @@
|
|
14
|
15
|
<RelativeLayout
|
|
15
|
16
|
android:layout_width="0dp"
|
|
16
|
17
|
android:layout_height="match_parent"
|
|
17
|
|
android:layout_weight="5"
|
|
|
18
|
android:layout_marginLeft="16dp"
|
|
18
|
19
|
android:layout_marginTop="7dp"
|
|
19
|
20
|
android:layout_marginBottom="7dp"
|
|
20
|
|
android:background="@drawable/bg"
|
|
21
|
|
android:layout_marginLeft="16dp">
|
|
|
21
|
android:layout_weight="5"
|
|
|
22
|
android:background="@drawable/bg">
|
|
22
|
23
|
|
|
23
|
24
|
|
|
24
|
25
|
<EditText
|
|
|
@ -26,29 +27,29 @@
|
|
26
|
27
|
android:layout_width="fill_parent"
|
|
27
|
28
|
android:layout_height="match_parent"
|
|
28
|
29
|
android:layout_alignParentTop="true"
|
|
29
|
|
android:layout_toRightOf="@+id/iv_sou"
|
|
30
|
|
android:background="#f1f1f1"
|
|
31
|
30
|
android:layout_marginTop="1dp"
|
|
|
31
|
android:layout_marginRight="13dp"
|
|
32
|
32
|
android:layout_marginBottom="1dp"
|
|
33
|
|
android:hint="请输入要查找的地名"
|
|
|
33
|
android:layout_toRightOf="@+id/iv_sou"
|
|
|
34
|
android:background="#f1f1f1"
|
|
34
|
35
|
android:focusable="true"
|
|
|
36
|
android:hint="请输入要查找的地名"
|
|
35
|
37
|
android:imeOptions="actionSearch"
|
|
36
|
38
|
android:singleLine="true"
|
|
37
|
39
|
android:textColorHint="@color/ui_68"
|
|
38
|
40
|
android:textCursorDrawable="@drawable/search_biao"
|
|
39
|
|
android:textSize="14sp"
|
|
40
|
|
android:layout_marginRight="13dp" />
|
|
|
41
|
android:textSize="14sp" />
|
|
41
|
42
|
|
|
42
|
43
|
<ImageView
|
|
43
|
44
|
android:id="@+id/iv_search_clear"
|
|
44
|
45
|
android:layout_width="wrap_content"
|
|
45
|
46
|
android:layout_height="wrap_content"
|
|
|
47
|
android:layout_alignEnd="@+id/et_search"
|
|
|
48
|
android:layout_alignRight="@+id/et_search"
|
|
|
49
|
android:layout_centerVertical="true"
|
|
46
|
50
|
android:contentDescription="@null"
|
|
47
|
51
|
android:padding="5dp"
|
|
48
|
|
android:src="@drawable/icon_edit_delete2_0"
|
|
49
|
|
android:layout_centerVertical="true"
|
|
50
|
|
android:layout_alignRight="@+id/et_search"
|
|
51
|
|
android:layout_alignEnd="@+id/et_search" />
|
|
|
52
|
android:src="@drawable/icon_edit_delete2_0" />
|
|
52
|
53
|
|
|
53
|
54
|
<ImageView
|
|
54
|
55
|
android:id="@+id/iv_sou"
|
|
|
@ -68,19 +69,19 @@
|
|
68
|
69
|
android:layout_centerVertical="true"
|
|
69
|
70
|
android:contentDescription="@null"
|
|
70
|
71
|
android:gravity="center"
|
|
71
|
|
android:paddingBottom="5dp"
|
|
72
|
72
|
android:paddingLeft="16dp"
|
|
73
|
|
android:paddingRight="16dp"
|
|
74
|
73
|
android:paddingTop="5dp"
|
|
|
74
|
android:paddingRight="16dp"
|
|
|
75
|
android:paddingBottom="5dp"
|
|
75
|
76
|
android:text="取消"
|
|
76
|
77
|
android:textColor="@color/lvse"
|
|
77
|
78
|
android:textSize="15sp" />
|
|
78
|
79
|
|
|
79
|
80
|
<LinearLayout
|
|
80
|
81
|
android:id="@+id/ll_menu"
|
|
81
|
|
android:background="@color/white"
|
|
82
|
82
|
android:layout_width="match_parent"
|
|
83
|
83
|
android:layout_height="50dp"
|
|
|
84
|
android:background="@color/white"
|
|
84
|
85
|
|
|
85
|
86
|
android:orientation="vertical"
|
|
86
|
87
|
android:visibility="gone">
|
|
|
@ -90,30 +91,31 @@
|
|
90
|
91
|
android:layout_width="match_parent"
|
|
91
|
92
|
android:layout_height="0dp"
|
|
92
|
93
|
android:layout_weight="1">
|
|
|
94
|
|
|
93
|
95
|
<ImageView
|
|
94
|
96
|
android:layout_width="0dp"
|
|
95
|
97
|
android:layout_height="match_parent"
|
|
96
|
|
android:padding="5dp"
|
|
97
|
98
|
android:layout_weight="1"
|
|
98
|
|
android:src="@drawable/icon_screening"/>
|
|
|
99
|
android:padding="5dp"
|
|
|
100
|
android:src="@drawable/icon_screening" />
|
|
99
|
101
|
|
|
100
|
102
|
<TextView
|
|
101
|
103
|
android:id="@+id/address_search"
|
|
102
|
104
|
android:layout_width="0dp"
|
|
103
|
105
|
android:layout_height="match_parent"
|
|
104
|
106
|
android:layout_weight="6"
|
|
105
|
|
android:text="找地名:"
|
|
106
|
107
|
android:gravity="center_vertical"
|
|
107
|
108
|
android:paddingLeft="5dp"
|
|
108
|
|
android:textSize="18sp"
|
|
109
|
|
android:textColor="@color/text_light_grey"/>
|
|
|
109
|
android:text="找地名:"
|
|
|
110
|
android:textColor="@color/text_light_grey"
|
|
|
111
|
android:textSize="18sp" />
|
|
110
|
112
|
</LinearLayout>
|
|
111
|
113
|
|
|
112
|
114
|
<View
|
|
113
|
115
|
android:layout_width="match_parent"
|
|
114
|
116
|
android:layout_height="0.5dp"
|
|
115
|
117
|
android:background="@color/title_line"
|
|
116
|
|
android:visibility="gone"/>
|
|
|
118
|
android:visibility="gone" />
|
|
117
|
119
|
|
|
118
|
120
|
<LinearLayout
|
|
119
|
121
|
android:id="@+id/ll_zhan"
|
|
|
@ -126,27 +128,28 @@
|
|
126
|
128
|
android:layout_height="match_parent"
|
|
127
|
129
|
android:layout_weight="1"
|
|
128
|
130
|
android:padding="5dp"
|
|
129
|
|
android:src="@drawable/icon_screening"/>
|
|
|
131
|
android:src="@drawable/icon_screening" />
|
|
|
132
|
|
|
130
|
133
|
<TextView
|
|
131
|
134
|
android:id="@+id/zhan_search"
|
|
132
|
135
|
android:layout_width="0dp"
|
|
133
|
136
|
android:layout_height="match_parent"
|
|
134
|
137
|
android:layout_weight="6"
|
|
135
|
|
android:text="找电桩:"
|
|
136
|
138
|
android:gravity="center_vertical"
|
|
137
|
139
|
android:paddingLeft="5dp"
|
|
138
|
|
android:textSize="18sp"
|
|
139
|
|
android:textColor="@color/text_light_grey"/>
|
|
140
|
|
|
|
|
140
|
android:text="找电桩:"
|
|
|
141
|
android:textColor="@color/text_light_grey"
|
|
|
142
|
android:textSize="18sp" />
|
|
141
|
143
|
</LinearLayout>
|
|
142
|
144
|
</LinearLayout>
|
|
143
|
145
|
|
|
144
|
146
|
</com.zhy.autolayout.AutoLinearLayout>
|
|
|
147
|
|
|
145
|
148
|
<View
|
|
146
|
149
|
android:layout_width="match_parent"
|
|
147
|
150
|
android:layout_height="0.5dp"
|
|
148
|
151
|
android:background="@color/ui_titleline"
|
|
149
|
|
android:visibility="visible"/>
|
|
|
152
|
android:visibility="visible" />
|
|
150
|
153
|
|
|
151
|
154
|
<ListView
|
|
152
|
155
|
android:id="@+id/lv_search_list"
|
|
|
@ -158,7 +161,7 @@
|
|
158
|
161
|
android:divider="#dddddd"
|
|
159
|
162
|
android:dividerHeight="0.5dp"
|
|
160
|
163
|
android:fadingEdge="none"
|
|
161
|
|
android:listSelector="@color/transparent"/>
|
|
|
164
|
android:listSelector="@color/transparent" />
|
|
162
|
165
|
|
|
163
|
166
|
<ListView
|
|
164
|
167
|
android:id="@+id/lv_history_list"
|
|
|
@ -170,30 +173,5 @@
|
|
170
|
173
|
android:divider="#dddddd"
|
|
171
|
174
|
android:dividerHeight="0.5dp"
|
|
172
|
175
|
android:fadingEdge="none"
|
|
173
|
|
android:listSelector="@color/transparent"/>
|
|
174
|
|
|
|
175
|
|
<!--<LinearLayout-->
|
|
176
|
|
<!--android:id="@+id/ll_clear"-->
|
|
177
|
|
<!--android:layout_width="match_parent"-->
|
|
178
|
|
<!--android:layout_height="wrap_content"-->
|
|
179
|
|
<!--android:orientation="vertical">-->
|
|
180
|
|
|
|
181
|
|
<!--<View-->
|
|
182
|
|
<!--android:layout_width="match_parent"-->
|
|
183
|
|
<!--android:layout_height="0.5dp"-->
|
|
184
|
|
<!--android:background="#dddddd"/>-->
|
|
185
|
|
|
|
186
|
|
|
|
187
|
|
<!--<TextView-->
|
|
188
|
|
<!--android:id="@+id/tv_historyClear"-->
|
|
189
|
|
<!--android:layout_width="match_parent"-->
|
|
190
|
|
<!--android:layout_height="45dp"-->
|
|
191
|
|
<!--android:background="@color/white"-->
|
|
192
|
|
<!--android:text="清除历史记录"-->
|
|
193
|
|
<!--android:textColor="@color/hintColor"-->
|
|
194
|
|
<!--android:gravity="center"-->
|
|
195
|
|
<!--android:textSize="15sp"/>-->
|
|
196
|
|
|
|
197
|
|
<!--</LinearLayout>-->
|
|
198
|
|
|
|
|
176
|
android:listSelector="@color/transparent" />
|
|
199
|
177
|
</com.zhy.autolayout.AutoLinearLayout>
|
|
|
@ -3,23 +3,23 @@
|
|
3
|
3
|
android:layout_width="match_parent"
|
|
4
|
4
|
android:layout_height="wrap_content"
|
|
5
|
5
|
android:background="@color/white"
|
|
6
|
|
android:orientation="vertical" >
|
|
|
6
|
android:orientation="vertical">
|
|
7
|
7
|
|
|
8
|
8
|
<RelativeLayout
|
|
9
|
9
|
android:id="@+id/search_real"
|
|
10
|
10
|
android:layout_width="wrap_content"
|
|
11
|
|
android:layout_height="wrap_content" >
|
|
|
11
|
android:layout_height="wrap_content">
|
|
12
|
12
|
|
|
13
|
13
|
<ImageView
|
|
14
|
14
|
android:id="@+id/search_image"
|
|
15
|
15
|
android:layout_width="wrap_content"
|
|
16
|
16
|
android:layout_height="wrap_content"
|
|
17
|
17
|
android:layout_centerVertical="true"
|
|
|
18
|
android:layout_marginLeft="16dp"
|
|
18
|
19
|
android:contentDescription="@null"
|
|
19
|
|
android:paddingRight="14dp"
|
|
20
|
20
|
android:paddingTop="20dp"
|
|
|
21
|
android:paddingRight="14dp"
|
|
21
|
22
|
android:paddingBottom="20dp"
|
|
22
|
|
android:layout_marginLeft="16dp"
|
|
23
|
23
|
android:src="@drawable/icon_search1117" />
|
|
24
|
24
|
|
|
25
|
25
|
<ImageView
|
|
|
@ -40,9 +40,9 @@
|
|
40
|
40
|
android:layout_toRightOf="@id/search_real"
|
|
41
|
41
|
android:gravity="center_vertical"
|
|
42
|
42
|
android:orientation="vertical"
|
|
43
|
|
android:paddingBottom="10dp"
|
|
|
43
|
android:paddingTop="10dp"
|
|
44
|
44
|
android:paddingRight="10dp"
|
|
45
|
|
android:paddingTop="10dp" >
|
|
|
45
|
android:paddingBottom="10dp">
|
|
46
|
46
|
|
|
47
|
47
|
<TextView
|
|
48
|
48
|
android:id="@+id/search_name"
|