|
@@ -1,63 +1,88 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
- android:paddingBottom="@dimen/activity_vertical_margin"
|
|
|
- android:paddingLeft="@dimen/activity_horizontal_margin"
|
|
|
- android:paddingRight="@dimen/activity_horizontal_margin"
|
|
|
- android:paddingTop="@dimen/activity_vertical_margin"
|
|
|
tools:context=".viewers.MediaViewerAcitvity">
|
|
|
|
|
|
+
|
|
|
<Button
|
|
|
android:id="@+id/info"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_alignParentBottom="true"
|
|
|
- android:layout_alignParentEnd="true"
|
|
|
- android:layout_alignParentLeft="true"
|
|
|
- android:layout_alignParentRight="true"
|
|
|
- android:layout_alignParentStart="true"
|
|
|
+ android:layout_marginBottom="8dp"
|
|
|
+ android:layout_marginEnd="8dp"
|
|
|
+ android:layout_marginLeft="8dp"
|
|
|
+ android:layout_marginRight="8dp"
|
|
|
+ android:layout_marginStart="8dp"
|
|
|
android:onClick="onOk"
|
|
|
- android:text="@string/btn_ok"
|
|
|
+ android:text="@string/pass"
|
|
|
android:textSize="@dimen/font_button_size"
|
|
|
- android:textStyle="bold" />
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent" />
|
|
|
|
|
|
<ImageButton
|
|
|
android:id="@+id/play"
|
|
|
android:layout_width="40dp"
|
|
|
android:layout_height="40dp"
|
|
|
android:layout_alignTop="@+id/fullscreen"
|
|
|
+ android:layout_marginEnd="8dp"
|
|
|
+ android:layout_marginRight="8dp"
|
|
|
+ android:layout_marginTop="8dp"
|
|
|
android:layout_toLeftOf="@+id/fullscreen"
|
|
|
android:layout_toStartOf="@+id/fullscreen"
|
|
|
android:onClick="onPlayPause"
|
|
|
- android:src="@android:drawable/ic_media_pause" />
|
|
|
+ android:src="@android:drawable/ic_media_pause"
|
|
|
+ app:layout_constraintEnd_toStartOf="@+id/fullscreen"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/title" />
|
|
|
|
|
|
<SeekBar
|
|
|
android:id="@+id/seekBar"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="0dp"
|
|
|
android:layout_alignBottom="@+id/play"
|
|
|
android:layout_alignParentLeft="true"
|
|
|
android:layout_alignParentStart="true"
|
|
|
android:layout_below="@+id/title"
|
|
|
+ android:layout_marginBottom="8dp"
|
|
|
+ android:layout_marginEnd="8dp"
|
|
|
+ android:layout_marginLeft="8dp"
|
|
|
+ android:layout_marginRight="8dp"
|
|
|
+ android:layout_marginStart="8dp"
|
|
|
+ android:layout_marginTop="16dp"
|
|
|
android:layout_toLeftOf="@+id/play"
|
|
|
android:layout_toStartOf="@+id/play"
|
|
|
- android:background="#191919" />
|
|
|
+ android:background="#191919"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/play"
|
|
|
+ app:layout_constraintEnd_toStartOf="@+id/play"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/title" />
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/title"
|
|
|
- android:layout_width="fill_parent"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_alignParentEnd="true"
|
|
|
android:layout_alignParentLeft="true"
|
|
|
android:layout_alignParentRight="true"
|
|
|
android:layout_alignParentStart="true"
|
|
|
android:layout_alignParentTop="true"
|
|
|
+ android:layout_marginEnd="8dp"
|
|
|
+ android:layout_marginLeft="8dp"
|
|
|
+ android:layout_marginRight="8dp"
|
|
|
+ android:layout_marginStart="8dp"
|
|
|
+ android:layout_marginTop="8dp"
|
|
|
+ android:text="test"
|
|
|
android:textAlignment="center"
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
|
|
android:textSize="25dp"
|
|
|
- android:textStyle="bold" />
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toEndOf="@+id/imageView4"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
<ImageButton
|
|
|
android:id="@+id/fullscreen"
|
|
@@ -66,28 +91,43 @@
|
|
|
android:layout_alignParentEnd="true"
|
|
|
android:layout_alignParentRight="true"
|
|
|
android:layout_below="@+id/title"
|
|
|
+ android:layout_marginEnd="8dp"
|
|
|
+ android:layout_marginRight="8dp"
|
|
|
+ android:layout_marginTop="8dp"
|
|
|
android:onClick="onFullscreen"
|
|
|
- android:src="@android:drawable/ic_menu_crop" />
|
|
|
+ android:src="@android:drawable/ic_menu_crop"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/title" />
|
|
|
|
|
|
- <RelativeLayout
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_above="@+id/info"
|
|
|
+ <FrameLayout
|
|
|
+ android:id="@+id/media_viewer"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:layout_alignParentBottom="true"
|
|
|
android:layout_alignParentLeft="true"
|
|
|
+ android:layout_alignParentRight="true"
|
|
|
android:layout_alignParentStart="true"
|
|
|
- android:layout_below="@+id/seekBar"
|
|
|
- android:gravity="center">
|
|
|
-
|
|
|
- <FrameLayout
|
|
|
- android:id="@+id/media_viewer"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_alignParentBottom="true"
|
|
|
- android:layout_alignParentLeft="true"
|
|
|
- android:layout_alignParentRight="true"
|
|
|
- android:layout_alignParentStart="true"
|
|
|
- android:layout_alignParentTop="true"></FrameLayout>
|
|
|
+ android:layout_alignParentTop="true"
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/info"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/play"></FrameLayout>
|
|
|
|
|
|
- </RelativeLayout>
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/imageView4"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:layout_above="@+id/play"
|
|
|
+ android:layout_marginLeft="8dp"
|
|
|
+ android:layout_marginStart="8dp"
|
|
|
+ android:layout_marginTop="8dp"
|
|
|
+ android:adjustViewBounds="true"
|
|
|
+ android:cropToPadding="false"
|
|
|
+ android:onClick="onBackClicked"
|
|
|
+ android:scaleType="fitCenter"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/title"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ app:srcCompat="@drawable/back" />
|
|
|
|
|
|
-</RelativeLayout>
|
|
|
+</android.support.constraint.ConstraintLayout>
|