fix weird resizing of ComposeActivity when emojis are loaded on tablets

main
Conny Duck 6 years ago
parent 10024221b6
commit 265fa3c984
  1. 4
      app/src/main/res/layout/activity_compose.xml
  2. 4
      app/src/main/res/values-large/styles.xml

@ -168,12 +168,12 @@
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/emojiView"
android:layout_width="wrap_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?android:colorBackground"
android:clipToPadding="false"
android:elevation="12dp"
android:orientation="horizontal"
android:orientation="vertical"
android:paddingStart="16dp"
android:paddingTop="8dp"
android:paddingEnd="16dp"

@ -7,6 +7,8 @@
<item name="android:windowSoftInputMode">stateUnspecified|adjustPan</item>
<item name="android:windowCloseOnTouchOutside">false</item>
<item name="android:windowActionModeOverlay">true</item>
<item name="android:windowMinWidthMajor">80%</item>
<item name="android:windowMinWidthMinor">80%</item>
</style>
<style name="TuskyDialogActivityBlackTheme" parent="@style/TuskyBlackTheme">
@ -17,6 +19,8 @@
<item name="android:windowSoftInputMode">stateUnspecified|adjustPan</item>
<item name="android:windowCloseOnTouchOutside">false</item>
<item name="android:windowActionModeOverlay">true</item>
<item name="android:windowMinWidthMajor">80%</item>
<item name="android:windowMinWidthMinor">80%</item>
</style>
</resources>

Loading…
Cancel
Save