BIN
res/drawable-hdpi/ic_attach_grey600_24dp.png
Normal file
After Width: | Height: | Size: 3.7 KiB |
BIN
res/drawable-hdpi/ic_attach_white_24dp.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
res/drawable-mdpi/ic_attach_grey600_24dp.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
res/drawable-mdpi/ic_attach_white_24dp.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
res/drawable-xhdpi/ic_attach_grey600_24dp.png
Normal file
After Width: | Height: | Size: 5.8 KiB |
BIN
res/drawable-xhdpi/ic_attach_white_24dp.png
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
res/drawable-xxhdpi/ic_attach_grey600_24dp.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
res/drawable-xxhdpi/ic_attach_white_24dp.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
@ -99,29 +99,26 @@
|
||||
|
||||
<org.thoughtcrime.securesms.components.AnimatingToggle
|
||||
android:id="@+id/button_toggle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
android:layout_width="46dp"
|
||||
android:layout_height="44dp">
|
||||
<ImageButton
|
||||
android:id="@+id/attach_button"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center"
|
||||
android:background="@drawable/touch_highlight_background"
|
||||
android:padding="12dp"
|
||||
android:src="?conversation_attach_file"
|
||||
android:src="?conversation_attach"
|
||||
android:contentDescription="@string/ConversationActivity_add_attachment"
|
||||
android:nextFocusLeft="@+id/embedded_text_editor"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"/>
|
||||
android:nextFocusLeft="@+id/embedded_text_editor" />
|
||||
|
||||
<org.thoughtcrime.securesms.components.SendButton
|
||||
android:id="@+id/send_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center"
|
||||
android:background="@drawable/touch_highlight_background"
|
||||
android:contentDescription="@string/conversation_activity__send"
|
||||
android:nextFocusLeft="@+id/embedded_text_editor"
|
||||
android:padding="12dp"
|
||||
android:src="?conversation_transport_sms_indicator"
|
||||
android:focusable="true"
|
||||
android:clickable="false"
|
||||
|
@ -38,6 +38,7 @@
|
||||
<attr name="conversation_attach_sound" format="reference"/>
|
||||
<attr name="conversation_attach_contact_info" format="reference"/>
|
||||
<attr name="conversation_attach_photo" format="reference"/>
|
||||
<attr name="conversation_attach" format="reference"/>
|
||||
|
||||
<attr name="conversation_item_background" format="reference"/>
|
||||
<attr name="conversation_item_received_background" format="reference" />
|
||||
|
@ -54,6 +54,7 @@
|
||||
<item name="conversation_attach_sound">@drawable/ic_volume_up_light</item>
|
||||
<item name="conversation_attach_contact_info">@drawable/ic_account_box_light</item>
|
||||
<item name="conversation_attach_photo">@drawable/ic_photo_camera_light</item>
|
||||
<item name="conversation_attach">@drawable/ic_attach_grey600_24dp</item>
|
||||
|
||||
<item name="conversation_item_background">@drawable/conversation_item_background</item>
|
||||
<item name="conversation_item_received_background">@color/conversation_item_received_background_light</item>
|
||||
@ -190,6 +191,7 @@
|
||||
<item name="conversation_attach_sound">@drawable/ic_volume_up_dark</item>
|
||||
<item name="conversation_attach_contact_info">@drawable/ic_account_box_dark</item>
|
||||
<item name="conversation_attach_photo">@drawable/ic_photo_camera_dark</item>
|
||||
<item name="conversation_attach">@drawable/ic_attach_white_24dp</item>
|
||||
|
||||
<item name="menu_new_conversation_icon">@drawable/ic_add_white_24dp</item>
|
||||
<item name="menu_group_icon">@drawable/ic_group_white_24dp</item>
|
||||
|
@ -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);
|
||||
|