Redesign conversation and conversation preferences layouts
Remove avatars from conversation items unless in a group chat. // FREEBIEpull/1/head
After Width: | Height: | Size: 148 B |
After Width: | Height: | Size: 149 B |
After Width: | Height: | Size: 119 B |
After Width: | Height: | Size: 140 B |
After Width: | Height: | Size: 195 B |
After Width: | Height: | Size: 200 B |
After Width: | Height: | Size: 115 B |
After Width: | Height: | Size: 131 B |
After Width: | Height: | Size: 191 B |
After Width: | Height: | Size: 194 B |
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<gradient
|
||||||
|
android:angle="90"
|
||||||
|
android:startColor="#3A000000"
|
||||||
|
android:centerColor="#1D000000"
|
||||||
|
android:endColor="@android:color/transparent"/>
|
||||||
|
</shape>
|
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<gradient
|
||||||
|
android:angle="270"
|
||||||
|
android:startColor="#26000000"
|
||||||
|
android:centerColor="#0C000000"
|
||||||
|
android:endColor="@android:color/transparent"/>
|
||||||
|
</shape>
|
@ -1,69 +1,72 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<android.support.design.widget.CoordinatorLayout
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
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"
|
||||||
android:orientation="vertical"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent">
|
android:layout_height="match_parent"
|
||||||
|
android:background="@color/transparent"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools">
|
||||||
|
|
||||||
<android.support.v7.widget.Toolbar
|
<android.support.design.widget.AppBarLayout
|
||||||
android:id="@+id/toolbar"
|
android:id="@+id/app_bar_layout"
|
||||||
android:layout_height="130dp"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:minHeight="?attr/actionBarSize"
|
android:layout_height="300dp"
|
||||||
android:background="?attr/colorPrimary"
|
android:background="@color/transparent">
|
||||||
android:theme="@style/TextSecure.LightActionBar">
|
|
||||||
|
|
||||||
<LinearLayout android:layout_width="match_parent"
|
<android.support.design.widget.CollapsingToolbarLayout
|
||||||
|
android:id="@+id/collapsing_toolbar"
|
||||||
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:orientation="horizontal"
|
android:background="@color/transparent"
|
||||||
android:gravity="center_vertical">
|
app:layout_scrollFlags="scroll|exitUntilCollapsed">
|
||||||
|
|
||||||
<org.thoughtcrime.securesms.components.AvatarImageView
|
<ImageView android:id="@+id/avatar"
|
||||||
android:id="@+id/avatar"
|
android:layout_width="match_parent"
|
||||||
android:foreground="@drawable/contact_photo_background"
|
android:layout_height="match_parent"
|
||||||
android:layout_width="50dp"
|
android:scaleType="centerCrop"
|
||||||
android:layout_height="50dp"
|
android:background="@color/black"
|
||||||
android:cropToPadding="true"
|
android:transitionName="avatar"
|
||||||
app:inverted="true" />
|
app:layout_collapseMode="parallax"
|
||||||
|
app:layout_collapseParallaxMultiplier="0.7"/>
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="88dp"
|
||||||
|
android:background="@drawable/recipient_preference_scrim_top"
|
||||||
|
app:layout_collapseMode="pin"/>
|
||||||
|
|
||||||
<LinearLayout android:layout_width="wrap_content"
|
<View
|
||||||
android:layout_height="wrap_content"
|
android:layout_width="match_parent"
|
||||||
android:orientation="vertical"
|
android:layout_height="98dp"
|
||||||
android:paddingLeft="10dp">
|
android:layout_gravity="bottom"
|
||||||
|
android:layout_alignBottom="@+id/image"
|
||||||
|
android:background="@drawable/recipient_preference_scrim_bottom"/>
|
||||||
|
|
||||||
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
|
<android.support.v7.widget.Toolbar
|
||||||
android:id="@+id/name"
|
android:id="@+id/toolbar"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="?attr/actionBarSize"
|
||||||
android:ellipsize="end"
|
android:theme="@style/TextSecure.LightActionBar"
|
||||||
android:transitionName="recipient_name"
|
android:background="@color/transparent"
|
||||||
style="@style/TextSecure.TitleTextStyle"
|
android:layout_marginTop="24dp"
|
||||||
tools:ignore="UnusedAttribute" />
|
app:layout_collapseMode="pin" >
|
||||||
|
|
||||||
<TextView android:id="@+id/blocked_indicator"
|
</android.support.v7.widget.Toolbar>
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="@string/recipient_preference_activity__blocked"
|
|
||||||
android:textSize="12sp"
|
|
||||||
android:textStyle="bold"
|
|
||||||
android:textColor="?recipient_preference_blocked"
|
|
||||||
android:textAllCaps="true"
|
|
||||||
android:background="@drawable/blocked_indicator_background"
|
|
||||||
android:paddingTop="3dp"
|
|
||||||
android:paddingBottom="3dp"
|
|
||||||
android:paddingLeft="5dp"
|
|
||||||
android:paddingRight="5dp"
|
|
||||||
android:layout_marginTop="2dp"
|
|
||||||
tools:ignore="UnusedAttribute" />
|
|
||||||
|
|
||||||
</LinearLayout>
|
</android.support.design.widget.CollapsingToolbarLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</android.support.design.widget.AppBarLayout>
|
||||||
|
|
||||||
</android.support.v7.widget.Toolbar>
|
<android.support.v4.widget.NestedScrollView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:fillViewport="true"
|
||||||
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
||||||
|
|
||||||
<FrameLayout android:id="@+id/preference_fragment"
|
<FrameLayout android:id="@+id/preference_fragment"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"/>
|
android:layout_height="match_parent"/>
|
||||||
</LinearLayout>
|
|
||||||
|
</android.support.v4.widget.NestedScrollView>
|
||||||
|
|
||||||
|
</android.support.design.widget.CoordinatorLayout>
|