增加发现页

This commit is contained in:
wds
2021-05-26 17:58:12 +08:00
parent 4b28f19d9a
commit 26d444cbf8
154 changed files with 5933 additions and 99 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 444 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<animation-list android:oneshot="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:duration="100" android:drawable="@drawable/loading_01" />
<item android:duration="100" android:drawable="@drawable/loading_02" />
<item android:duration="100" android:drawable="@drawable/loading_03" />
<item android:duration="100" android:drawable="@drawable/loading_04" />
<item android:duration="100" android:drawable="@drawable/loading_05" />
<item android:duration="100" android:drawable="@drawable/loading_06" />
<item android:duration="100" android:drawable="@drawable/loading_07" />
<item android:duration="100" android:drawable="@drawable/loading_08" />
<item android:duration="100" android:drawable="@drawable/loading_09" />
<item android:duration="100" android:drawable="@drawable/loading_10" />
<item android:duration="100" android:drawable="@drawable/loading_11" />
<item android:duration="100" android:drawable="@drawable/loading_12" />
</animation-list>

View File

@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<animated-rotate android:drawable="@drawable/ic_loading_rotate" android:pivotX="50.0%" android:pivotY="50.0%"
xmlns:android="http://schemas.android.com/apk/res/android" />

View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:padding="3dp">
<ProgressBar
android:id="@+id/listview_foot_progress"
android:layout_width="30dip"
android:layout_height="30dip"
/>
<TextView
android:id="@+id/listview_foot_more"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:padding="5dp"
android:text="加载中..."/>
</LinearLayout>

View File

@@ -0,0 +1,71 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="bottom" >
<RelativeLayout
android:id="@+id/listview_header_content"
android:layout_width="fill_parent"
android:layout_height="80dp"
android:paddingTop="10dip"
>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:minWidth="100dip"
android:layout_centerInParent="true"
android:gravity="center"
android:orientation="vertical"
android:id="@+id/listview_header_text">
<TextView
android:id="@+id/refresh_status_textview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/listview_header_hint_normal" />
<LinearLayout
android:id="@+id/header_refresh_time_container"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="gone"
android:layout_marginTop="3dp" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/listview_header_last_time"
android:textSize="12sp" />
<TextView
android:id="@+id/last_refresh_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="12sp" />
</LinearLayout>
</LinearLayout>
<ImageView
android:id="@+id/listview_header_arrow"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginLeft="35dp"
android:layout_marginRight="10dp"
android:layout_toLeftOf="@+id/listview_header_text"
android:src="@drawable/ic_pulltorefresh_arrow" />
<com.jcodecraeer.xrecyclerview.SimpleViewSwitcher
android:id="@+id/listview_header_progressbar"
android:layout_width="30dip"
android:layout_height="30dip"
android:layout_toLeftOf="@+id/listview_header_text"
android:layout_centerVertical="true"
android:layout_marginLeft="40dp"
android:layout_marginRight="10dp"
android:visibility="invisible" />
</RelativeLayout>
</LinearLayout>

View File

@@ -0,0 +1,73 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/head_contentLayout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:paddingTop="10dip"
android:paddingBottom="15dip">
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:layout_marginLeft="30dip"
android:layout_marginRight="20dip">
<ImageView
android:id="@+id/head_arrowImageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:src="@drawable/ic_pulltorefresh_arrow" />
</FrameLayout>
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:layout_marginLeft="100dip"
android:layout_marginRight="10dip">
<ImageView
android:id="@+id/head_progressBar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/progressbar"
android:visibility="gone"
/>
</FrameLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:gravity="center_horizontal"
android:orientation="vertical">
<TextView
android:id="@+id/head_tipsTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/listview_header_hint_normal"
android:textColor="#000000"/>
<TextView
android:id="@+id/head_lastUpdatedTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#000000"
android:textSize="10sp" />
</LinearLayout>
</RelativeLayout>
</LinearLayout>

View File

@@ -0,0 +1,10 @@
<resources>
<string name="listview_header_hint_normal">下拉刷新</string>
<string name="listview_header_hint_release">释放立即刷新</string>
<string name="listview_loading">正在加载...</string>
<string name="nomore_loading">没有了</string>
<string name="refreshing">正在刷新...</string>
<string name="refresh_done">刷新完成</string>
<string name="loading_done">加载完成</string>
<string name="listview_header_last_time">上次更新时间:</string>
</resources>

View File

@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="AVLoadingIndicatorView">
<attr name="indicator">
<flag name="BallPulse" value="0"/>
<flag name="BallGridPulse" value="1"/>
<flag name="BallClipRotate" value="2"/>
<flag name="BallClipRotatePulse" value="3"/>
<flag name="SquareSpin" value="4"/>
<flag name="BallClipRotateMultiple" value="5"/>
<flag name="BallPulseRise" value="6"/>
<flag name="BallRotate" value="7"/>
<flag name="CubeTransition" value="8"/>
<flag name="BallZigZag" value="9"/>
<flag name="BallZigZagDeflect" value="10"/>
<flag name="BallTrianglePath" value="11"/>
<flag name="BallScale" value="12"/>
<flag name="LineScale" value="13"/>
<flag name="LineScaleParty" value="14"/>
<flag name="BallScaleMultiple" value="15"/>
<flag name="BallPulseSync" value="16"/>
<flag name="BallBeat" value="17"/>
<flag name="LineScalePulseOut" value="18"/>
<flag name="LineScalePulseOutRapid" value="19"/>
<flag name="BallScaleRipple" value="20"/>
<flag name="BallScaleRippleMultiple" value="21"/>
<flag name="BallSpinFadeLoader" value="22"/>
<flag name="LineSpinFadeLoader" value="23"/>
<flag name="TriangleSkewSpin" value="24"/>
<flag name="Pacman" value="25"/>
<flag name="BallGridBeat" value="26"/>
<flag name="SemiCircleSpin" value="27"/>
</attr>
<attr name="indicator_color" format="color"/>
</declare-styleable>
</resources>

View File

@@ -0,0 +1,4 @@
<resources>
<!-- Default screen margins, per the Android Design guidelines. -->
<dimen name="textandiconmargin">10dp</dimen>
</resources>

View File

@@ -0,0 +1,10 @@
<resources>
<string name="listview_header_hint_normal">pull to refresh</string>
<string name="listview_header_hint_release">release to start refresh</string>
<string name="listview_loading">loading...</string>
<string name="nomore_loading">no more to be loaded</string>
<string name="refreshing">refreshing...</string>
<string name="refresh_done">refresh done</string>
<string name="loading_done">loading done</string>
<string name="listview_header_last_time">last update</string>
</resources>