-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Post-Signup Interstitial: Create interstitial screen #10933
Post-Signup Interstitial: Create interstitial screen #10933
Conversation
Looks great so far!
I am aware of this, the status bar colour is fine as is in the screenshots We sometimes use a container width of 512dp max-width in some areas around the app. Can we try applying this constraint to the tablet layout (keeping the existing left and right paddings)? |
Glad you like it!
If I understand correctly, that's something we can try for sure. I would just need to adjust this to Update: @SylvesterWilmott I have added the landscape layout and applied your suggestion regarding the max width. |
Generated by 🚫 dangerJS |
78cdc5e
to
383fb60
Compare
WordPress/src/main/java/org/wordpress/android/ui/accounts/PostSignupInterstitialActivity.kt
Show resolved
Hide resolved
The changes look good to me! Thanks @renanferrari |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having separate layouts is often a source of issues, I wish we could find a simple way to only have one.
PR looks good overall, I left minor comments.
I'll create a feature branch, so you can merge this one and target the same feature branch in the upcoming PRs.
WordPress/src/main/java/org/wordpress/android/ui/accounts/PostSignupInterstitialActivity.kt
Show resolved
Hide resolved
WordPress/src/main/res/drawable/img_illustration_construct_site_190dp.xml
Outdated
Show resolved
Hide resolved
Pushed a new branch: |
I agree. I have actually tried a few things, but none were quite good. Our first iteration had a single layout, but the user had to scroll to see the buttons on a phone in landscape mode, which is not a good UX. @SylvesterWilmott fixed that with the new landscape layout. From there, we experimented reusing the landscape layout on a tablet, but that didn't look good – and even if it did, we would still have at least two layouts: default and landscape. The only alternatives I could think of that would let us achieve a single layout again would be to either update the |
android:id="@+id/title_view" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_marginBottom="@dimen/margin_medium" | ||
android:text="@string/post_signup_interstitial_title" | ||
android:textAlignment="center" | ||
android:textAppearance="@style/TextAppearance.AppCompat.Title" | ||
app:fixWidowWords="true" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well spotted, 👍 I actually forgot about that one ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM,
7e9e35d
into
wordpress-mobile:feature/10918-post-signup-interstitial
Sorry, I just realized that, but I think we could reuse |
Fixes #10923
Screens
Standard
Dark Mode
The dark mode layout has been scraped for now, as it depends on the work being done at the material-theme branch.
Landscape
Tablet
Notes
There are some slight differences between the layouts implemented here and the ones in the design spec (mainly the status bar color). Most of these differences are due to the fact that I'm reusing existing theme and styles instead of creating new ones just for this screen. It is my understanding that there is an ongoing effort to update the theme of the app as a whole, so I still need to make sure what would be the best approach here.
To test
To be able to test this, you need to:
adb
to start the Activity when needed:adb shell am start -n org.wordpress.android/org.wordpress.android.ui.accounts.PostSignupInterstitialActivity
Standard layout
PostSignupInterstitialActivity
on a phone in portrait mode.Landscape layout
PostSignupInterstitialActivity
on a phone in landscape mode.Tablet layout
PostSignupInterstitialActivity
on a tablet.Create new site button
PostSignupInterstitialActivity
whileWPMainActivity
is on the back stack (more details on this below).SiteCreationActivity
has been opened.WPMainActivity
is shown and the newly created site is selected.Add self-hosted site button
PostSignupInterstitialActivity
whileWPMainActivity
is on the back stack (more details on this below).LoginActivity
has been opened.WPMainActivity
is shown and the newly created site is selected.Dismissal button
PostSignupInterstitialActivity
.WPMainActivity
has been opened on the Reader tab.Notes
Please, check my comments below for more details on the assumptions I made while working on the buttons functionality and what is currently needed before moving forward.