Advertisement
Guest User

xml

a guest
Oct 19th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.84 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.             xmlns:app="http://schemas.android.com/apk/res-auto"
  4.             xmlns:tools="http://schemas.android.com/tools"
  5.             android:layout_width="match_parent"
  6.             android:layout_height="match_parent"
  7.             tools:context=".ui.fragments.myprofile.MyProfileFragment">
  8.  
  9.     <android.support.constraint.ConstraintLayout
  10.        android:layout_width="match_parent"
  11.        android:layout_height="match_parent">
  12.  
  13.  
  14.         <android.support.design.widget.TabLayout
  15.            android:id="@+id/tabs"
  16.            android:layout_width="368dp"
  17.            android:layout_height="wrap_content"
  18.            app:layout_constraintBottom_toTopOf="@+id/guideline_top"
  19.            app:layout_constraintHorizontal_bias="0.4"
  20.            app:layout_constraintLeft_toLeftOf="parent"
  21.            app:layout_constraintRight_toRightOf="parent"
  22.            app:layout_constraintTop_toTopOf="parent"
  23.            app:tabIndicatorColor="@android:color/white"
  24.            app:tabIndicatorHeight="6dp"
  25.            app:tabSelectedTextColor="@android:color/white"
  26.            app:tabTextColor="@android:color/white"/>
  27.  
  28.  
  29.         <android.support.v4.view.ViewPager
  30.            android:id="@+id/vp_tabs"
  31.            android:layout_width="0dp"
  32.            android:layout_height="0dp"
  33.            app:layout_behavior="@string/appbar_scrolling_view_behavior"
  34.            app:layout_constraintLeft_toLeftOf="parent"
  35.            app:layout_constraintRight_toRightOf="parent"
  36.            app:layout_constraintBottom_toBottomOf="parent"
  37.            android:layout_marginEnd="8dp"
  38.            app:layout_constraintTop_toTopOf="@+id/guideline_top"
  39.            android:layout_marginTop="0dp"/>
  40.  
  41.         <android.support.constraint.Guideline
  42.            android:id="@+id/guideline_top"
  43.            android:layout_width="wrap_content"
  44.            android:layout_height="wrap_content"
  45.            android:orientation="horizontal"
  46.            app:layout_constraintGuide_percent="0.1"
  47.            tools:layout_editor_absoluteX="0dp"
  48.            tools:layout_editor_absoluteY="132dp"/>
  49.  
  50.         <FrameLayout
  51.            android:id="@+id/container"
  52.            android:layout_width="0dp"
  53.            android:layout_height="0dp"
  54.            android:layout_marginEnd="8dp"
  55.            android:layout_marginRight="8dp"
  56.            app:layout_constraintBottom_toBottomOf="parent"
  57.            app:layout_constraintHorizontal_bias="1.0"
  58.            app:layout_constraintLeft_toLeftOf="parent"
  59.            app:layout_constraintRight_toRightOf="parent"
  60.            app:layout_constraintTop_toTopOf="@+id/guideline_top"
  61.            app:layout_constraintVertical_bias="0.0">
  62.  
  63.         </FrameLayout>
  64.     </android.support.constraint.ConstraintLayout>
  65.  
  66. </FrameLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement