Advertisement
andyshon

layout_player_2

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