This repository has been archived by the owner on Dec 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 107
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 #39 from schilit/EmptyView
Empty view
- Loading branch information
Showing
8 changed files
with
80 additions
and
79 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
...oid-uribeacon/uribeacon-sample/src/main/java/org/uribeacon/sample/SwipeRefreshLayout.java
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package org.uribeacon.sample; | ||
|
||
|
||
import android.content.Context; | ||
import android.util.AttributeSet; | ||
import android.widget.ListView; | ||
|
||
/** | ||
* Subclass of {@link android.support.v4.widget.SwipeRefreshLayout} that supports containing a | ||
* ViewGroup whose first child is a ListView. The ViewGroup can contain other views. | ||
* | ||
*/ | ||
public class SwipeRefreshLayout extends android.support.v4.widget.SwipeRefreshLayout { | ||
|
||
public SwipeRefreshLayout(Context context) { | ||
super(context); | ||
} | ||
|
||
public SwipeRefreshLayout(Context context, AttributeSet attributeSet) { | ||
super(context, attributeSet); | ||
} | ||
|
||
@Override public boolean canChildScrollUp() { | ||
// The real child maps cares about is the list, so check if that can scroll. | ||
ListView target = (ListView) findViewById(android.R.id.list); | ||
return target.getChildCount() > 0 | ||
&& (target.getFirstVisiblePosition() > 0 | ||
|| target.getChildAt(0).getTop() < target.getPaddingTop()); | ||
} | ||
} |
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
23 changes: 0 additions & 23 deletions
23
...ibeacon/uribeacon-sample/src/main/res/layout-sw600dp/actionbar_indeterminate_progress.xml
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
android-uribeacon/uribeacon-sample/src/main/res/layout/actionbar_indeterminate_progress.xml
This file was deleted.
Oops, something went wrong.
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
2 changes: 0 additions & 2 deletions
2
android-uribeacon/uribeacon-sample/src/main/res/values/strings_config.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