mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
ConversationActivity: properly implement edge-to-edge
This commit is contained in:
@@ -873,6 +873,11 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
||||
|
||||
ImageButton quickCameraToggle = ViewUtil.findById(this, R.id.quick_camera_toggle);
|
||||
|
||||
// apply padding top to avoid drawing behind top bar
|
||||
ViewUtil.applyWindowInsets(findViewById(R.id.fragment_content), false, true, false, false);
|
||||
// apply padding to root to avoid collision with system bars
|
||||
ViewUtil.applyWindowInsets(findViewById(R.id.root_layout), true, false, true, true);
|
||||
|
||||
container.addOnKeyboardShownListener(this);
|
||||
container.addOnKeyboardHiddenListener(backgroundView);
|
||||
container.addOnKeyboardShownListener(backgroundView);
|
||||
@@ -933,7 +938,6 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
||||
supportActionBar.setCustomView(R.layout.conversation_title_view);
|
||||
supportActionBar.setDisplayShowCustomEnabled(true);
|
||||
supportActionBar.setDisplayShowTitleEnabled(false);
|
||||
supportActionBar.setElevation(0); // TODO: use custom toolbar instead
|
||||
|
||||
Toolbar parent = (Toolbar) supportActionBar.getCustomView().getParent();
|
||||
parent.setPadding(0,0,0,0);
|
||||
|
||||
@@ -2,10 +2,12 @@
|
||||
<RelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:fitsSystemWindows="true"
|
||||
android:background="?attr/colorPrimary"
|
||||
android:id="@+id/root_layout"
|
||||
android:background="?attr/input_panel_bg_color"
|
||||
android:layout_height="match_parent" android:layout_width="match_parent">
|
||||
|
||||
<include layout="@layout/status_bar_background"/>
|
||||
|
||||
<org.thoughtcrime.securesms.components.ScaleStableImageView
|
||||
android:id="@+id/conversation_background"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
Reference in New Issue
Block a user