Skip to content

Conversation

@n2oliver
Copy link
Collaborator

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.

val fragmentAdapter = RepoDetailsPagerAdapter(supportFragmentManager)
repo_detail_viewpager.adapter = fragmentAdapter

repo_detail_tablayout.setupWithViewPager(repo_detail_viewpager)
Copy link
Owner

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

<string name="button_try_again">TRY AGAIN</string>

<!-- TODO: Remove or change this placeholder text -->
<string name="hello_blank_fragment">Hello blank fragment</string>
Copy link
Owner

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"
Copy link
Owner

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?

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

Successfully merging this pull request may close these issues.

2 participants