All Projects → anandwana001 → mindorks-cct

anandwana001 / mindorks-cct

Licence: other
A sample application demoing chrome custom tabs in kotlin in androidx 🎨

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to mindorks-cct

Coil
Image loading for Android backed by Kotlin Coroutines.
Stars: ✭ 7,469 (+27562.96%)
Mutual labels:  androidx
Aesthetic
[DEPRECATED]
Stars: ✭ 2,044 (+7470.37%)
Mutual labels:  androidx
raffler-kotlin
A raffling app developed as a playground to study many topics related to Android. Kotlin + Coroutines + MVVM
Stars: ✭ 44 (+62.96%)
Mutual labels:  androidx
Androidutilcode
AndroidUtilCode 🔥 is a powerful & easy to use library for Android. This library encapsulates the functions that commonly used in Android development which have complete demo and unit test. By using it's encapsulated APIs, you can greatly improve the development efficiency. The program mainly consists of two modules which is utilcode, which is commonly used in development, and subutil which is rarely used in development, but the utils can be beneficial to simplify the main module. 🔥
Stars: ✭ 30,239 (+111896.3%)
Mutual labels:  androidx
Expansionpanel
Android - Expansion panels contain creation flows and allow lightweight editing of an element.
Stars: ✭ 1,984 (+7248.15%)
Mutual labels:  androidx
Component
🔥🔥🔥A powerful componentized framework.一个强大、100% 兼容、支持 AndroidX、支持 Kotlin并且灵活的组件化框架
Stars: ✭ 2,434 (+8914.81%)
Mutual labels:  androidx
Bgabanner Android
引导界面滑动导航 + 大于等于1页时无限轮播 + 各种切换动画轮播效果
Stars: ✭ 4,060 (+14937.04%)
Mutual labels:  androidx
MyLogLibrary
🚧 - Simple Android Kotlin logger (2017/2020)
Stars: ✭ 31 (+14.81%)
Mutual labels:  androidx
Bgaphotopicker Android
Android 图片选择、预览、九宫格图片控件、拖拽排序九宫格图片控件
Stars: ✭ 2,131 (+7792.59%)
Mutual labels:  androidx
QuantityPickerView
A View capable of increasing or decreasing a unit value with a toggle animation
Stars: ✭ 42 (+55.56%)
Mutual labels:  androidx
Xbanner
🔥【图片轮播】支持图片无限轮播,支持AndroidX、自定义指示点、显示提示文字、切换动画、自定义布局,一屏显示多个等功能
Stars: ✭ 1,734 (+6322.22%)
Mutual labels:  androidx
Drag Select Recyclerview
👇 Easy Google Photos style multi-selection for RecyclerViews, powered by Kotlin and AndroidX.
Stars: ✭ 1,818 (+6633.33%)
Mutual labels:  androidx
flutter custom tabs
A Flutter plugin to use Chrome Custom Tabs.
Stars: ✭ 117 (+333.33%)
Mutual labels:  chrome-custom-tabs
Jetpack Mvvm Best Practice
是 难得一见 的 Jetpack MVVM 最佳实践!在 以简驭繁 的代码中,对 视图控制器 乃至 标准化开发模式 形成正确、深入的理解!
Stars: ✭ 6,950 (+25640.74%)
Mutual labels:  androidx
nice-animals
Simple android app that shows nice animals pictures
Stars: ✭ 15 (-44.44%)
Mutual labels:  androidx
Android Skin Support
Android-skin-support is an easy dynamic skin framework to use for Android, Only one line of code to integrate it. Android 换肤框架, 极低的学习成本, 极好的用户体验. "一行"代码就可以实现换肤, 你值得拥有!!!
Stars: ✭ 5,706 (+21033.33%)
Mutual labels:  androidx
Bgaswipebacklayout Android
Android Activity 滑动返回。支持微信滑动返回样式、横屏滑动返回、全屏滑动返回
Stars: ✭ 2,251 (+8237.04%)
Mutual labels:  androidx
Praxis
Example Android project using MVVM, DaggerAndroid, Jetpack Compose, Retrofit, Coroutines and Multi module architecture ✌🏽
Stars: ✭ 258 (+855.56%)
Mutual labels:  androidx
pixel
A lightweight image loader for Android backed by Kotlin Coroutines.
Stars: ✭ 79 (+192.59%)
Mutual labels:  androidx
browser-switch-android
Open a url in a browser or Chrome Custom Tab and receive a response as the result of user interaction.
Stars: ✭ 18 (-33.33%)
Mutual labels:  chrome-custom-tabs

Chrome Custom Tabs MindOrks

mindorks-cct is a sample application showing use of Chrome Custom Tabs with new androidx library.

Add Dependency

dependencies {
  implementation 'androidx.browser:browser:1.0.0'
}
val builder = CustomTabsIntent.Builder()

modify toolbar color

builder.setToolbarColor(ContextCompat.getColor(this@MainActivity, R.color.colorPrimary))

add share button to overflow men

builder.addDefaultShareMenuItem()

add menu item to oveflow

builder.addMenuItem("MENU_ITEM_NAME", pendingIntent)

show website title

builder.setShowTitle(true)

modify back button icon

builder.setCloseButtonIcon(bitmap)

menu item icon

builder.setActionButton(bitmap, "Android", pendingIntent, true)

animation for enter and exit of tab

builder.setStartAnimations(this, android.R.anim.fade_in, android.R.anim.fade_out)
builder.setExitAnimations(this, android.R.anim.fade_in, android.R.anim.fade_out)

By default, if we don't set any animations then the Custom Tab will enter from the Bottom to the Top and exit from the Top to the Bottom.

Sample Gif

Attributions

Amit Shekhar - Topic Suggestion

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].