-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Android: Use a PagerTabStrip instead of the ActionBar.
The ActionBar method of doing the tabular layout is deprecated on Android 5.0. This method alleviates those deprecations while providing the same functionality.
- Loading branch information
Showing
3 changed files
with
37 additions
and
135 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,15 @@ | ||
<android.support.v4.view.ViewPager | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<android.support.v4.view.ViewPager xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:id="@+id/pager" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" /> | ||
android:layout_height="match_parent"> | ||
|
||
<android.support.v4.view.PagerTabStrip | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="top" | ||
android:paddingBottom="10dp" | ||
android:paddingTop="10dp" /> | ||
|
||
</android.support.v4.view.ViewPager> | ||
|
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