- EASY TO CREATE MULTIPLE VIEWHOLDER
- Spinner
- Customizable Dialog
- Updated: gradle dependencies
- Fixed: String.isInteger()
- Fixed: Gravity for image/lottieview in dialog
- Added: FragmentManager.requestPermissions()
- Added: NFCActivity
- Added: FragmentManager.useMultiSelectGallery()
- Added: FragmentManager.useGallery()
- Added: FragmentManager.useCamera()
- Updated: Dialog.setAnimation()
- Updated: Dialog.TYPE.STATIC_IMAGE
- Updated: Dialog.image
- Refactored: the widgets and layout manager --- removed the prefix "Pocket"
- Improved: Spinner Dialog
- Improved: Spinner Widget
- Added: DateRangePicker
- Added: DateRangePickerFragmentDialog
- Added: UserPrefManager --- data stored are encrypted
- Added: PageListAdapter (same implementation as Adapter)
- Added: GaugeView
- Added: TopSheetDialog
- Added: Utilities
// DEVICE EXT
getIPAddress(): String?
getCPUTemperature(): Float
String.getAvailablelStorageSize(): String
String.getTotalStorageSize(): String
Context.getRamInfo(): String
Context.isNetworkConnectionAvailable(): Boolean
WindowManager.getScreenSize(): Point
Activity.lockOrientation()
Context.setVolume(volume:Int)
View.enableFullscreen()
Activity.unlockOrientation()
Activity.unlockOrientation()
Activity.unlockOrientation()
Activity.unlockOrientation()
// EVALUATION EXT
String.isNumber():Boolean
String.hasNumber():Boolean
String.isDouble():Boolean
String.isInteger():Boolean
String.isTimeBetween(argStartTime: String, argEndTime: String): Boolean //FORMAT "HH:mm:ss"
Date.isTimeBetween(argStartTime: Date, argEndTime: Date): Boolean
// FRAGMENT MANAGER EXT
FragmentManager.add(allowStateLoss:Boolean=false,isAnimationEnabled: Boolean = true,properties: FragmentTransaction.() -> Unit)
FragmentManager.replace(allowStateLoss:Boolean=false,isAnimationEnabled: Boolean = true,properties: FragmentTransaction.() -> Unit)
FragmentManager.createViewPager(properties: PageBuilder.() -> Unit)
// IMAGE EXT
Bitmap.encodeToBase64String(compressFormat: Bitmap.CompressFormat=Bitmap.CompressFormat.PNG, quality: Int=80): String
String.toBitmap(): Bitmap
// LOG EXT
Any.VERBOSE(message: String)
Any.DEBUG(message: String)
Any.INFO(message: String)
Any.WARNING(message: String)
Any.ERROR(message: String)
Any.WTF(message: String)
// ROOTED EXT
String.installAPK(): Boolean
shutdownDevice(): Boolean
rebootDevice(): Boolean
- ADDED A VIEW: PocketSpinner
- UPDATED: changed button style in PocketDialog
- ADDED: setSpinnerView(?) method in PocketSpinnerDialog
- ADDED: isDialogShowing() method for PocketDialog
- ADDED: PocketDialog.Type.DIALOG_SEARCH
- FIXED: action button margin
- FIXED: viewSeparator should not be visible by default in PocketDialog.Loader
- IMPROVED: reduced method count
- UPDATED: PocketDialog.Type.ERROR changed default lottieview animation
- UPDATED: gradle dependency to v3.2.1
- UPDATED: maven dependency to v2.1
- MERGED: PR of @marjorietiozon :
- ADDED: default blank value for title in PageBuilder.addPage()
- IMPROVED: optimized code for PageBuilder.setupWithViewPager
- UPDATED: kotlin dependency to v1.2.71
- UPDATED: gradle dependency to v3.2.0
- UPDATED: lottie dependency to v2.7.0
- UPDATED: android support dependency to v28.0.0
- ADDED: rxjava dependency v2.2.2
- ADDED: rxandroid dependency v2.1.0
- ADDED: EventPublisher class use to listen in a channel.
- CHANGES:
- To use BaseSwipeFragment include 'me.yokeyword:swipebackfragment:0.4.0' as dependency
- To use EventPublisher include rxjava & rxandroid as dependency
- To use PocketDialog include 'com.airbnb.android:lottie:2.7.0' as dependency
- FIXED: PocketSpinnerDialog error in inflating PocketRecyclerView
- FIXED: PocketDialog.Type.DIALOG_NO_INTERNET_CONNECTION default description
- FIXED: PocketDialog.Type.DIALOG_NO_INTERNET_CONNECTION default lottieview repeat count
- UPDATED: PocketDialog setCancelable to false by default
- UPDATED: PocketDialog.Type.Loading changed dialog to public
- UPDATED: PocketSpinnerDialog support lambda for listener method
- UPDATED: changed listener to setOnItemSelectedListener
- ADDED: new method (setButtonAsSpinner) to assign onclicklistener and view to display text in PocketSpinnerDialog.onItemSelected
- UPDATED: add view parameter to PocketSpinnerDialog.Listener.onItemSelected
- Fixed: PocketDialog.Type.NoInternetConnection default lottieview
- updated: kotlin dependency
- exclude 'META-INF/app_release.kotlin_module'
- version 2.x of codepocket (renamed)
- base class for activity,fragment,adapter,viewholder
- pagebuider for view pager
- navigate util
- custom view
- added feature in 2.x:
- pocketdialog
- pocketspinnerdialog
- -Removed: retrofit module has been moved to separate library
Thanks to the author of external Library used:
- org.jetbrains.kotlin:kotlin-stdlib-jdk7
- com.android.support:appcompat-v7
- com.android.support:design
- com.android.support:recyclerview-v7
- me.yokeyword:swipebackfragment
- com.airbnb.android:lottie
Copyright 2018 The PocketLib Contributors
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
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.