diff --git a/res/drawable-hdpi/ic_attach_grey600_24dp.png b/res/drawable-hdpi/ic_attach_grey600_24dp.png new file mode 100644 index 0000000000..13c7f0c28d Binary files /dev/null and b/res/drawable-hdpi/ic_attach_grey600_24dp.png differ diff --git a/res/drawable-hdpi/ic_attach_white_24dp.png b/res/drawable-hdpi/ic_attach_white_24dp.png new file mode 100644 index 0000000000..a176ce207d Binary files /dev/null and b/res/drawable-hdpi/ic_attach_white_24dp.png differ diff --git a/res/drawable-mdpi/ic_attach_grey600_24dp.png b/res/drawable-mdpi/ic_attach_grey600_24dp.png new file mode 100644 index 0000000000..0ea546b1f9 Binary files /dev/null and b/res/drawable-mdpi/ic_attach_grey600_24dp.png differ diff --git a/res/drawable-mdpi/ic_attach_white_24dp.png b/res/drawable-mdpi/ic_attach_white_24dp.png new file mode 100644 index 0000000000..bfe8b2891d Binary files /dev/null and b/res/drawable-mdpi/ic_attach_white_24dp.png differ diff --git a/res/drawable-xhdpi/ic_attach_grey600_24dp.png b/res/drawable-xhdpi/ic_attach_grey600_24dp.png new file mode 100644 index 0000000000..28aef9e9b1 Binary files /dev/null and b/res/drawable-xhdpi/ic_attach_grey600_24dp.png differ diff --git a/res/drawable-xhdpi/ic_attach_white_24dp.png b/res/drawable-xhdpi/ic_attach_white_24dp.png new file mode 100644 index 0000000000..ff96fffc29 Binary files /dev/null and b/res/drawable-xhdpi/ic_attach_white_24dp.png differ diff --git a/res/drawable-xxhdpi/ic_attach_grey600_24dp.png b/res/drawable-xxhdpi/ic_attach_grey600_24dp.png new file mode 100644 index 0000000000..7b0785e116 Binary files /dev/null and b/res/drawable-xxhdpi/ic_attach_grey600_24dp.png differ diff --git a/res/drawable-xxhdpi/ic_attach_white_24dp.png b/res/drawable-xxhdpi/ic_attach_white_24dp.png new file mode 100644 index 0000000000..fbc2d2d905 Binary files /dev/null and b/res/drawable-xxhdpi/ic_attach_white_24dp.png differ diff --git a/res/layout/conversation_activity.xml b/res/layout/conversation_activity.xml index 897560ed06..0d469465f4 100644 --- a/res/layout/conversation_activity.xml +++ b/res/layout/conversation_activity.xml @@ -99,29 +99,26 @@ - + android:layout_width="46dp" + android:layout_height="44dp"> + android:nextFocusLeft="@+id/embedded_text_editor" /> + diff --git a/res/values/themes.xml b/res/values/themes.xml index aa6eb50b24..70672c03e9 100644 --- a/res/values/themes.xml +++ b/res/values/themes.xml @@ -54,6 +54,7 @@ @drawable/ic_volume_up_light @drawable/ic_account_box_light @drawable/ic_photo_camera_light + @drawable/ic_attach_grey600_24dp @drawable/conversation_item_background @color/conversation_item_received_background_light @@ -190,6 +191,7 @@ @drawable/ic_volume_up_dark @drawable/ic_account_box_dark @drawable/ic_photo_camera_dark + @drawable/ic_attach_white_24dp @drawable/ic_add_white_24dp @drawable/ic_group_white_24dp diff --git a/src/org/thoughtcrime/securesms/components/AnimatingToggle.java b/src/org/thoughtcrime/securesms/components/AnimatingToggle.java index e88808ef8d..55b82e8046 100644 --- a/src/org/thoughtcrime/securesms/components/AnimatingToggle.java +++ b/src/org/thoughtcrime/securesms/components/AnimatingToggle.java @@ -2,6 +2,7 @@ package org.thoughtcrime.securesms.components; import android.content.Context; import android.support.annotation.NonNull; +import android.support.v4.view.animation.FastOutSlowInInterpolator; import android.util.AttributeSet; import android.view.View; import android.view.ViewGroup; @@ -54,6 +55,7 @@ public class AnimatingToggle extends FrameLayout { private void animateOut(int viewIndex, TranslateAnimation animation) { final View view = getChildAt(viewIndex); + animation.setInterpolator(new FastOutSlowInInterpolator()); animation.setAnimationListener(new Animation.AnimationListener() { @Override public void onAnimationStart(Animation animation) { @@ -73,6 +75,7 @@ public class AnimatingToggle extends FrameLayout { } private void animateIn(int viewIndex, TranslateAnimation animation) { + animation.setInterpolator(new FastOutSlowInInterpolator()); final View view = getChildAt(viewIndex); view.setVisibility(View.VISIBLE); view.startAnimation(animation);