Commit 9d60a637 authored by bizzbyster's avatar bizzbyster

more customizations. close button still not an arrow.

parent b9b68999
......@@ -174,6 +174,10 @@ class MessageParser @Inject constructor(val context: Application, private val co
override fun onClick(view: View) {
val tabsbuilder = CustomTabsIntent.Builder()
tabsbuilder.setToolbarColor(R.color.colorPrimary)
tabsbuilder.enableUrlBarHiding()
tabsbuilder.setCloseButtonIcon(BitmapFactory.decodeResource(view.context.resources, R.drawable.ic_arrow_downward_24dp))
tabsbuilder.setStartAnimations(view.context, R.anim.enter_from_right, R.anim.exit_to_left)
tabsbuilder.setExitAnimations(view.context, R.anim.enter_from_left, R.anim.exit_to_right)
val customTabsIntent = tabsbuilder.build()
customTabsIntent.launchUrl(view.context, getUri(link))
}
......
......@@ -7,4 +7,4 @@
android:fromYDelta="0%"
android:toXDelta="0%"
android:toYDelta="0%" />
</set>
\ No newline at end of file
</set>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment