Skip to content

Instantly share code, notes, and snippets.

@baruckis
baruckis / CustomSpinner.kt
Last active July 18, 2019 11:41
Custom Spinner to differentiate between user selected and programmatically selected item in Kotlin for Android.
/*
* Copyright 2018 Andrius Baruckis www.baruckis.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@baruckis
baruckis / EmailFeedback.kt
Last active July 8, 2019 10:49
Send Email Feedback Intent in Kotlin for Android.
/*
* Copyright 2019 Andrius Baruckis www.baruckis.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@baruckis
baruckis / WebViewPdfFragment.kt
Last active March 11, 2022 19:34
WebView fragment for showing PDF in Kotlin for Android.
/*
* Copyright 2019 Andrius Baruckis www.baruckis.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@baruckis
baruckis / DaggerBottomSheetDialogFragment.kt
Created September 5, 2019 16:56
Modal bottom sheet BottomSheetDialogFragment injectable with Dagger.
/*
* Copyright 2019 Andrius Baruckis www.baruckis.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software