some Optimizations for tablets (#647)
* show ComposeActivity as Dialog on tablets * limit timeline width on large devices * limit width on large devices for thread view and search * increase media preview size on large devices
This commit is contained in:
parent
7e1f5edeca
commit
d4572a9d0e
16 changed files with 122 additions and 34 deletions
6
app/src/main/res/values-large/dimens.xml
Normal file
6
app/src/main/res/values-large/dimens.xml
Normal file
|
@ -0,0 +1,6 @@
|
|||
<resources>
|
||||
<dimen name="compose_activity_scrollview_height">400dp</dimen>
|
||||
|
||||
<dimen name="status_media_preview_height">160dp</dimen>
|
||||
<dimen name="status_detail_media_preview_height">180dp</dimen>
|
||||
</resources>
|
12
app/src/main/res/values-large/styles.xml
Normal file
12
app/src/main/res/values-large/styles.xml
Normal file
|
@ -0,0 +1,12 @@
|
|||
<resources>
|
||||
<style name="TuskyDialogActivityTheme" parent="@style/TuskyTheme">
|
||||
<item name="android:windowFrame">@null</item>
|
||||
<item name="android:windowBackground">@drawable/background_dialog_activity</item>
|
||||
<item name="android:windowIsFloating">true</item>
|
||||
<item name="android:windowContentOverlay">@null</item>
|
||||
<item name="android:windowSoftInputMode">stateUnspecified|adjustPan</item>
|
||||
<item name="android:windowCloseOnTouchOutside">false</item>
|
||||
<item name="android:windowActionModeOverlay">true</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
Loading…
Add table
Add a link
Reference in a new issue