Category : styles

My custom view class: class SearchBox : FrameLayout { constructor(context: Context) : super(context) constructor( context: Context, attrs: AttributeSet? ) : this(context, attrs, R.attr.searchBoxStyle) constructor(context: Context, attrs: AttributeSet?, @AttrRes defStyleAttr: Int) : this( context, attrs, defStyleAttr, R.style.SearchBoxStyle ) constructor( context: Context, attrs: AttributeSet?, @AttrRes defStyleAttr: Int, @StyleRes defStyleRes: Int ) : super(context, attrs, defStyleAttr, defStyleRes) { ..

Read more

I use this style to make system navigation bar icon dark: <style name="Theme.AppCompat.Light.NoActionBar.FullScreen" parent="@style/Theme.AppCompat.Light.NoActionBar"> <item name="android:windowNoTitle">true</item> <item name="android:windowActionBar">false</item> <item name="android:windowFullscreen">false</item> <item name="android:windowLightStatusBar">true</item> <item name="android:windowTranslucentStatus">true</item> <item name="android:navigationBarColor">@color/colorWhite</item> <item name="android:windowLightNavigationBar">true</item> </style> but it still white. how to fix it? NOTE: min API level 27 and max is 30. Source: Android..

Read more

I need to change button style from "contained" to "outlined" at runtime. For now the only way I’ve found to create an outlined button is to set its style to ?attr/materialButtonOutlinedStyle. Unfortunately I haven’t found a way to change the style at runtime, is it possible? Is there any way to get this effect? Source: ..

Read more

I am implementing the mapbox maps and the mapbox navigation by using these imports: implementation ‘com.mapbox.mapboxsdk:mapbox-android-sdk:9.5.0’ implementation ‘com.mapbox.mapboxsdk:mapbox-android-navigation-ui:0.42.6’ I have map with a self made map style, from which I select a destination location and launch the navigation activity. button.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { boolean simulateRoute = false; NavigationLauncherOptions options = ..

Read more