Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <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_gravity="center"
- android:layout_height="match_parent"
- android:background="@drawable/bg_player"
- android:id="@+id/rootView">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:background="@drawable/bg_popup_round"
- android:layout_marginStart="20dp"
- android:layout_marginEnd="20dp"
- android:layout_marginTop="20dp"
- android:orientation="vertical"
- app:layout_constraintTop_toTopOf="parent"
- app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintBottom_toTopOf="@+id/guideline">
- <ImageView
- android:layout_width="24dp"
- android:layout_height="24dp"
- android:background="@drawable/ic_test_close"
- android:rotation="45"
- android:layout_marginBottom="16dp"
- android:layout_marginEnd="8dp"
- app:layout_constraintEnd_toEndOf="parent"
- android:id="@+id/btnAddToUserLessons" app:layout_constraintBottom_toBottomOf="parent"/>
- <TextView
- android:id="@+id/tvTextEn"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- tools:text="— If she had called me yesterday, I would have invited her to the party."
- android:textSize="22sp"
- android:layout_marginStart="24dp"
- android:layout_marginEnd="16dp"
- android:textColor="@color/colorBlackPlayerTextEn"
- android:fontFamily="@font/san_francisco"
- android:layout_marginTop="24dp"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent"/>
- <TextView
- android:id="@+id/tvTextRu"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- tools:text="— Если бы она мне позвонила вчера, я бы пригласил ее на вечеринку."
- android:textSize="22sp"
- android:layout_marginStart="24dp"
- android:layout_marginEnd="16dp"
- android:textColor="@color/colorBlackPlayerTextRu"
- android:fontFamily="@font/san_francisco"
- android:layout_marginTop="8dp"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@+id/tvTextEn"/>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- app:layout_constraintTop_toBottomOf="@id/guideline"
- app:layout_constraintBottom_toBottomOf="@id/guideline2"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintEnd_toEndOf="parent">
- <SeekBar
- android:id="@+id/player_seekBar"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- app:layout_constraintStart_toStartOf="parent"
- android:thumb="@drawable/ic_player_custom_thumb"
- android:thumbTint="@color/colorWhite"
- android:paddingStart="0dp"
- android:paddingEnd="0dp"
- android:progressBackgroundTint="@color/colorBlack"
- android:progressTint="@color/colorDarkBlue2"
- android:splitTrack="false"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintBottom_toTopOf="@+id/tvTextTime2"
- app:layout_constraintTop_toBottomOf="@+id/guideline"/>
- <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content"
- android:orientation="horizontal">
- <TextView
- android:layout_weight="1"
- android:id="@+id/tvTextTime1"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_marginTop="4dp"
- tools:text="03:46"
- android:textSize="12sp"
- android:layout_marginStart="24dp"
- android:textColor="@color/colorBlack"
- android:fontFamily="@font/san_francisco"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@+id/player_seekBar"/>
- <TextView
- android:id="@+id/tvTextTime2"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginTop="4dp"
- tools:text="15:23"
- android:textSize="12sp"
- android:textColor="@color/colorBlack"
- android:fontFamily="@font/san_francisco"
- android:layout_marginEnd="24dp"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintTop_toBottomOf="@+id/player_seekBar"
- />
- </LinearLayout>
- <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:layout_marginTop="16dp"
- >
- <TextView
- android:layout_weight="1"
- android:id="@+id/tvNumber"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:text="2 / 1"
- android:gravity="center|top"
- android:textColor="@color/colorWhite"
- android:fontFamily="@font/san_francisco"
- android:textSize="11sp"
- android:layout_gravity="center"
- android:padding="4dp"
- android:layout_marginStart="16dp"
- android:background="@drawable/bg_lesson"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="@+id/tvTitle"
- app:layout_constraintBottom_toBottomOf="@+id/tvTitle"/>
- <TextView
- android:id="@+id/tvTitle"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Present Simple vs Present Conti"
- android:textSize="17sp"
- android:textColor="@color/colorDarkBlue2"
- android:textStyle="bold"
- android:fontFamily="@font/san_francisco"
- android:layout_marginEnd="16dp"
- app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toEndOf="@+id/tvNumber"
- android:layout_marginStart="8dp"
- app:layout_constraintTop_toBottomOf="@+id/tvTextTime2"/>
- </LinearLayout>
- <TextView
- android:id="@+id/tvType"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Lesson"
- android:layout_gravity="center"
- android:textSize="17sp"
- android:textColor="@color/colorDarkBlue2"
- android:fontFamily="@font/san_francisco"
- android:layout_marginStart="8dp"
- android:layout_marginEnd="8dp"
- android:layout_marginTop="4dp"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.5"
- app:layout_constraintTop_toBottomOf="@+id/tvTitle"/>
- <include layout="@layout/layout_player_controller"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- app:layout_constraintBottom_toBottomOf="parent" android:id="@+id/include2"
- app:layout_constraintStart_toStartOf="parent" app:layout_constraintHorizontal_bias="0.5"
- app:layout_constraintEnd_toEndOf="parent" android:layout_marginTop="8dp"
- app:layout_constraintTop_toBottomOf="@+id/tvType"/>
- </LinearLayout>
- <android.support.constraint.Guideline
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:id="@+id/guideline"
- android:orientation="horizontal"
- app:layout_constraintGuide_percent="0.68"/>
- <android.support.constraint.Guideline
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:id="@+id/guideline2"
- android:orientation="horizontal"
- app:layout_constraintGuide_percent="0.99"/>
- </android.support.constraint.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement