Advertisement
Guest User

Untitled

a guest
Dec 16th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 7.94 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.league.details.LeagueDetailsActivity">
  8.  
  9.     <LinearLayout
  10.        android:id="@+id/loading_layout"
  11.        android:layout_width="match_parent"
  12.        android:layout_height="match_parent"
  13.        android:orientation="vertical"
  14.        android:gravity="center"
  15.        android:elevation="1dp"
  16.        android:visibility="visible"
  17.        android:background="@color/white">
  18.  
  19.         <ProgressBar
  20.            android:id="@+id/loading"
  21.            style="?android:attr/progressBarStyle"
  22.            android:layout_width="wrap_content"
  23.            android:layout_height="wrap_content" />
  24.  
  25.         <TextView
  26.            android:id="@+id/error_text"
  27.            android:layout_width="match_parent"
  28.            android:layout_height="wrap_content"
  29.            android:background="@color/white"
  30.            android:gravity="center" />
  31.     </LinearLayout>
  32.  
  33.     <LinearLayout
  34.        android:id="@+id/main"
  35.        android:layout_width="match_parent"
  36.        android:layout_height="match_parent"
  37.        android:orientation="vertical">
  38.  
  39.         <androidx.coordinatorlayout.widget.CoordinatorLayout
  40.            android:id="@+id/main_content"
  41.            android:layout_width="match_parent"
  42.            android:layout_height="match_parent"
  43.            android:fitsSystemWindows="false">
  44.  
  45.             <com.google.android.material.appbar.AppBarLayout
  46.                android:id="@+id/appbar"
  47.                android:layout_width="match_parent"
  48.                android:layout_height="wrap_content"
  49.                android:background="@color/gray">
  50.  
  51.                 <com.google.android.material.appbar.CollapsingToolbarLayout
  52.                    android:id="@+id/collapsing_toolbar"
  53.                    android:layout_width="match_parent"
  54.                    android:layout_height="wrap_content"
  55.                    android:fitsSystemWindows="true"
  56.                    app:expandedTitleMarginEnd="64dp"
  57.                    app:expandedTitleMarginStart="48dp"
  58.                    app:expandedTitleTextAppearance="@android:color/transparent"
  59.                    app:layout_scrollFlags="scroll|exitUntilCollapsed">
  60.                     <!--app:layout_scrollFlags="scroll|enterAlways|enterAlwaysCollapsed">-->
  61.  
  62.                     <androidx.cardview.widget.CardView
  63.                        android:layout_width="match_parent"
  64.                        android:layout_height="wrap_content"
  65.                        app:cardElevation="1dp"
  66.                        app:cardCornerRadius="@dimen/default_margin"
  67.                        app:cardUseCompatPadding="true">
  68.  
  69.                         <LinearLayout
  70.                            android:layout_width="match_parent"
  71.                            android:layout_height="wrap_content"
  72.                            android:orientation="vertical">
  73.  
  74.                             <ImageView
  75.                                android:id="@+id/back_drop"
  76.                                android:layout_width="match_parent"
  77.                                android:layout_height="200dp"
  78.                                android:scaleType="centerCrop"
  79.                                android:adjustViewBounds="true"
  80.                                android:layout_margin="@dimen/default_margin"/>
  81.  
  82.                             <LinearLayout
  83.                                android:layout_width="match_parent"
  84.                                android:layout_height="wrap_content"
  85.                                android:orientation="horizontal">
  86.  
  87.                                 <LinearLayout
  88.                                    android:layout_width="wrap_content"
  89.                                    android:layout_height="wrap_content"
  90.                                    android:orientation="vertical">
  91.  
  92.                                     <ImageView
  93.                                        android:id="@+id/logo"
  94.                                        android:layout_width="100dp"
  95.                                        android:layout_height="100dp"
  96.                                        android:scaleType="centerCrop"
  97.                                        android:adjustViewBounds="true"
  98.                                        android:layout_margin="@dimen/default_margin"/>
  99.  
  100.                                     <TextView
  101.                                        android:id="@+id/date"
  102.                                        android:layout_width="100dp"
  103.                                        android:layout_height="wrap_content"
  104.                                        android:textAlignment="center"
  105.                                        android:layout_margin="@dimen/default_margin"/>
  106.                                 </LinearLayout>
  107.  
  108.                                 <LinearLayout
  109.                                    android:layout_width="match_parent"
  110.                                    android:layout_height="wrap_content"
  111.                                    android:orientation="vertical"
  112.                                    android:layout_margin="@dimen/default_margin"
  113.                                    android:layout_weight="1">
  114.  
  115.                                     <TextView
  116.                                        android:id="@+id/title_league"
  117.                                        android:layout_width="match_parent"
  118.                                        android:layout_height="wrap_content"
  119.                                        android:textAlignment="textStart"
  120.                                        android:textStyle="bold"
  121.                                        android:layout_marginStart="@dimen/default_margin"
  122.                                        android:layout_marginEnd="@dimen/default_margin"/>
  123.  
  124.                                     <TextView
  125.                                        android:id="@+id/description_league"
  126.                                        android:layout_width="match_parent"
  127.                                        android:layout_height="wrap_content"
  128.                                        android:textAlignment="textStart"
  129.                                        android:lines="5"
  130.                                        android:ellipsize="end"
  131.                                        android:layout_margin="@dimen/default_margin"/>
  132.                                 </LinearLayout>
  133.                             </LinearLayout>
  134.                         </LinearLayout>
  135.                     </androidx.cardview.widget.CardView>
  136.                 </com.google.android.material.appbar.CollapsingToolbarLayout>
  137.  
  138.                 <com.google.android.material.tabs.TabLayout
  139.                    android:id="@+id/match_tab"
  140.                    android:layout_width="match_parent"
  141.                    android:layout_height="wrap_content"
  142.                    android:background="@color/white"
  143.                    android:layout_marginTop="@dimen/quarter_margin"
  144.                    app:tabIndicatorColor="@color/colorPrimary"
  145.                    app:tabMode="fixed"
  146.                    app:tabSelectedTextColor="@android:color/black"
  147.                    app:tabTextColor="@android:color/darker_gray" />
  148.  
  149.             </com.google.android.material.appbar.AppBarLayout>
  150.  
  151.             <androidx.viewpager.widget.ViewPager
  152.                android:id="@+id/view_pager"
  153.                android:layout_width="match_parent"
  154.                android:layout_height="match_parent"
  155.                android:layout_marginTop="4dp"
  156.                android:background="@color/white"
  157.                app:layout_collapseMode="parallax"
  158.                app:layout_behavior="@string/appbar_scrolling_view_behavior" />
  159.         </androidx.coordinatorlayout.widget.CoordinatorLayout>
  160.     </LinearLayout>
  161. </FrameLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement