mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-25 17:27:45 +00:00
Media send fragment close button.
This commit is contained in:
parent
4b0179f859
commit
c9db8c6fc9
@ -153,4 +153,22 @@
|
|||||||
|
|
||||||
</org.thoughtcrime.securesms.components.InputAwareLayout>
|
</org.thoughtcrime.securesms.components.InputAwareLayout>
|
||||||
|
|
||||||
|
<FrameLayout
|
||||||
|
android:id="@+id/mediasend_close_button"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_margin="@dimen/small_spacing"
|
||||||
|
android:padding="@dimen/small_spacing"
|
||||||
|
android:background="@drawable/circle_touch_highlight_background"
|
||||||
|
android:clickable="true"
|
||||||
|
android:focusable="true">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="36dp"
|
||||||
|
android:layout_height="36dp"
|
||||||
|
android:src="@drawable/ic_baseline_clear_24"
|
||||||
|
android:tint="@android:color/white"/>
|
||||||
|
|
||||||
|
</FrameLayout>
|
||||||
|
|
||||||
</FrameLayout>
|
</FrameLayout>
|
@ -91,6 +91,7 @@ public class MediaSendFragment extends Fragment implements ViewTreeObserver.OnGl
|
|||||||
private Stub<MediaKeyboard> emojiDrawer;
|
private Stub<MediaKeyboard> emojiDrawer;
|
||||||
private ViewGroup playbackControlsContainer;
|
private ViewGroup playbackControlsContainer;
|
||||||
private TextView charactersLeft;
|
private TextView charactersLeft;
|
||||||
|
private View closeButton;
|
||||||
|
|
||||||
private ControllableViewPager fragmentPager;
|
private ControllableViewPager fragmentPager;
|
||||||
private MediaSendFragmentPagerAdapter fragmentPagerAdapter;
|
private MediaSendFragmentPagerAdapter fragmentPagerAdapter;
|
||||||
@ -154,6 +155,7 @@ public class MediaSendFragment extends Fragment implements ViewTreeObserver.OnGl
|
|||||||
mediaRail = view.findViewById(R.id.mediasend_media_rail);
|
mediaRail = view.findViewById(R.id.mediasend_media_rail);
|
||||||
playbackControlsContainer = view.findViewById(R.id.mediasend_playback_controls_container);
|
playbackControlsContainer = view.findViewById(R.id.mediasend_playback_controls_container);
|
||||||
charactersLeft = view.findViewById(R.id.mediasend_characters_left);
|
charactersLeft = view.findViewById(R.id.mediasend_characters_left);
|
||||||
|
closeButton = view.findViewById(R.id.mediasend_close_button);
|
||||||
|
|
||||||
View sendButtonBkg = view.findViewById(R.id.mediasend_send_button_bkg);
|
View sendButtonBkg = view.findViewById(R.id.mediasend_send_button_bkg);
|
||||||
|
|
||||||
@ -227,6 +229,8 @@ public class MediaSendFragment extends Fragment implements ViewTreeObserver.OnGl
|
|||||||
} else {
|
} else {
|
||||||
emojiToggle.setOnClickListener(this::onEmojiToggleClicked);
|
emojiToggle.setOnClickListener(this::onEmojiToggleClicked);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
closeButton.setOnClickListener(v -> requireActivity().onBackPressed());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user