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 devicesmain
parent
42b13caffc
commit
6584ffc41d
@ -0,0 +1,5 @@ |
|||||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android"> |
||||||
|
<corners android:radius="5dp" /> |
||||||
|
<solid android:color="@color/window_background_dark" /> |
||||||
|
</shape> |
@ -0,0 +1,5 @@ |
|||||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android"> |
||||||
|
<corners android:radius="5dp" /> |
||||||
|
<solid android:color="@color/window_background_light" /> |
||||||
|
</shape> |
@ -0,0 +1,20 @@ |
|||||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||||
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" |
||||||
|
android:layout_width="match_parent" |
||||||
|
android:layout_height="match_parent" |
||||||
|
android:background="?attr/tab_page_margin_drawable"> |
||||||
|
|
||||||
|
<android.support.v4.widget.SwipeRefreshLayout |
||||||
|
android:id="@+id/swipe_refresh_layout" |
||||||
|
android:layout_width="640dp" |
||||||
|
android:layout_height="match_parent" |
||||||
|
android:layout_gravity="center_horizontal" |
||||||
|
android:background="?attr/window_background"> |
||||||
|
|
||||||
|
<android.support.v7.widget.RecyclerView |
||||||
|
android:id="@+id/recycler_view" |
||||||
|
android:layout_width="match_parent" |
||||||
|
android:layout_height="match_parent" /> |
||||||
|
</android.support.v4.widget.SwipeRefreshLayout> |
||||||
|
|
||||||
|
</FrameLayout> |
@ -0,0 +1,21 @@ |
|||||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||||
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" |
||||||
|
android:layout_width="match_parent" |
||||||
|
android:layout_height="match_parent" |
||||||
|
android:background="?attr/tab_page_margin_drawable"> |
||||||
|
|
||||||
|
<android.support.v4.widget.SwipeRefreshLayout |
||||||
|
android:id="@+id/swipe_refresh_layout" |
||||||
|
android:layout_width="640dp" |
||||||
|
android:layout_height="match_parent" |
||||||
|
android:layout_gravity="center_horizontal" |
||||||
|
android:background="?attr/window_background"> |
||||||
|
|
||||||
|
<android.support.v7.widget.RecyclerView |
||||||
|
android:id="@+id/recycler_view" |
||||||
|
android:layout_width="match_parent" |
||||||
|
android:layout_height="match_parent" |
||||||
|
android:scrollbars="vertical" /> |
||||||
|
</android.support.v4.widget.SwipeRefreshLayout> |
||||||
|
|
||||||
|
</FrameLayout> |
@ -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> |
@ -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> |
@ -0,0 +1,3 @@ |
|||||||
|
<resources> |
||||||
|
<dimen name="timeline_width">640dp</dimen> |
||||||
|
</resources> |
Loading…
Reference in new issue