This repository has been archived by the owner on Jun 1, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
2,592 additions
and
292 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
17 changes: 17 additions & 0 deletions
17
app/src/main/java/me/ccrama/redditslide/Activities/OverviewBase.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,17 @@ | ||
package me.ccrama.redditslide.Activities; | ||
|
||
import android.support.v4.view.ViewPager; | ||
import android.support.v4.widget.DrawerLayout; | ||
import android.support.v7.app.ActionBarActivity; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* Created by carlo_000 on 10/14/2015. | ||
*/ | ||
public class OverviewBase extends ActionBarActivity { | ||
public ViewPager pager; | ||
public List<String> usedArray; | ||
|
||
public DrawerLayout drawerLayout; | ||
} |
564 changes: 303 additions & 261 deletions
564
app/src/main/java/me/ccrama/redditslide/Activities/SubredditOverview.java
Large diffs are not rendered by default.
Oops, something went wrong.
1,911 changes: 1,911 additions & 0 deletions
1,911
app/src/main/java/me/ccrama/redditslide/Activities/SubredditOverviewSingle.java
Large diffs are not rendered by default.
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
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
29 changes: 29 additions & 0 deletions
29
app/src/main/java/me/ccrama/redditslide/Views/NoSwipingViewPager.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,29 @@ | ||
package me.ccrama.redditslide.Views; | ||
|
||
import android.content.Context; | ||
import android.support.v4.view.ViewPager; | ||
import android.util.AttributeSet; | ||
import android.view.MotionEvent; | ||
|
||
public class NoSwipingViewPager extends ViewPager { | ||
|
||
public NoSwipingViewPager(Context context) { | ||
super(context); | ||
} | ||
|
||
public NoSwipingViewPager(Context context, AttributeSet attrs) { | ||
super(context, attrs); | ||
} | ||
|
||
@Override | ||
public boolean onInterceptTouchEvent(MotionEvent event) { | ||
// Never allow swiping to switch between pages | ||
return false; | ||
} | ||
|
||
@Override | ||
public boolean onTouchEvent(MotionEvent event) { | ||
// Never allow swiping to switch between pages | ||
return false; | ||
} | ||
} |
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
Oops, something went wrong.