Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <FrameLayout 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_height="match_parent"
- tools:context=".ui.league.details.LeagueDetailsActivity">
- <LinearLayout
- android:id="@+id/loading_layout"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical"
- android:gravity="center"
- android:elevation="1dp"
- android:visibility="visible"
- android:background="@color/white">
- <ProgressBar
- android:id="@+id/loading"
- style="?android:attr/progressBarStyle"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content" />
- <TextView
- android:id="@+id/error_text"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="@color/white"
- android:gravity="center" />
- </LinearLayout>
- <LinearLayout
- android:id="@+id/main"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical">
- <androidx.coordinatorlayout.widget.CoordinatorLayout
- android:id="@+id/main_content"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:fitsSystemWindows="false">
- <com.google.android.material.appbar.AppBarLayout
- android:id="@+id/appbar"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="@color/gray">
- <com.google.android.material.appbar.CollapsingToolbarLayout
- android:id="@+id/collapsing_toolbar"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:fitsSystemWindows="true"
- app:expandedTitleMarginEnd="64dp"
- app:expandedTitleMarginStart="48dp"
- app:expandedTitleTextAppearance="@android:color/transparent"
- app:layout_scrollFlags="scroll|exitUntilCollapsed">
- <!--app:layout_scrollFlags="scroll|enterAlways|enterAlwaysCollapsed">-->
- <androidx.cardview.widget.CardView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- app:cardElevation="1dp"
- app:cardCornerRadius="@dimen/default_margin"
- app:cardUseCompatPadding="true">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical">
- <ImageView
- android:id="@+id/back_drop"
- android:layout_width="match_parent"
- android:layout_height="200dp"
- android:scaleType="centerCrop"
- android:adjustViewBounds="true"
- android:layout_margin="@dimen/default_margin"/>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal">
- <LinearLayout
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:orientation="vertical">
- <ImageView
- android:id="@+id/logo"
- android:layout_width="100dp"
- android:layout_height="100dp"
- android:scaleType="centerCrop"
- android:adjustViewBounds="true"
- android:layout_margin="@dimen/default_margin"/>
- <TextView
- android:id="@+id/date"
- android:layout_width="100dp"
- android:layout_height="wrap_content"
- android:textAlignment="center"
- android:layout_margin="@dimen/default_margin"/>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- android:layout_margin="@dimen/default_margin"
- android:layout_weight="1">
- <TextView
- android:id="@+id/title_league"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:textAlignment="textStart"
- android:textStyle="bold"
- android:layout_marginStart="@dimen/default_margin"
- android:layout_marginEnd="@dimen/default_margin"/>
- <TextView
- android:id="@+id/description_league"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:textAlignment="textStart"
- android:lines="5"
- android:ellipsize="end"
- android:layout_margin="@dimen/default_margin"/>
- </LinearLayout>
- </LinearLayout>
- </LinearLayout>
- </androidx.cardview.widget.CardView>
- </com.google.android.material.appbar.CollapsingToolbarLayout>
- <com.google.android.material.tabs.TabLayout
- android:id="@+id/match_tab"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="@color/white"
- android:layout_marginTop="@dimen/quarter_margin"
- app:tabIndicatorColor="@color/colorPrimary"
- app:tabMode="fixed"
- app:tabSelectedTextColor="@android:color/black"
- app:tabTextColor="@android:color/darker_gray" />
- </com.google.android.material.appbar.AppBarLayout>
- <androidx.viewpager.widget.ViewPager
- android:id="@+id/view_pager"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginTop="4dp"
- android:background="@color/white"
- app:layout_collapseMode="parallax"
- app:layout_behavior="@string/appbar_scrolling_view_behavior" />
- </androidx.coordinatorlayout.widget.CoordinatorLayout>
- </LinearLayout>
- </FrameLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement