forked from ankidroid/Anki-Android
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add preference for full screen navigation drawer (ankidroid#9015)
- Loading branch information
1 parent
a5363a2
commit d0d1edd
Showing
14 changed files
with
287 additions
and
338 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
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,40 +1,28 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<androidx.drawerlayout.widget.ClosableDrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:id="@+id/drawer_layout" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:fitsSystemWindows="true"> | ||
<com.drakeet.drawer.FullDraggableContainer | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"> | ||
<androidx.coordinatorlayout.widget.CoordinatorLayout | ||
android:id="@+id/root_layout" | ||
android:layout_width="fill_parent" | ||
android:layout_height="fill_parent"> | ||
<LinearLayout android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:orientation="vertical"> | ||
<androidx.coordinatorlayout.widget.CoordinatorLayout android:id="@+id/root_layout" | ||
android:layout_width="fill_parent" | ||
android:layout_height="fill_parent" | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:tools="http://schemas.android.com/tools"> | ||
<LinearLayout android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:orientation="vertical"> | ||
|
||
<include layout="@layout/toolbar" /> | ||
<include layout="@layout/toolbar" /> | ||
|
||
<com.google.android.material.tabs.TabLayout | ||
android:id="@+id/sliding_tabs" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
app:tabIndicatorHeight="8dp" | ||
app:tabIndicatorColor="@color/theme_light_primary" | ||
app:tabMode="scrollable"/> | ||
<androidx.viewpager2.widget.ViewPager2 | ||
android:id="@+id/pager" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
tools:context=".Statistics"/> | ||
</LinearLayout> | ||
<include layout="@layout/anki_progress"/> | ||
</androidx.coordinatorlayout.widget.CoordinatorLayout> | ||
|
||
</com.drakeet.drawer.FullDraggableContainer> | ||
<include layout="@layout/navigation_drawer" /> | ||
</androidx.drawerlayout.widget.ClosableDrawerLayout> | ||
<com.google.android.material.tabs.TabLayout | ||
android:id="@+id/sliding_tabs" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
app:tabIndicatorHeight="8dp" | ||
app:tabIndicatorColor="@color/theme_light_primary" | ||
app:tabMode="scrollable"/> | ||
<androidx.viewpager2.widget.ViewPager2 | ||
android:id="@+id/pager" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
tools:context=".Statistics"/> | ||
</LinearLayout> | ||
<include layout="@layout/anki_progress"/> | ||
</androidx.coordinatorlayout.widget.CoordinatorLayout> |
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,61 +1,51 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<androidx.drawerlayout.widget.ClosableDrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:id="@+id/drawer_layout" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:fitsSystemWindows="true"> | ||
<com.drakeet.drawer.FullDraggableContainer | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"> | ||
|
||
<androidx.coordinatorlayout.widget.CoordinatorLayout | ||
android:id="@+id/root_layout" | ||
|
||
<androidx.coordinatorlayout.widget.CoordinatorLayout | ||
android:id="@+id/root_layout" | ||
android:layout_width="fill_parent" | ||
android:layout_height="fill_parent" | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto"> | ||
|
||
<LinearLayout | ||
android:layout_width="fill_parent" | ||
android:layout_height="fill_parent" | ||
android:orientation="vertical" > | ||
|
||
<include layout="@layout/toolbar" /> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:background="?android:attr/colorBackground" | ||
android:orientation="horizontal" | ||
style="@style/card_browser_spinner_layout"> | ||
|
||
<Spinner | ||
android:id="@+id/browser_column1_spinner" | ||
android:layout_width="0dp" | ||
android:layout_height="match_parent" | ||
android:layout_weight="1" | ||
app:popupTheme="@style/ActionBar.Popup" /> | ||
|
||
<Spinner | ||
android:id="@+id/browser_column2_spinner" | ||
android:layout_width="0dp" | ||
android:layout_height="match_parent" | ||
android:layout_weight="1" | ||
app:popupTheme="@style/ActionBar.Popup" /> | ||
</LinearLayout> | ||
|
||
<ListView | ||
android:id="@+id/card_browser_list" | ||
android:layout_width="fill_parent" | ||
android:layout_height="fill_parent"> | ||
<LinearLayout | ||
android:layout_width="fill_parent" | ||
android:layout_height="fill_parent" | ||
android:orientation="vertical" > | ||
|
||
<include layout="@layout/toolbar" /> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:background="?android:attr/colorBackground" | ||
android:orientation="horizontal" | ||
style="@style/card_browser_spinner_layout"> | ||
|
||
<Spinner | ||
android:id="@+id/browser_column1_spinner" | ||
android:layout_width="0dp" | ||
android:layout_height="match_parent" | ||
android:layout_weight="1" | ||
app:popupTheme="@style/ActionBar.Popup" /> | ||
|
||
<Spinner | ||
android:id="@+id/browser_column2_spinner" | ||
android:layout_width="0dp" | ||
android:layout_height="match_parent" | ||
android:layout_weight="1" | ||
app:popupTheme="@style/ActionBar.Popup" /> | ||
</LinearLayout> | ||
|
||
<ListView | ||
android:id="@+id/card_browser_list" | ||
android:layout_width="fill_parent" | ||
android:layout_height="fill_parent" | ||
android:background="?android:attr/colorBackground" | ||
android:divider="?attr/cardBrowserDivider" | ||
android:overScrollFooter="@color/transparent" | ||
android:dividerHeight="0.5dp" | ||
android:drawSelectorOnTop="true" | ||
android:fastScrollEnabled="true" /> | ||
|
||
</LinearLayout> | ||
<include layout="@layout/anki_progress"/> | ||
</androidx.coordinatorlayout.widget.CoordinatorLayout> | ||
|
||
</com.drakeet.drawer.FullDraggableContainer> | ||
<include layout="@layout/navigation_drawer" /> | ||
</androidx.drawerlayout.widget.ClosableDrawerLayout> | ||
android:layout_height="fill_parent" | ||
android:background="?android:attr/colorBackground" | ||
android:divider="?attr/cardBrowserDivider" | ||
android:overScrollFooter="@color/transparent" | ||
android:dividerHeight="0.5dp" | ||
android:drawSelectorOnTop="true" | ||
android:fastScrollEnabled="true" /> | ||
|
||
</LinearLayout> | ||
<include layout="@layout/anki_progress"/> | ||
</androidx.coordinatorlayout.widget.CoordinatorLayout> |
Oops, something went wrong.