普通云公告弹窗UI(视频播放器)

This commit is contained in:
liujing
2021-11-12 16:44:09 +08:00
parent d9c3a345c0
commit a39da430c9
7 changed files with 26 additions and 22 deletions

View File

@@ -97,8 +97,8 @@
<!--播放按钮-->
<ImageView
android:id="@+id/notice_video_play"
android:layout_width="100px"
android:layout_height="100px"
android:layout_width="@dimen/dp_140"
android:layout_height="@dimen/dp_140"
android:src="@drawable/video_play"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"

View File

@@ -25,6 +25,7 @@
<dimen name="dp_56">56px</dimen>
<dimen name="dp_62">62px</dimen>
<dimen name="dp_75">80px</dimen>
<dimen name="dp_140">140px</dimen>
<dimen name="dp_150">150px</dimen>
<dimen name="dp_180">180px</dimen>
<dimen name="dp_200">200px</dimen>

View File

@@ -25,6 +25,7 @@
<dimen name="dp_56">56px</dimen>
<dimen name="dp_62">62px</dimen>
<dimen name="dp_75">80px</dimen>
<dimen name="dp_140">140px</dimen>
<dimen name="dp_150">150px</dimen>
<dimen name="dp_180">180px</dimen>
<dimen name="dp_200">200px</dimen>

View File

@@ -76,7 +76,7 @@ class NoticeSimpleVideoPlayer : StandardGSYVideoPlayer {
start.setImageResource(R.drawable.notice_video_pause)
GSYVideoView.CURRENT_STATE_ERROR ->
start.setImageResource(R.drawable.notice_video_pause)
else -> start.setImageResource(R.drawable.notice_video_play)
else -> start.setImageResource(R.drawable.notice_video_after_pause)
}
}
@@ -164,7 +164,7 @@ class NoticeSimpleVideoPlayer : StandardGSYVideoPlayer {
mBottomContainer?.visibility = View.VISIBLE
mProgressBar?.visibility = View.VISIBLE
start?.visibility = View.VISIBLE
start.setImageResource(R.drawable.notice_video_play)
start.setImageResource(R.drawable.notice_video_after_pause)
isPostBufferUpdate = false
}

View File

@@ -8,8 +8,7 @@
android:id="@+id/surface_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center">
</RelativeLayout>
android:gravity="center"></RelativeLayout>
<RelativeLayout
android:id="@+id/thumb"
@@ -36,12 +35,13 @@
<ImageView
android:id="@+id/start"
android:layout_width="@dimen/notice_play_height"
android:layout_height="@dimen/notice_play_height"
android:layout_width="@dimen/dp_52"
android:layout_height="@dimen/dp_52"
android:layout_gravity="bottom"
android:layout_marginLeft="@dimen/notice_play_marginleft"
android:layout_marginRight="@dimen/notice_play_marginright"
android:src="@drawable/notice_video_pause"
android:layout_gravity="bottom" />
android:layout_marginBottom="@dimen/notice_play_bottom"
android:src="@drawable/notice_video_pause" />
<TextView
android:id="@+id/current"
@@ -49,7 +49,7 @@
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:layout_marginRight="@dimen/notice_current_time_margin"
android:layout_marginBottom="5px"
android:layout_marginBottom="@dimen/notice_time_bottom"
android:gravity="center_vertical"
android:text="02:23"
android:textColor="@android:color/white"
@@ -60,6 +60,7 @@
android:layout_width="@dimen/notice_seekbar_width"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:layout_marginBottom="@dimen/notice_seekbar_bottom"
android:max="100"
android:maxHeight="8px"
android:minHeight="8px"
@@ -72,7 +73,8 @@
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:layout_marginLeft="@dimen/notice_current_time_margin"
android:layout_marginBottom="5px"
android:layout_marginBottom="@dimen/notice_time_bottom"
android:gravity="center_vertical"
android:text="08:66"
android:textColor="@android:color/white"
android:textSize="@dimen/time_textsize" />

View File

@@ -35,12 +35,12 @@
<ImageView
android:id="@+id/start"
android:layout_width="@dimen/notice_play_height_small"
android:layout_height="@dimen/notice_play_height_small"
android:layout_width="@dimen/dp_52"
android:layout_height="@dimen/dp_52"
android:layout_gravity="bottom"
android:layout_marginLeft="@dimen/notice_play_marginleft_small"
android:layout_marginRight="@dimen/notice_play_marginright_small"
android:layout_marginBottom="@dimen/notice_play_bottom_small"
android:layout_marginBottom="@dimen/notice_play_bottom"
android:src="@drawable/notice_video_pause" />
<TextView
@@ -51,7 +51,7 @@
android:layout_marginRight="@dimen/notice_current_time_margin_small"
android:gravity="center_vertical"
android:text="02:23"
android:layout_marginBottom="@dimen/notice_time_bottom_small"
android:layout_marginBottom="@dimen/notice_time_bottom"
android:textColor="@android:color/white"
android:textSize="@dimen/time_textsize" />
@@ -63,7 +63,7 @@
android:max="100"
android:maxHeight="8px"
android:minHeight="8px"
android:layout_marginBottom="@dimen/notice_seekbar_bottom_small"
android:layout_marginBottom="@dimen/notice_seekbar_bottom"
android:progressDrawable="@drawable/notice_seekbar_style"
android:thumb="@drawable/notice_player_ic_circle_nor" />
@@ -73,7 +73,7 @@
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:layout_marginLeft="@dimen/notice_current_time_margin_small"
android:layout_marginBottom="@dimen/notice_time_bottom_small"
android:layout_marginBottom="@dimen/notice_time_bottom"
android:text="08:66"
android:gravity="center_vertical"
android:textColor="@android:color/white"

View File

@@ -2,6 +2,7 @@
<resources>
<dimen name="dp_20">20px</dimen>
<dimen name="dp_52">52px</dimen>
<dimen name="module_ext_speed_width">300px</dimen>
<dimen name="module_ext_speed_height">300px</dimen>
<dimen name="module_ext_speed_padding">60px</dimen>
@@ -57,13 +58,12 @@
<dimen name="time_textsize">26px</dimen>
<dimen name="layout_margin_bottom">20px</dimen>
<dimen name="notice_play_height_small">52px</dimen>
<dimen name="notice_play_marginleft_small">35px</dimen>
<dimen name="notice_play_marginright_small">26px</dimen>
<dimen name="notice_current_time_margin_small">15px</dimen>
<dimen name="notice_seekbar_width_small">600px</dimen>
<dimen name="notice_seekbar_bottom_small">30px</dimen>
<dimen name="notice_time_bottom_small">18px</dimen>
<dimen name="notice_play_bottom_small">28px</dimen>
<dimen name="notice_seekbar_bottom">30px</dimen>
<dimen name="notice_time_bottom">18px</dimen>
<dimen name="notice_play_bottom">28px</dimen>
</resources>