Skip to content

Commit

Permalink
[FEATURE] #13 : 바텀 네비게이션 뷰 active Indicator 투명으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
tgyuuAn committed Oct 5, 2023
1 parent eca3db3 commit c82f93e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/src/main/java/com/wap/wapp/MainActivity.kt
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package com.wap.wapp

import android.content.Context
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.navigation.NavController
import androidx.navigation.fragment.NavHostFragment
import com.google.android.material.color.utilities.MaterialDynamicColors.background
import com.google.android.material.elevation.SurfaceColors
import com.wap.wapp.databinding.ActivityMainBinding

class MainActivity : AppCompatActivity() {
Expand Down
5 changes: 4 additions & 1 deletion app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,14 @@
android:id="@+id/bnv_main_bottomNaviView"
android:layout_width="match_parent"
android:layout_height="70dp"
android:background="@color/gray2"
android:background="@color/gray_2"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:itemTextColor="@drawable/selector_text_color"
app:layout_constraintStart_toStartOf="parent"
app:labelVisibilityMode="labeled"
app:itemRippleColor="@color/gray_2"
app:itemActiveIndicatorStyle="@style/Style.BottomNavigationView.Custom.Indicator"
app:menu="@menu/menu_main" />

</androidx.constraintlayout.widget.ConstraintLayout>
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@
</style>

<style name="Theme.WAPP" parent="Base.Theme.WAPP" />

<style name="Style.BottomNavigationView.Custom.Indicator" parent="Widget.Material3.BottomNavigationView.ActiveIndicator">
<item name="android:color">@android:color/transparent</item>
</style>
</resources>

0 comments on commit c82f93e

Please sign in to comment.