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

Feature/add text labels bottom nav bar #4497

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions changelog/unreleased/4484
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Enhancement: Added text labels for BottomNavigationView

Text labels have been added below the icons, and the active indicator feature is implemented using the default itemActiveIndicatorStyle for better navigation experience.


https://github.com/owncloud/android/issues/4484
https://github.com/owncloud/android/pull/4497
2 changes: 1 addition & 1 deletion owncloudApp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ dependencies {
implementation libs.androidx.work.runtime.ktx
implementation(libs.androidx.browser) { because "CustomTabs required for OAuth2 and OIDC" }
implementation(libs.androidx.enterprise.feedback) { because "MDM feedback" }

JuancaG05 marked this conversation as resolved.
Show resolved Hide resolved
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are keeping this change, it's not needed

// Image loading
implementation libs.coil
implementation libs.glide
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ class ReleaseNotesViewModel(
subtitle = R.string.release_notes_bugfixes_subtitle,
type = ReleaseNoteType.BUGFIX
),
ReleaseNote(
title = R.string.release_notes_title_enhanced_bottom_nav_bar,
subtitle = R.string.release_notes_subtitle_bottom_nav_bar,
type = ReleaseNoteType.ENHANCEMENT
),
)
}
}
2 changes: 1 addition & 1 deletion owncloudApp/src/main/res/layout/nav_coordinator_layout.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@
android:visibility="visible"
app:itemIconTint="@color/primary_button_text_color"
app:itemTextColor="@color/primary_button_text_color"
app:labelVisibilityMode="auto"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:labelVisibilityMode="labeled"
app:menu="@menu/bottom_navbar_menu" />

</androidx.constraintlayout.widget.ConstraintLayout>
2 changes: 2 additions & 0 deletions owncloudApp/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -832,5 +832,7 @@
<string name="audio_preview_label">Audio preview</string>
<string name="details_label">Details</string>
<string name="text_preview_label">Text preview</string>
<string name="release_notes_title_enhanced_bottom_nav_bar">Added text labels on bottom nav bar</string>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is going to be read by all users, so let's not use technical language. Bottom bar is OK 👍

Suggested change
<string name="release_notes_title_enhanced_bottom_nav_bar">Added text labels on bottom nav bar</string>
<string name="release_notes_title_enhanced_bottom_nav_bar">Added text labels on bottom bar</string>

<string name="release_notes_subtitle_bottom_nav_bar">Text labels were added and default active indicator is used to show which label is selected on the bottom nav bar</string>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<string name="release_notes_subtitle_bottom_nav_bar">Text labels were added and default active indicator is used to show which label is selected on the bottom nav bar</string>
<string name="release_notes_subtitle_bottom_nav_bar">Text labels were added and default active indicator is used to show which section is selected on the bottom bar</string>


</resources>
Loading