NewPipe-app-android/app/src/main/res/layout/activity_channel.xml

98 lines
4.2 KiB
XML
Raw Normal View History

2016-07-26 13:50:52 +02:00
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout 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"
android:fitsSystemWindows="true"
2016-08-01 01:56:19 +02:00
android:id="@+id/rootView"
2016-07-26 13:50:52 +02:00
tools:context="org.schabi.newpipe.ChannelActivity">
<android.support.design.widget.AppBarLayout
2016-08-01 01:56:19 +02:00
android:id="@+id/channel_app_bar"
2016-07-26 13:50:52 +02:00
android:layout_width="match_parent"
android:layout_height="@dimen/app_bar_height"
android:fitsSystemWindows="true"
android:theme="@style/AppTheme.AppBarOverlay">
<android.support.design.widget.CollapsingToolbarLayout
2016-08-01 01:56:19 +02:00
android:id="@+id/channel_toolbar_layout"
2016-07-26 13:50:52 +02:00
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
2016-08-01 01:56:19 +02:00
app:contentScrim="@color/light_youtube_primary_color"
app:statusBarScrim="@color/light_youtube_dark_color"
2016-07-26 13:50:52 +02:00
app:layout_scrollFlags="scroll|exitUntilCollapsed">
2016-08-01 11:48:52 +02:00
2016-08-01 01:56:19 +02:00
<ImageView
android:id="@+id/channel_banner_image"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
android:scaleType="centerCrop"
android:background="@color/light_youtube_dark_color"
app:layout_collapseMode="parallax" />
2016-08-01 11:48:52 +02:00
<ImageView
android:id="@+id/channel_avatar_halo"
android:visibility="gone"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="28dp"
android:layout_marginStart="28dp"
android:layout_marginTop="38dp"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:src="@drawable/white_circle"/>
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/channel_avatar_view"
android:visibility="gone"
android:layout_width="@dimen/channel_avatar_size"
android:layout_height="@dimen/channel_avatar_size"
android:src="@drawable/buddy"
android:layout_marginLeft="30dp"
android:layout_marginStart="30dp"
android:layout_marginTop="40dp"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"/>
2016-07-26 13:50:52 +02:00
<android.support.v7.widget.Toolbar
2016-08-01 01:56:19 +02:00
android:id="@+id/cannel_toolbar"
2016-07-26 13:50:52 +02:00
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
app:layout_collapseMode="pin"
app:popupTheme="@style/AppTheme.PopupOverlay" />
</android.support.design.widget.CollapsingToolbarLayout>
</android.support.design.widget.AppBarLayout>
<android.support.design.widget.FloatingActionButton
2016-08-01 01:56:19 +02:00
android:id="@+id/channel_rss_fab"
2016-07-26 13:50:52 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/fab_margin"
2017-01-17 17:43:33 +01:00
android:src="?attr/rss"
2016-08-01 01:56:19 +02:00
app:layout_anchor="@id/channel_app_bar"
2016-07-26 13:50:52 +02:00
app:layout_anchorGravity="bottom|end" />
2016-08-01 01:56:19 +02:00
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/channel_loading">
<ProgressBar android:id="@+id/progressBar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:indeterminate="true"/>
</RelativeLayout>
<android.support.v7.widget.RecyclerView
android:id="@+id/channel_streams_view"
2016-08-01 01:56:19 +02:00
android:layout_width="match_parent"
android:layout_height="match_parent"
2017-01-17 11:37:36 +01:00
android:background="?android:windowBackground"
2016-08-01 01:56:19 +02:00
app:layout_behavior="@string/appbar_scrolling_view_behavior"
android:scrollbars="vertical"/>
2016-07-26 13:50:52 +02:00
</android.support.design.widget.CoordinatorLayout>