|
|
@@ -1,23 +1,24 @@
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
android:background="#ebe9e9"
|
|
|
- android:orientation="vertical">
|
|
|
+ android:orientation="vertical" >
|
|
|
|
|
|
<RelativeLayout
|
|
|
+ android:background="@drawable/bg_bar"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="48dp"
|
|
|
- android:background="@drawable/bg_bar"
|
|
|
android:orientation="horizontal"
|
|
|
android:paddingBottom="5dp"
|
|
|
android:paddingLeft="15dp"
|
|
|
android:paddingRight="15dp"
|
|
|
- android:paddingTop="5dp">
|
|
|
+ android:paddingTop="5dp" >
|
|
|
|
|
|
<com.xzjmyk.pm.activity.view.ClearEditText
|
|
|
android:id="@+id/search_edit"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
+ android:layout_width="fill_parent"
|
|
|
+ android:layout_height="fill_parent"
|
|
|
android:layout_centerVertical="true"
|
|
|
android:background="@drawable/search_input"
|
|
|
android:drawableLeft="@drawable/search"
|
|
|
@@ -29,14 +30,15 @@
|
|
|
|
|
|
<ImageView
|
|
|
android:id="@+id/voice_search_iv"
|
|
|
- android:layout_width="20dp"
|
|
|
- android:layout_height="20dp"
|
|
|
+ android:background="@drawable/btn_yuyin_nor"
|
|
|
+ android:visibility="visible"
|
|
|
+ android:layout_marginRight="25dp"
|
|
|
android:layout_alignParentRight="true"
|
|
|
android:layout_alignRight="@+id/search_edit"
|
|
|
- android:layout_marginRight="25dp"
|
|
|
+ android:layout_width="20dp"
|
|
|
+ android:layout_height="20dp"
|
|
|
android:layout_marginTop="8dp"
|
|
|
- android:background="@drawable/btn_yuyin_nor"
|
|
|
- android:visibility="visible" />
|
|
|
+ />
|
|
|
</RelativeLayout>
|
|
|
|
|
|
<com.xzjmyk.pm.activity.view.DrawableCenterTextView
|
|
|
@@ -44,15 +46,32 @@
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="35dp"
|
|
|
android:background="#fcd8d8"
|
|
|
- android:drawableLeft="@drawable/ic_net_noticce"
|
|
|
- android:drawablePadding="10dp"
|
|
|
- android:gravity="center_vertical"
|
|
|
android:text="当前网络不可用,请检查您的网络设置"
|
|
|
+ android:gravity="center_vertical"
|
|
|
android:textColor="@color/black"
|
|
|
- android:visibility="gone" />
|
|
|
+ android:drawableLeft="@drawable/ic_net_noticce"
|
|
|
+ android:drawablePadding="10dp"
|
|
|
+ android:visibility="gone"/>
|
|
|
+
|
|
|
+ <com.xzjmyk.pm.activity.view.PullToRefreshSlideListView
|
|
|
+ xmlns:slide="http://schemas.android.com/apk/res-auto"
|
|
|
+ android:id="@+id/pull_refresh_list"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="#ebe9e9"
|
|
|
+ android:hardwareAccelerated="false"
|
|
|
+ android:layerType="software"
|
|
|
+ app:ptrAnimationStyle="flip"
|
|
|
+ app:ptrDrawableEnd="@drawable/default_ptr_rotate"
|
|
|
+ app:ptrDrawableStart="@drawable/default_ptr_flip"
|
|
|
+ app:ptrHeaderTextColor="@color/black"
|
|
|
+ app:ptrMode="both"
|
|
|
+ app:ptrOverScroll="false"
|
|
|
+ app:ptrScrollingWhileRefreshingEnabled="true"
|
|
|
+ app:ptrShowIndicator="false"
|
|
|
+ slide:slideAnimationTime="200"
|
|
|
+ slide:slideLeftAction="scroll"
|
|
|
+ slide:slideMode="right"
|
|
|
+ slide:slideRightAction="scroll"/>
|
|
|
|
|
|
- <com.handmark.pulltorefresh.library.PullToRefreshListView
|
|
|
- android:id="@+id/listView"
|
|
|
- style="@style/ListViewBasic"
|
|
|
- android:divider="@drawable/bg_bar" />
|
|
|
</LinearLayout>
|