setCloseButtonIcon(Bitmap drawable) is not working with SVGs in ChromeCustomTab
I need to change the default cross-icon in ChromeCustomTab Android, I am changing it with back-icon using the code below: Bitmap icon = BitmapFactory.decodeResource(context.getResources(),R.drawable.ic_arrow_back_white_24dp); It is working fine with PNGs but not with SVGs. As per this documentation, we have to maintain size of image according to this documentation. https://developer.android.com/reference/android/support/customtabs/CustomTabsIntent.html#KEY_ICON I think it is not working because they are not following the dimensions given in Documentation. You need to return a valid Bitmap .