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
No related branches found
No related tags found
No related merge requests found
<?xml version="1.0" encoding="utf-8"?> <?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:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent">
android:orientation="vertical">
<LinearLayout <android.support.design.widget.AppBarLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="wrap_content"
android:animateLayoutChanges="true" android:background="#40000000"
android:orientation="vertical"> app:elevation="0dip">
<android.support.constraint.ConstraintLayout <android.support.design.widget.CollapsingToolbarLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content"> android:layout_height="wrap_content"
app:layout_scrollFlags="scroll">
<ImageView <ImageView
android:id="@+id/avatar" android:id="@+id/avatar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:contentDescription="@string/label_avatar" android:contentDescription="@string/label_avatar"
android:scaleType="centerCrop" android:scaleType="fitXY"
app:layout_constraintDimensionRatio="H,3:2" app:layout_collapseMode="parallax"
tools:src="@tools:sample/avatars" /> 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"> <LinearLayout style="@style/Widget.Info.Header">
...@@ -71,7 +85,9 @@ ...@@ -71,7 +85,9 @@
android:contentDescription="@string/label_ignore_long" android:contentDescription="@string/label_ignore_long"
android:drawableTop="@drawable/ic_eye_off" android:drawableTop="@drawable/ic_eye_off"
android:text="@string/label_ignore" android:text="@string/label_ignore"
tools:drawableTint="?colorTextSecondary" /> android:visibility="gone"
tools:drawableTint="?colorTextSecondary"
tools:visibility="visible" />
<android.support.v7.widget.AppCompatButton <android.support.v7.widget.AppCompatButton
android:id="@+id/action_whois" android:id="@+id/action_whois"
...@@ -195,3 +211,4 @@ ...@@ -195,3 +211,4 @@
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
</android.support.v4.widget.NestedScrollView> </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