Skip to content
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

There are some issues on the UI part #12

Open
3 of 5 tasks
hoangnguyen92dn opened this issue Nov 25, 2021 · 3 comments
Open
3 of 5 tasks

There are some issues on the UI part #12

hoangnguyen92dn opened this issue Nov 25, 2021 · 3 comments

Comments

@hoangnguyen92dn
Copy link

hoangnguyen92dn commented Nov 25, 2021

Hi @ryan-conway, I would like to share with you the list of issues I spotted out as below, my review is based on your last update therefore you might aware of some issues already.

  • Login screen

    • These EditText to input username and password do not match the design on Figma, the text color on those fields is different from the design, and the corner radius as well.
    • fragment_login.xml: Unused com.google.android.material.textfield.TextInputLayout, I think we don't to use it because the EditText doesn't need to show the label on top once use entered, please correct me if I am missing something here.
    • Optional: With the better UX, the input keyboard should not be shown once the Login button clicked
  • Home screen

    • The indicator doesn't match the design. And the indicator is over screen width when the list of indicators doesn't fit the screen width.

  • Support for landscape orientation. Could we have the app support landscape orientation as well, please?
@ryan-conway
Copy link
Owner

Updated the login screen and the tab indicators in PR #22
Landscape support to follow

@hoangnguyen92dn
Copy link
Author

@ryan-conway I am still curious about the TextInputLayout element on the fragment_login.xml 🤔 Any reason why do we still need to use it rather than EditText?

<com.google.android.material.textfield.TextInputLayout
android:id="@+id/tilUsername"
style="@style/TextField"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="16dp"
app:hintEnabled="false"
app:layout_constraintBottom_toTopOf="@id/tilPassword">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/etUsername"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/email"
android:imeOptions="actionNext"
android:maxLines="1"
android:inputType="text"
android:textColor="@color/white"
android:textColorHint="@color/white_tint" />
</com.google.android.material.textfield.TextInputLayout>

@ryan-conway
Copy link
Owner

@hoangnguyen92dn I decided to wrap it in a TextInputLayout so that we can take more advantage of material theming, specifically the ShapeAppearance properties defined in styles.xml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants