This repository has been archived by the owner on Aug 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from schul-cloud/95-swipe-refresh-for-every-ne…
…cessary-activity add swipe to refresh to every necessary activity
- Loading branch information
Showing
8 changed files
with
182 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 27 additions & 18 deletions
45
app/src/main/res/layouts/courses/layout/activity_course.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,35 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content"> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="@color/gray" | ||
android:paddingTop="?attr/actionBarSize" | ||
tools:context="org.schulcloud.mobile.ui.main.MainActivity"> | ||
android:layout_height="wrap_content" | ||
android:background="@color/gray"> | ||
|
||
<android.support.v7.widget.RecyclerView | ||
android:id="@+id/recycler_view" | ||
<android.support.v4.widget.SwipeRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:id="@+id/swiperefresh" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:clipToPadding="false" | ||
android:paddingBottom="6dp" | ||
android:paddingTop="6dp" | ||
android:scrollbars="vertical"/> | ||
android:layout_marginTop="70dp"> | ||
|
||
</RelativeLayout> | ||
<FrameLayout android:id="@+id/overlay_fragment_container" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"/> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
tools:context="org.schulcloud.mobile.ui.main.MainActivity"> | ||
|
||
<android.support.v7.widget.RecyclerView | ||
android:id="@+id/recycler_view" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:clipToPadding="false" | ||
android:paddingBottom="6dp" | ||
android:paddingTop="6dp" | ||
android:scrollbars="vertical" /> | ||
|
||
</RelativeLayout> | ||
|
||
<FrameLayout | ||
android:id="@+id/overlay_fragment_container" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" /> | ||
</android.support.v4.widget.SwipeRefreshLayout> | ||
</RelativeLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,63 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:layout_width="fill_parent" | ||
android:layout_height="fill_parent" | ||
android:background="@color/gray" | ||
android:paddingTop="?attr/actionBarSize"> | ||
|
||
<android.support.v4.widget.SwipeRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:id="@+id/swiperefresh" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"> | ||
|
||
<ScrollView | ||
android:layout_width="fill_parent" | ||
android:layout_height="fill_parent" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:background="@color/gray" | ||
android:paddingTop="?attr/actionBarSize"> | ||
<ScrollView | ||
android:layout_width="fill_parent" | ||
android:fillViewport="true" | ||
android:layout_height="fill_parent"> | ||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:paddingBottom="25dp" | ||
android:orientation="vertical"> | ||
android:fillViewport="true"> | ||
|
||
<android.support.v7.widget.RecyclerView | ||
android:id="@+id/directories_recycler_view" | ||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:clipToPadding="false" | ||
android:nestedScrollingEnabled="false" | ||
android:paddingBottom="6dp" | ||
android:paddingTop="6dp" | ||
android:scrollbars="vertical"/> | ||
android:orientation="vertical" | ||
android:paddingBottom="25dp"> | ||
|
||
<android.support.v7.widget.RecyclerView | ||
android:id="@+id/directories_recycler_view" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:clipToPadding="false" | ||
android:nestedScrollingEnabled="false" | ||
android:paddingBottom="6dp" | ||
android:paddingTop="6dp" | ||
android:scrollbars="vertical" /> | ||
|
||
<android.support.v7.widget.RecyclerView | ||
android:id="@+id/files_recycler_view" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:paddingBottom="6dp" | ||
android:paddingTop="6dp" | ||
android:clipToPadding="false" | ||
android:nestedScrollingEnabled="false" | ||
android:scrollbars="vertical"/> | ||
</LinearLayout> | ||
</ScrollView> | ||
|
||
<android.support.design.widget.FloatingActionButton | ||
android:id="@+id/files_upload" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentBottom="true" | ||
android:layout_alignParentEnd="true" | ||
android:layout_alignParentRight="true" | ||
android:layout_marginBottom="21dp" | ||
android:layout_marginEnd="15dp" | ||
android:layout_marginRight="15dp" | ||
android:foregroundTint="@android:color/white" | ||
android:src="@android:drawable/ic_menu_upload" | ||
android:tint="@android:color/white" | ||
app:rippleColor="@android:color/white"/> | ||
<android.support.v7.widget.RecyclerView | ||
android:id="@+id/files_recycler_view" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:clipToPadding="false" | ||
android:nestedScrollingEnabled="false" | ||
android:paddingBottom="6dp" | ||
android:paddingTop="6dp" | ||
android:scrollbars="vertical" /> | ||
</LinearLayout> | ||
</ScrollView> | ||
|
||
<android.support.design.widget.FloatingActionButton | ||
android:id="@+id/files_upload" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentBottom="true" | ||
android:layout_alignParentEnd="true" | ||
android:layout_alignParentRight="true" | ||
android:layout_marginBottom="21dp" | ||
android:layout_marginEnd="15dp" | ||
android:layout_marginRight="15dp" | ||
android:foregroundTint="@android:color/white" | ||
android:src="@android:drawable/ic_menu_upload" | ||
android:tint="@android:color/white" | ||
app:rippleColor="@android:color/white" /> | ||
</android.support.v4.widget.SwipeRefreshLayout> | ||
</RelativeLayout> |
45 changes: 27 additions & 18 deletions
45
app/src/main/res/layouts/homework/layout/activity_homework.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,35 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:background="@color/gray" | ||
android:layout_height="wrap_content"> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="@color/gray" | ||
android:paddingTop="?attr/actionBarSize" | ||
tools:context="org.schulcloud.mobile.ui.main.MainActivity"> | ||
|
||
<android.support.v7.widget.RecyclerView | ||
android:id="@+id/recycler_view" | ||
<android.support.v4.widget.SwipeRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:id="@+id/swiperefresh" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:clipToPadding="false" | ||
android:paddingBottom="6dp" | ||
android:paddingTop="6dp" | ||
android:scrollbars="vertical"/> | ||
android:layout_marginTop="70dp" | ||
android:layout_height="match_parent"> | ||
|
||
</RelativeLayout> | ||
<FrameLayout android:id="@+id/overlay_fragment_container" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"/> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
tools:context="org.schulcloud.mobile.ui.main.MainActivity"> | ||
|
||
<android.support.v7.widget.RecyclerView | ||
android:id="@+id/recycler_view" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:clipToPadding="false" | ||
android:paddingBottom="6dp" | ||
android:paddingTop="6dp" | ||
android:scrollbars="vertical" /> | ||
|
||
</RelativeLayout> | ||
</android.support.v4.widget.SwipeRefreshLayout> | ||
|
||
<FrameLayout | ||
android:id="@+id/overlay_fragment_container" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" /> | ||
</RelativeLayout> |