-
Notifications
You must be signed in to change notification settings - Fork 267
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
Add staff list screen #144
Comments
I would love to work on this one 🙋♂️ |
Thank you every year! I am longing for your PR 😄 |
Just a quick update, I should be able to publish a PR this weekend. |
What's supposed to happen when user clicks on a row? Launch the profileUrl in webview? |
Thank you. I think that nothing should happen. If necessary we can also add later. |
@takahirom Can you think of anything that might be causing this error? I can't compile due to an error that says "Duplicate class found in the file .... item_staff.xml". I get the same error for fragment_staff_search.xml. (These are new files I am adding) FYI this is the first time I use the databinding and the navigation component libraries. |
@miga9 |
Thanks for responding! Let me give you more info. I have added Staff class to In the same order as the 5 errors in the screenshot:
|
It's still a mess, but I pushed my branch to my repo, if that helps. |
Thank you 👍
class StaffItem(
val staff: Staff
) : BindableItem<ItemStaffBinding>(staff.id.hashCode().toLong()) { items += result.staffs.map {
StaffItem(it)
} |
It reduced the 5 errors down to 1. "Clean Project" and building again didn't work.
|
👀 |
Is the following error message displayed?
|
Sometimes databinding will display important errors later. 😭 |
Probably I can use |
Ah yes! Printing the stacktrace by Thank you for your time and the help! @takahirom @tomoya0x00 |
Please feel free to ask us if you have any questions. 👍 |
I have been fighting a compile error below from mkano9@3035e2b#diff-0dc44fa82dcee2a3d4d7bb9f2f9fda8bR70. Android Studio recognizes nothing from the model module.
Can you think of any possibilities? Have you guys been through something similar in this project? This livedata is from mkano9@3035e2b#diff-0f996f98f14222fd162ff583467fa8ae |
I was able to get it to compile. I had to manually add the import statements for |
It is a common problem with this project. Close the project and return to the "Welcome to Android Studio" screen. So when you mouse over the project, press the close button that appears. And it should be displayed again by reopening the project. |
I opened that issue. |
@takahirom Thank you! One more question, does the staff list have to be sorted alphabetically or just display it in the order from API response? If we are displaying in the order from API response, then I think showing the initial letter on the left may not make sense as it will repeat and is in no order. |
I am sorry to have changed, but I do not want to display the initial letter and I would like to use the order returned from the API. 🙏 |
Overview (Required)
https://gallery.io/projects/MCHbtQVoQ2HCZd9Pbpex4PVP/files/MCHtA7U1iMGr6_wk8XZwCNuDb4sy76tbjpM (Please send request)
The text was updated successfully, but these errors were encountered: