-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 #20957 from wordpress-mobile/andy/tablet-hacks
[UI] Make the login screen and bottom navigation view more tablet friendly.
- Loading branch information
Showing
16 changed files
with
149 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<resources> | ||
<dimen name="login_prologue_logo_top_padding">25dp</dimen> | ||
</resources> |
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,3 @@ | ||
<resources> | ||
<dimen name="login_prologue_logo_top_padding">135dp</dimen> | ||
</resources> |
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,4 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<dimen name="login_prologue_revamped_prompts_padding">20dp</dimen> | ||
<dimen name="login_prologue_revamped_buttons_max_width">600dp</dimen> | ||
<dimen name="login_prologue_logo_top_padding">135dp</dimen> | ||
</resources> |
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 |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- used to host quick start focus view - must be RelativeLayout or FrameLayout --> | ||
<RelativeLayout 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" | ||
android:id="@+id/root_view_main" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:clipChildren="false"> | ||
|
||
<FrameLayout | ||
android:id="@+id/fragment_container" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:layout_toEndOf="@+id/bottom_navigation" | ||
android:layout_alignParentEnd="true"/> | ||
|
||
<org.wordpress.android.ui.main.WPMainNavigationView | ||
android:id="@+id/bottom_navigation" | ||
android:layout_width="wrap_content" | ||
android:layout_height="match_parent" | ||
android:visibility="visible" | ||
android:layout_alignParentStart="true" /> | ||
|
||
<!-- this coordinator exists only for snackbars --> | ||
<androidx.coordinatorlayout.widget.CoordinatorLayout | ||
android:id="@+id/coordinator" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_above="@+id/bottom_container" | ||
android:layout_toEndOf="@id/bottom_navigation"/> | ||
|
||
<LinearLayout | ||
android:id="@+id/bottom_container" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentBottom="true" | ||
android:layout_toEndOf="@id/bottom_navigation" | ||
android:orientation="vertical"> | ||
|
||
<org.wordpress.android.widgets.WPTextView | ||
android:id="@+id/connection_bar" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="?attr/wpColorWarningDark" | ||
android:gravity="center" | ||
android:paddingBottom="@dimen/margin_medium" | ||
android:paddingTop="@dimen/margin_medium" | ||
android:text="@string/connectionbar_no_connection" | ||
android:textAllCaps="true" | ||
android:textAppearance="?attr/textAppearanceCaption" | ||
android:textColor="?attr/colorOnPrimarySurface" | ||
android:visibility="gone" | ||
tools:visibility="visible" /> | ||
|
||
<View | ||
android:id="@+id/navbar_separator" | ||
android:layout_width="match_parent" | ||
android:layout_height="@dimen/divider_size" | ||
android:background="?android:attr/listDivider" /> | ||
</LinearLayout> | ||
|
||
<RelativeLayout | ||
android:id="@+id/fab_container" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_above="@+id/coordinator" | ||
android:layout_alignParentEnd="true" | ||
android:layout_marginBottom="@dimen/fab_margin" | ||
android:layout_marginEnd="@dimen/fab_margin" | ||
android:clipChildren="false" | ||
android:clipToPadding="false"> | ||
|
||
<com.google.android.material.floatingactionbutton.FloatingActionButton | ||
android:id="@+id/fab_button" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:contentDescription="@string/create_post_page_fab_tooltip" | ||
android:src="@drawable/ic_plus_white_24dp" | ||
android:visibility="gone" | ||
app:borderWidth="0dp" | ||
tools:visibility="visible" /> | ||
</RelativeLayout> | ||
|
||
</RelativeLayout> |
10 changes: 10 additions & 0 deletions
10
WordPress/src/main/res/layout-sw600dp/main_navigation_view.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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<com.google.android.material.navigationrail.NavigationRailView | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:id="@+id/main_navigation_bar_view" | ||
android:layout_width="80dp" | ||
android:layout_height="match_parent" | ||
app:elevation="@dimen/navbar_elevation" | ||
android:visibility="visible" | ||
app:menu="@menu/bottom_nav_main"/> |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<com.google.android.material.bottomnavigation.BottomNavigationView | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:id="@+id/main_navigation_bar_view" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
app:elevation="@dimen/navbar_elevation" | ||
android:visibility="visible" | ||
app:menu="@menu/bottom_nav_main"/> |
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