充电桩app代码

pull_to_refresh.xml 2.1KB

    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/pull_to_refresh_head" android:layout_width="fill_parent" android:layout_height="60dip" > <LinearLayout android:layout_width="wrap_content" android:layout_height="60dp" android:orientation="horizontal" android:layout_centerInParent="true"> <RelativeLayout android:layout_width="wrap_content" android:layout_height="60dp" android:layout_toLeftOf="@+id/rl"> <ImageView android:id="@+id/arrow" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:src="@drawable/arrow" android:layout_gravity="center" /> <ProgressBar android:id="@+id/progress_bar" android:layout_width="24dip" android:layout_height="24dip" android:layout_centerInParent="true" android:visibility="visible" android:layout_gravity="center" /> </RelativeLayout> <RelativeLayout android:id="@+id/rl" android:layout_width="wrap_content" android:layout_height="60dp" android:layout_marginLeft="10dp" android:layout_centerInParent="true"> <TextView android:id="@+id/description" android:layout_width="wrap_content" android:layout_height="match_parent" android:textColor="@color/ui_68" android:textSize="14sp" android:gravity="center" android:text="@string/pull_to_refresh" android:layout_centerInParent="true"/> <TextView android:id="@+id/updated_at" android:layout_width="wrap_content" android:layout_height="match_parent" android:textColor="@color/ui_68" android:textSize="14sp" android:gravity="center" android:text="@string/updated_at" android:layout_centerInParent="true" /> </RelativeLayout> </LinearLayout> </RelativeLayout>