Advertisement
andyshon

layout_player

Jan 13th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 10.13 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.constraint.ConstraintLayout
  3.        xmlns:android="http://schemas.android.com/apk/res/android"
  4.        xmlns:app="http://schemas.android.com/apk/res-auto"
  5.        xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
  6.        android:layout_gravity="center"
  7.        android:layout_height="match_parent"
  8.        android:background="@drawable/bg_player"
  9.        android:id="@+id/rootView">
  10.  
  11.  
  12.         <LinearLayout
  13.                android:layout_width="match_parent"
  14.                android:layout_height="0dp"
  15.                android:background="@drawable/bg_popup_round"
  16.                android:layout_marginStart="20dp"
  17.                android:layout_marginEnd="20dp"
  18.                android:layout_marginTop="20dp"
  19.                android:orientation="vertical"
  20.                app:layout_constraintTop_toTopOf="parent"
  21.                app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toEndOf="parent"
  22.                app:layout_constraintBottom_toTopOf="@+id/guideline">
  23.  
  24.  
  25.             <ImageView
  26.                    android:layout_width="24dp"
  27.                    android:layout_height="24dp"
  28.                    android:background="@drawable/ic_test_close"
  29.                    android:rotation="45"
  30.                    android:layout_marginBottom="16dp"
  31.                    android:layout_marginEnd="8dp"
  32.                    app:layout_constraintEnd_toEndOf="parent"
  33.                    android:id="@+id/btnAddToUserLessons" app:layout_constraintBottom_toBottomOf="parent"/>
  34.  
  35.             <TextView
  36.                    android:id="@+id/tvTextEn"
  37.                    android:layout_width="match_parent"
  38.                    android:layout_height="wrap_content"
  39.                    tools:text="— If she had called me yesterday, I would have invited her to the party."
  40.                    android:textSize="22sp"
  41.                    android:layout_marginStart="24dp"
  42.                    android:layout_marginEnd="16dp"
  43.                    android:textColor="@color/colorBlackPlayerTextEn"
  44.                    android:fontFamily="@font/san_francisco"
  45.                    android:layout_marginTop="24dp"
  46.  
  47.                    app:layout_constraintLeft_toLeftOf="parent"
  48.                    app:layout_constraintRight_toRightOf="parent"
  49.                    app:layout_constraintEnd_toEndOf="parent"
  50.                    app:layout_constraintStart_toStartOf="parent"
  51.                    app:layout_constraintTop_toTopOf="parent"/>
  52.  
  53.             <TextView
  54.                    android:id="@+id/tvTextRu"
  55.                    android:layout_width="match_parent"
  56.                    android:layout_height="wrap_content"
  57.                    tools:text="— Если бы она мне позвонила вчера, я бы пригласил ее на вечеринку."
  58.                    android:textSize="22sp"
  59.                    android:layout_marginStart="24dp"
  60.                    android:layout_marginEnd="16dp"
  61.                    android:textColor="@color/colorBlackPlayerTextRu"
  62.                    android:fontFamily="@font/san_francisco"
  63.                    android:layout_marginTop="8dp"
  64.  
  65.                    app:layout_constraintLeft_toLeftOf="parent"
  66.                    app:layout_constraintRight_toRightOf="parent"
  67.                    app:layout_constraintEnd_toEndOf="parent"
  68.                    app:layout_constraintStart_toStartOf="parent"
  69.                    app:layout_constraintTop_toBottomOf="@+id/tvTextEn"/>
  70.  
  71.         </LinearLayout>
  72.  
  73.  
  74.     <LinearLayout
  75.            android:layout_width="match_parent"
  76.            android:layout_height="wrap_content"
  77.            android:orientation="vertical"
  78.            app:layout_constraintTop_toBottomOf="@id/guideline"
  79.            app:layout_constraintBottom_toBottomOf="@id/guideline2"
  80.            app:layout_constraintStart_toStartOf="parent"
  81.            app:layout_constraintEnd_toEndOf="parent">
  82.  
  83.         <SeekBar
  84.                android:id="@+id/player_seekBar"
  85.                android:layout_width="match_parent"
  86.                android:layout_height="wrap_content"
  87.                app:layout_constraintStart_toStartOf="parent"
  88.                android:thumb="@drawable/ic_player_custom_thumb"
  89.                android:thumbTint="@color/colorWhite"
  90.                android:paddingStart="0dp"
  91.                android:paddingEnd="0dp"
  92.                android:progressBackgroundTint="@color/colorBlack"
  93.                android:progressTint="@color/colorDarkBlue2"
  94.                android:splitTrack="false"
  95.                app:layout_constraintEnd_toEndOf="parent"
  96.                app:layout_constraintBottom_toTopOf="@+id/tvTextTime2"
  97.                app:layout_constraintTop_toBottomOf="@+id/guideline"/>
  98.  
  99.         <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content"
  100.                      android:orientation="horizontal">
  101.  
  102.             <TextView
  103.                    android:layout_weight="1"
  104.                    android:id="@+id/tvTextTime1"
  105.                    android:layout_width="0dp"
  106.                    android:layout_height="wrap_content"
  107.                    android:layout_marginTop="4dp"
  108.                    tools:text="03:46"
  109.                    android:textSize="12sp"
  110.                    android:layout_marginStart="24dp"
  111.                    android:textColor="@color/colorBlack"
  112.                    android:fontFamily="@font/san_francisco"
  113.                    app:layout_constraintLeft_toLeftOf="parent"
  114.                    app:layout_constraintStart_toStartOf="parent"
  115.                    app:layout_constraintTop_toBottomOf="@+id/player_seekBar"/>
  116.  
  117.             <TextView
  118.                    android:id="@+id/tvTextTime2"
  119.                    android:layout_width="wrap_content"
  120.                    android:layout_height="wrap_content"
  121.                    android:layout_marginTop="4dp"
  122.                    tools:text="15:23"
  123.                    android:textSize="12sp"
  124.                    android:textColor="@color/colorBlack"
  125.                    android:fontFamily="@font/san_francisco"
  126.                    android:layout_marginEnd="24dp"
  127.                    app:layout_constraintEnd_toEndOf="parent"
  128.                    app:layout_constraintTop_toBottomOf="@+id/player_seekBar"
  129.            />
  130.  
  131.         </LinearLayout>
  132.  
  133.  
  134.         <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content"
  135.                      android:orientation="horizontal"
  136.                      android:layout_marginTop="16dp"
  137.        >
  138.  
  139.             <TextView
  140.                    android:layout_weight="1"
  141.                    android:id="@+id/tvNumber"
  142.                    android:layout_width="0dp"
  143.                    android:layout_height="wrap_content"
  144.                    android:text="2 / 1"
  145.                    android:gravity="center|top"
  146.                    android:textColor="@color/colorWhite"
  147.                    android:fontFamily="@font/san_francisco"
  148.                    android:textSize="11sp"
  149.                    android:layout_gravity="center"
  150.                    android:padding="4dp"
  151.                    android:layout_marginStart="16dp"
  152.                    android:background="@drawable/bg_lesson"
  153.                    app:layout_constraintStart_toStartOf="parent"
  154.                    app:layout_constraintTop_toTopOf="@+id/tvTitle"
  155.                    app:layout_constraintBottom_toBottomOf="@+id/tvTitle"/>
  156.  
  157.             <TextView
  158.                    android:id="@+id/tvTitle"
  159.                    android:layout_width="wrap_content"
  160.                    android:layout_height="wrap_content"
  161.                    android:text="Present Simple vs Present Conti"
  162.                    android:textSize="17sp"
  163.                    android:textColor="@color/colorDarkBlue2"
  164.                    android:textStyle="bold"
  165.                    android:fontFamily="@font/san_francisco"
  166.                    android:layout_marginEnd="16dp"
  167.                    app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toEndOf="@+id/tvNumber"
  168.                    android:layout_marginStart="8dp"
  169.                    app:layout_constraintTop_toBottomOf="@+id/tvTextTime2"/>
  170.  
  171.         </LinearLayout>
  172.  
  173.         <TextView
  174.                android:id="@+id/tvType"
  175.                android:layout_width="wrap_content"
  176.                android:layout_height="wrap_content"
  177.                android:text="Lesson"
  178.                android:layout_gravity="center"
  179.                android:textSize="17sp"
  180.                android:textColor="@color/colorDarkBlue2"
  181.                android:fontFamily="@font/san_francisco"
  182.                android:layout_marginStart="8dp"
  183.                android:layout_marginEnd="8dp"
  184.                android:layout_marginTop="4dp"
  185.                app:layout_constraintStart_toStartOf="parent"
  186.                app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.5"
  187.                app:layout_constraintTop_toBottomOf="@+id/tvTitle"/>
  188.  
  189.         <include layout="@layout/layout_player_controller"
  190.                 android:layout_width="match_parent"
  191.                 android:layout_height="wrap_content"
  192.                 app:layout_constraintBottom_toBottomOf="parent" android:id="@+id/include2"
  193.                 app:layout_constraintStart_toStartOf="parent" app:layout_constraintHorizontal_bias="0.5"
  194.                 app:layout_constraintEnd_toEndOf="parent" android:layout_marginTop="8dp"
  195.                 app:layout_constraintTop_toBottomOf="@+id/tvType"/>
  196.  
  197.  
  198.     </LinearLayout>
  199.     <android.support.constraint.Guideline
  200.            android:layout_width="wrap_content"
  201.            android:layout_height="wrap_content"
  202.            android:id="@+id/guideline"
  203.            android:orientation="horizontal"
  204.            app:layout_constraintGuide_percent="0.68"/>
  205.  
  206.     <android.support.constraint.Guideline
  207.            android:layout_width="wrap_content"
  208.            android:layout_height="wrap_content"
  209.            android:id="@+id/guideline2"
  210.            android:orientation="horizontal"
  211.            app:layout_constraintGuide_percent="0.99"/>
  212.  
  213. </android.support.constraint.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement