Skip to content
Snippets Groups Projects
Commit ec3a734f authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Improved user info UI

parent 7913cbab
Branches
Tags
No related merge requests found
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
<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:orientation="vertical">
android:layout_height="match_parent">
<LinearLayout
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:animateLayoutChanges="true"
android:orientation="vertical">
android:layout_height="wrap_content"
android:background="#40000000"
app:elevation="0dip">
<android.support.constraint.ConstraintLayout
<android.support.design.widget.CollapsingToolbarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
app:layout_scrollFlags="scroll">
<ImageView
android:id="@+id/avatar"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:contentDescription="@string/label_avatar"
android:scaleType="centerCrop"
app:layout_constraintDimensionRatio="H,3:2"
android:scaleType="fitXY"
app:layout_collapseMode="parallax"
tools:src="@tools:sample/avatars" />
</android.support.constraint.ConstraintLayout>
</android.support.design.widget.CollapsingToolbarLayout>
</android.support.design.widget.AppBarLayout>
<android.support.v4.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:animateLayoutChanges="true"
android:orientation="vertical">
<LinearLayout style="@style/Widget.Info.Header">
......@@ -71,7 +85,9 @@
android:contentDescription="@string/label_ignore_long"
android:drawableTop="@drawable/ic_eye_off"
android:text="@string/label_ignore"
tools:drawableTint="?colorTextSecondary" />
android:visibility="gone"
tools:drawableTint="?colorTextSecondary"
tools:visibility="visible" />
<android.support.v7.widget.AppCompatButton
android:id="@+id/action_whois"
......@@ -195,3 +211,4 @@
</LinearLayout>
</LinearLayout>
</android.support.v4.widget.NestedScrollView>
</android.support.design.widget.CoordinatorLayout>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment