home side bar completed
built custom bottom nav for home new activity for ExploreWokaActivity research to blur the background with transparency Made 2 theme Home fragment and MyList Fragment Connected them with the side bar with respect to the selected theme
This commit is contained in:
@@ -10,6 +10,8 @@ import androidx.core.app.ActivityOptionsCompat
|
||||
import androidx.fragment.app.Fragment
|
||||
import com.woka.databinding.FragmentLanguageBinding
|
||||
import com.woka.onboard.OnboardActivity
|
||||
import com.woka.utils.LOCALE_ENGLISH
|
||||
import com.woka.utils.LOCALE_HINDI
|
||||
import com.woka.utils.ProgressView
|
||||
import com.woka.utils.changeLocale
|
||||
|
||||
@@ -39,12 +41,12 @@ class LanguageFragment : Fragment() {
|
||||
|
||||
private fun clickEvents() {
|
||||
binding.english.setOnClickListener {
|
||||
requireActivity().changeLocale("en")
|
||||
requireActivity().changeLocale(LOCALE_ENGLISH)
|
||||
gotoOnboardActivity()
|
||||
}
|
||||
|
||||
binding.hindi.setOnClickListener {
|
||||
requireActivity().changeLocale("hi")
|
||||
requireActivity().changeLocale(LOCALE_HINDI)
|
||||
gotoOnboardActivity()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user