-Added styles list for dark and light themes -Updated libs -Auto refactored resources for easy editing -Improved amoled theme
154 lines
6.0 KiB
XML
154 lines
6.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
|
|
<com.vtosters.lite.ui.widget.RatioFrameLayout
|
|
android:id="@id/video_wrap"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentTop="true"
|
|
app:orientation="horizontal"
|
|
app:ratio="0.5625">
|
|
|
|
<com.vk.media.player.video.view.VideoTextureView
|
|
android:layout_gravity="center"
|
|
android:id="@id/video_display"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="fill_parent" />
|
|
|
|
<FrameLayout
|
|
android:id="@id/video_inline_live_holder"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="fill_parent" />
|
|
|
|
<com.google.android.exoplayer2.ui.VKSubtitleView
|
|
android:layout_gravity="center"
|
|
android:id="@id/video_subtitles"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="fill_parent" />
|
|
|
|
<com.vk.newsfeed.FrescoImageView
|
|
android:layout_gravity="center"
|
|
android:id="@id/video_preview"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="fill_parent"
|
|
android:contentDescription="@null" />
|
|
|
|
<View
|
|
android:layout_gravity="end|center|top"
|
|
android:id="@id/sound_control"
|
|
android:background="@drawable/ic_sound_off_shadow_48"
|
|
android:layout_width="48.0dip"
|
|
android:layout_height="48.0dip" />
|
|
|
|
<LinearLayout
|
|
android:layout_gravity="end|center|top"
|
|
android:id="@id/duration_holder"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="8.0dip">
|
|
|
|
<com.vk.libvideo.ui.DurationView
|
|
android:id="@id/duration_view"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" />
|
|
|
|
<com.vtosters.lite.live.views.spectators.SpectatorsInlineView
|
|
android:id="@id/spectators_view"
|
|
android:visibility="gone"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="fill_parent" />
|
|
</LinearLayout>
|
|
|
|
<ProgressBar
|
|
android:layout_gravity="bottom"
|
|
android:id="@id/progress_bar"
|
|
android:visibility="gone"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="2.5dip"
|
|
android:indeterminate="false"
|
|
android:indeterminateOnly="false"
|
|
android:progressDrawable="@drawable/progress_video_feed" />
|
|
|
|
<ImageView
|
|
android:gravity="center"
|
|
android:layout_gravity="center"
|
|
android:id="@id/play"
|
|
android:visibility="invisible"
|
|
android:layout_width="40.0dip"
|
|
android:layout_height="40.0dip"
|
|
android:src="@drawable/ic_attachment_video_play"
|
|
android:contentDescription="@null" />
|
|
|
|
<com.vtosters.lite.ui.movie.PlayButton
|
|
android:layout_gravity="center"
|
|
android:id="@id/replay"
|
|
android:background="@drawable/highlight_video_play"
|
|
android:visibility="invisible"
|
|
android:layout_width="72.0dip"
|
|
android:layout_height="72.0dip"
|
|
android:src="@drawable/ic_replay_36"
|
|
android:scaleType="center" />
|
|
|
|
<com.vtosters.lite.ui.widget.VideoErrorView
|
|
android:layout_gravity="center"
|
|
android:id="@id/error_view"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content" />
|
|
</com.vtosters.lite.ui.widget.RatioFrameLayout>
|
|
|
|
<Space
|
|
android:id="@id/space"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="5.0dip"
|
|
android:layout_below="@id/video_wrap" />
|
|
|
|
<TextView
|
|
android:textAppearance="@string/font_family_medium"
|
|
android:textSize="15.0sp"
|
|
android:textColor="?text_muted"
|
|
android:ellipsize="end"
|
|
android:id="@id/attach_title"
|
|
android:paddingLeft="?attach_left_right_padding"
|
|
android:paddingRight="?attach_left_right_padding"
|
|
android:paddingBottom="3.0dip"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/post_side_padding"
|
|
android:layout_marginRight="@dimen/post_side_padding"
|
|
android:layout_below="@id/space"
|
|
android:lineSpacingExtra="4.0sp" />
|
|
|
|
<TextView
|
|
android:textAppearance="@string/font_family_regular"
|
|
android:textSize="13.0sp"
|
|
android:textColor="?text_subhead"
|
|
android:ellipsize="end"
|
|
android:id="@id/attach_subtitle"
|
|
android:paddingLeft="?attach_left_right_padding"
|
|
android:paddingRight="?attach_left_right_padding"
|
|
android:paddingBottom="10.0dip"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/post_side_padding"
|
|
android:layout_marginRight="@dimen/post_side_padding"
|
|
android:maxLines="1"
|
|
android:layout_below="@id/attach_title" />
|
|
|
|
<com.vtosters.lite.ui.LinkedTextView
|
|
android:textAppearance="@string/font_family_regular"
|
|
android:textSize="15.0sp"
|
|
android:textColor="?text_primary"
|
|
android:id="@id/attach_description"
|
|
android:paddingLeft="?attach_left_right_padding"
|
|
android:paddingRight="?attach_left_right_padding"
|
|
android:paddingBottom="10.0dip"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/post_side_padding"
|
|
android:layout_marginRight="@dimen/post_side_padding"
|
|
android:layout_below="@id/attach_subtitle"
|
|
android:lineSpacingExtra="4.0sp" />
|
|
</RelativeLayout> |