android上拉加载更多

原创
2017/08/30 19:45
阅读数 116
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/loadmore_view"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_alignParentBottom="true"
    android:background="@color/color_ffffff"
    android:paddingBottom="20dp"
    android:paddingTop="20dp">


    <ImageView
        android:id="@+id/pullup_icon"
        android:layout_width="20dp"
        android:layout_height="32dp"
        android:layout_marginLeft="60dp"
        android:layout_centerVertical="true"
        android:background="@drawable/pullup_icon_big" />

    <ImageView
        android:id="@+id/loading_icon"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerVertical="true"
        android:layout_marginLeft="60dp"
        android:background="@drawable/loading"
        android:visibility="gone" />

    <TextView
        android:id="@+id/loadstate_tv"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"
        android:text="@string/pullup_to_load"
        android:textColor="@android:color/black"
        android:textSize="16sp" />

    <ImageView
        android:id="@+id/loadstate_iv"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerVertical="true"
        android:layout_marginRight="8dp"
        android:layout_toLeftOf="@id/loadstate_tv"
        android:visibility="gone" />
</RelativeLayout>

 

展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
0 评论
0 收藏
0
分享
返回顶部
顶部