Skip to content

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

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

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

@@ -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>
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