直播间的滚动
This commit is contained in:
BIN
live/src/main/res/drawable/img_loading_01.png
Normal file
BIN
live/src/main/res/drawable/img_loading_01.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.9 KiB |
BIN
live/src/main/res/drawable/img_loading_02.png
Normal file
BIN
live/src/main/res/drawable/img_loading_02.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.9 KiB |
BIN
live/src/main/res/drawable/img_loading_03.png
Normal file
BIN
live/src/main/res/drawable/img_loading_03.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.8 KiB |
14
live/src/main/res/drawable/loading_animation.xml
Normal file
14
live/src/main/res/drawable/loading_animation.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<animation-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item
|
||||
android:drawable="@drawable/img_loading_01"
|
||||
android:duration="350" />
|
||||
<item
|
||||
android:drawable="@drawable/img_loading_02"
|
||||
android:duration="350" />
|
||||
<item
|
||||
android:drawable="@drawable/img_loading_03"
|
||||
android:duration="350" />
|
||||
|
||||
</animation-list>
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.drawerlayout.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<com.yunbao.common.views.weight.MyDrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/drawer_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
@@ -79,9 +80,8 @@
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:paddingStart="8dp"
|
||||
android:paddingEnd="8dp"
|
||||
android:paddingTop="56dp"
|
||||
>
|
||||
android:paddingTop="56dp"
|
||||
android:paddingEnd="8dp">
|
||||
|
||||
<com.ms.banner.Banner
|
||||
android:id="@+id/banner"
|
||||
@@ -113,4 +113,4 @@
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
</androidx.drawerlayout.widget.DrawerLayout>
|
||||
</com.yunbao.common.views.weight.MyDrawerLayout>
|
||||
13
live/src/main/res/layout/activity_live_detail.xml
Normal file
13
live/src/main/res/layout/activity_live_detail.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<com.yunbao.common.views.weight.VerticalViewPager
|
||||
android:id="@+id/view_pager"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:overScrollMode="never" />
|
||||
|
||||
|
||||
</RelativeLayout>
|
||||
20
live/src/main/res/layout/layout_portrait_live_item.xml
Normal file
20
live/src/main/res/layout/layout_portrait_live_item.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_bg"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@mipmap/live_bg" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_loading"
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="10dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:background="@drawable/loading_animation" />
|
||||
|
||||
</RelativeLayout>
|
||||
Reference in New Issue
Block a user