mirror of https://github.com/tasks/tasks
Use CoordinatorLayout in task_list_activity
Fix clipping on android 2.x devicespull/281/head
parent
8d4ca3f185
commit
62e3f4ac21
@ -1,23 +1,12 @@
|
|||||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<android.support.v4.widget.SwipeRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:layout_weight="100">
|
|
||||||
|
|
||||||
<android.support.v4.widget.SwipeRefreshLayout
|
|
||||||
android:id="@+id/swipe_layout"
|
android:id="@+id/swipe_layout"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content">
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
<ListView
|
<ListView
|
||||||
android:id="@android:id/list"
|
android:id="@android:id/list"
|
||||||
style="@style/ListView"
|
style="@style/TaskListView"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="fill_parent"
|
android:layout_height="fill_parent"/>
|
||||||
android:paddingBottom="104dp"
|
|
||||||
android:clipToPadding="false"/>
|
|
||||||
|
|
||||||
</android.support.v4.widget.SwipeRefreshLayout>
|
|
||||||
|
|
||||||
<include layout="@layout/task_list_swipe_layout_empty" />
|
|
||||||
|
|
||||||
</RelativeLayout>
|
</android.support.v4.widget.SwipeRefreshLayout>
|
||||||
|
|||||||
@ -1,24 +1,13 @@
|
|||||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<org.tasks.ui.DraggableSwipeRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:layout_weight="100">
|
|
||||||
|
|
||||||
<org.tasks.ui.DraggableSwipeRefreshLayout
|
|
||||||
android:id="@+id/swipe_layout"
|
android:id="@+id/swipe_layout"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content">
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
<com.todoroo.astrid.ui.DraggableListView
|
<com.todoroo.astrid.ui.DraggableListView
|
||||||
android:id="@android:id/list"
|
android:id="@android:id/list"
|
||||||
style="@style/ListView"
|
style="@style/TaskListView"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="fill_parent"
|
android:layout_height="fill_parent"
|
||||||
android:drawSelectorOnTop="false"
|
android:drawSelectorOnTop="false"/>
|
||||||
android:paddingBottom="104dp"
|
|
||||||
android:clipToPadding="false" />
|
|
||||||
|
|
||||||
</org.tasks.ui.DraggableSwipeRefreshLayout>
|
|
||||||
|
|
||||||
<include layout="@layout/task_list_swipe_layout_empty" />
|
|
||||||
|
|
||||||
</RelativeLayout>
|
</org.tasks.ui.DraggableSwipeRefreshLayout>
|
||||||
|
|||||||
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
<style name="TaskListView" parent="ListView">
|
||||||
|
<item name="android:paddingBottom">90dp</item>
|
||||||
|
<item name="android:clipToPadding">false</item>
|
||||||
|
</style>
|
||||||
|
</resources>
|
||||||
Loading…
Reference in New Issue