-
Notifications
You must be signed in to change notification settings - Fork 2
Feature/28 adding navigation screen of repository content by tabs #29
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
base: develop
Are you sure you want to change the base?
Conversation
…ues-listing' into develop
…estiny at click on the repository item
…creating its fragments, and joining everything at repo_detail_tablayout
val fragmentAdapter = RepoDetailsPagerAdapter(supportFragmentManager) | ||
repo_detail_viewpager.adapter = fragmentAdapter | ||
|
||
repo_detail_tablayout.setupWithViewPager(repo_detail_viewpager) |
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.
Ideal é seguir o padrão de nomenclatura de ids nas views:
buttonSubmit
ao invés de
submit_button
app/src/main/res/values/strings.xml
Outdated
@@ -8,4 +8,7 @@ | |||
<string name="error_message_invalid_language">"Ohh no!\n%s is an invalid language\nPlease query a valid language ;)"</string> | |||
|
|||
<string name="button_try_again">TRY AGAIN</string> | |||
|
|||
<!-- TODO: Remove or change this placeholder text --> | |||
<string name="hello_blank_fragment">Hello blank fragment</string> |
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.
Esse código ficou sobrando?
|
||
override fun getPageTitle(position: Int): CharSequence? { | ||
return when(position){ | ||
0 -> "PullRequests" |
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.
Será que não faria mais sentido adicionarmos esses textos no arquivo de strings?
A tabbed screen activity was added to the project to improve the navigation experience, and the click target on the repository item was changed to the RepoDetailsActivity activity. The repo_detail_viewpager received the RepoDetailsPagerAdapter adapter with the five fragments - to know PullRequestsFragment, IssuesFragment, CommitsFragment, CollaboratorsFragment, BranchesFragment - and was added to the repo_detail_tablayout. This will enable the creation of a details screen with a great user browsing experience.