From 5d672085a910749bddd09616206e5926676e8401 Mon Sep 17 00:00:00 2001 From: amirisback Date: Mon, 25 Mar 2024 08:15:38 +0700 Subject: [PATCH] update: fixing bug item remove --- .../core/CoreFrogoRecyclerViewAdapter.kt | 76 ++++--------------- .../recycler/core/FrogoBindingAdapter.kt | 9 ++- .../recycler/core/FrogoBindingHolder.kt | 2 +- .../frogobox/recycler/core/FrogoBuilderRv.kt | 2 +- .../recycler/core/FrogoBuilderRvBase.kt | 2 +- .../recycler/core/FrogoBuilderRvBinding.kt | 2 +- .../com/frogobox/recycler/core/FrogoHolder.kt | 2 +- .../frogobox/recycler/core/FrogoHolderVB.kt | 2 +- .../recycler/core/FrogoLayoutManager.kt | 14 +++- .../recycler/core/FrogoNestedAdapter.kt | 2 +- .../recycler/core/FrogoNestedHolder.kt | 2 +- .../core/FrogoRecyclerBindingAdapter.kt | 14 +++- .../core/FrogoRecyclerBindingListener.kt | 2 +- .../core/FrogoRecyclerNotifyListener.kt | 6 +- .../recycler/core/FrogoRecyclerViewAdapter.kt | 21 +++-- .../core/FrogoRecyclerViewListener.kt | 10 ++- .../frogobox/recycler/core/FrogoRvConstant.kt | 4 +- .../frogobox/recycler/core/FrogoRvModel.kt | 15 ---- .../frogobox/recycler/core/FrogoSingleRv.kt | 22 +++--- .../recycler/core/FrogoSingleRvBase.kt | 2 +- .../recycler/core/FrogoSingleRvBinding.kt | 25 +++--- .../frogobox/recycler/core/FrogoSingleSrv.kt | 36 +++++---- .../recycler/core/FrogoViewAdapter.kt | 4 +- .../frogobox/recycler/core/FrogoViewHolder.kt | 4 +- .../recycler/core/IFrogoBindingAdapter.kt | 2 +- .../recycler/core/IFrogoBindingHolder.kt | 2 +- .../frogobox/recycler/core/IFrogoBuilderRv.kt | 8 +- .../recycler/core/IFrogoBuilderRvBinding.kt | 7 +- .../recycler/core/IFrogoLayoutManager.kt | 5 +- .../recycler/core/IFrogoNestedHolder.kt | 11 +-- .../com/frogobox/recycler/core/IFrogoRv.kt | 4 +- .../frogobox/recycler/core/IFrogoRvBinding.kt | 4 +- .../recycler/core/IFrogoViewAdapter.kt | 9 ++- .../recycler/core/IFrogoViewHolder.kt | 4 +- .../widget/FrogoShimmerRecyclerView.kt | 2 +- .../widget/IFrogoProgressRecyclerView.kt | 2 +- .../recycler/widget/IFrogoRecyclerView.kt | 1 - .../widget/IFrogoShimmerRecyclerView.kt | 2 +- .../recycler/widget/IFrogoStyleComponent.kt | 2 +- 39 files changed, 163 insertions(+), 182 deletions(-) delete mode 100644 frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoRvModel.kt diff --git a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/CoreFrogoRecyclerViewAdapter.kt b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/CoreFrogoRecyclerViewAdapter.kt index 97add6e..a5e8682 100644 --- a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/CoreFrogoRecyclerViewAdapter.kt +++ b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/CoreFrogoRecyclerViewAdapter.kt @@ -1,6 +1,5 @@ package com.frogobox.recycler.core -import android.util.Log import androidx.recyclerview.widget.AsyncListDiffer import androidx.recyclerview.widget.DiffUtil import androidx.recyclerview.widget.RecyclerView @@ -15,61 +14,16 @@ import androidx.recyclerview.widget.RecyclerView */ -abstract class CoreFrogoRecyclerViewAdapter> : RecyclerView.Adapter() { +abstract class CoreFrogoRecyclerViewAdapter> : + RecyclerView.Adapter(), FrogoRecyclerNotifyListener { /** * Base Of Core FrogoRecyclerViewHolder */ - - protected val listData = mutableListOf() - - protected var notifyListener = object : FrogoRecyclerNotifyListener { - - override fun frogoNotifyData(): MutableList { - return innerFrogoNotifyData() - } - override fun frogoNotifyDataSetChanged() { - innerFrogoNotifyDataSetChanged() - } - - override fun frogoNotifyItemChanged(data: T, position: Int, payload: Any) { - innerFrogoNotifyItemChanged(data, position, payload) - } - - override fun frogoNotifyItemChanged(data: T, position: Int) { - innerFrogoNotifyItemChanged(data, position) - } - - override fun frogoNotifyItemInserted(data: T, position: Int) { - innerFrogoNotifyItemInserted(data, position) - } - - override fun frogoNotifyItemMoved(data: T, fromPosition: Int, toPosition: Int) { - innerFrogoNotifyItemMoved(data, fromPosition, toPosition) - } - - override fun frogoNotifyItemRangeChanged(data: List, positionStart: Int, payload: Any) { - innerFrogoNotifyItemRangeChanged(data, positionStart, payload) - } - - override fun frogoNotifyItemRangeChanged(data: List, positionStart: Int) { - innerFrogoNotifyItemRangeChanged(data, positionStart) - } - - override fun frogoNotifyItemRangeInserted(data: List, positionStart: Int) { - innerFrogoNotifyItemRangeInserted(data, positionStart) - } - - override fun frogoNotifyItemRangeRemoved(positionStart: Int, itemCount: Int) { - innerFrogoNotifyItemRangeRemoved(positionStart, itemCount) - } - - override fun frogoNotifyItemRemoved(item: T) { - innerFrogoNotifyItemRemoved(item) - } + protected val listData = mutableListOf() - } + protected var notifyListener = this protected val asyncListDiffer = AsyncListDiffer(this, object : DiffUtil.ItemCallback() { override fun areItemsTheSame(oldItem: T & Any, newItem: T & Any): Boolean { @@ -90,38 +44,38 @@ abstract class CoreFrogoRecyclerViewAdapter { + override fun frogoNotifyData(): MutableList { return listData } // Notify Data Set Changed - fun innerFrogoNotifyDataSetChanged() { + override fun frogoNotifyDataSetChanged() { notifyDataSetChanged() } // Notify Data Item Changed - fun innerFrogoNotifyItemChanged(data: T, position: Int, payload: Any) { + override fun frogoNotifyItemChanged(data: T, position: Int, payload: Any) { listData[position] = data notifyItemChanged(position, payload) asyncListDiffer.submitList(listData) } // Notify Data Item Changed - fun innerFrogoNotifyItemChanged(data: T, position: Int) { + override fun frogoNotifyItemChanged(data: T, position: Int) { listData[position] = data notifyItemChanged(position) asyncListDiffer.submitList(listData) } // Notify Data Item Inserted - fun innerFrogoNotifyItemInserted(data: T, position: Int) { + override fun frogoNotifyItemInserted(data: T, position: Int) { listData.add(position, data) notifyItemInserted(position) asyncListDiffer.submitList(listData) } // Notify Data Item Moved - fun innerFrogoNotifyItemMoved(data: T, fromPosition: Int, toPosition: Int) { + override fun frogoNotifyItemMoved(data: T, fromPosition: Int, toPosition: Int) { listData.removeAt(fromPosition) listData.add(toPosition, data) notifyItemMoved(fromPosition, toPosition) @@ -129,35 +83,35 @@ abstract class CoreFrogoRecyclerViewAdapter, positionStart: Int, payload: Any) { + override fun frogoNotifyItemRangeChanged(data: List, positionStart: Int, payload: Any) { listData.addAll(positionStart, data) notifyItemRangeChanged(positionStart, data.size, payload) asyncListDiffer.submitList(listData) } // Notify Data Item Range Changed - fun innerFrogoNotifyItemRangeChanged(data: List, positionStart: Int) { + override fun frogoNotifyItemRangeChanged(data: List, positionStart: Int) { listData.addAll(positionStart, data) notifyItemRangeChanged(positionStart, data.size) asyncListDiffer.submitList(listData) } // Notify Data Item Range Inserted - fun innerFrogoNotifyItemRangeInserted(data: List, positionStart: Int) { + override fun frogoNotifyItemRangeInserted(data: List, positionStart: Int) { listData.addAll(positionStart, data) notifyItemRangeChanged(positionStart, data.size) asyncListDiffer.submitList(listData) } // Notify Data Item Range Removed - fun innerFrogoNotifyItemRangeRemoved(positionStart: Int, itemCount: Int) { + override fun frogoNotifyItemRangeRemoved(positionStart: Int, itemCount: Int) { listData.subList(positionStart, (positionStart + itemCount)).clear() notifyItemRangeRemoved(positionStart, itemCount) asyncListDiffer.submitList(listData) } // Notify Data Item Removed - fun innerFrogoNotifyItemRemoved(item : T) { + override fun frogoNotifyItemRemoved(item: T) { val index = listData.indexOf(item) listData.remove(item) notifyItemRemoved(index) diff --git a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoBindingAdapter.kt b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoBindingAdapter.kt index 9e4a8d3..7b1d118 100644 --- a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoBindingAdapter.kt +++ b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoBindingAdapter.kt @@ -7,7 +7,7 @@ import androidx.viewbinding.ViewBinding * Created by Faisal Amir * ========================================= * FrogoRecyclerViewAdapter - * Copyright (C) 14/04/2020. + * Copyright (C) 14/04/2020. * All rights reserved * ----------------------------------------- * Name : Muhammad Faisal Amir @@ -16,7 +16,7 @@ import androidx.viewbinding.ViewBinding * ----------------------------------------- * FrogoBox Inc * com.frogobox.recycler.content - * + * */ class FrogoBindingAdapter : FrogoRecyclerBindingAdapter() { @@ -31,6 +31,9 @@ class FrogoBindingAdapter : FrogoRecyclerBindingAdapter { - return FrogoBindingHolder(frogoViewHolderCallback!!.setViewBinding(parent), frogoViewHolderCallback) + return FrogoBindingHolder( + frogoViewHolderCallback!!.setViewBinding(parent), + frogoViewHolderCallback + ) } } \ No newline at end of file diff --git a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoBindingHolder.kt b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoBindingHolder.kt index 91c7ea5..570445b 100644 --- a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoBindingHolder.kt +++ b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoBindingHolder.kt @@ -2,7 +2,7 @@ package com.frogobox.recycler.core import androidx.viewbinding.ViewBinding -/* +/** * Created by Faisal Amir * ========================================= * FrogoRecyclerViewAdapter diff --git a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoBuilderRv.kt b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoBuilderRv.kt index 696d2cb..c12147c 100644 --- a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoBuilderRv.kt +++ b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoBuilderRv.kt @@ -3,7 +3,7 @@ package com.frogobox.recycler.core import android.view.View import androidx.recyclerview.widget.RecyclerView -/* +/** * Created by faisalamir on 23/07/21 * FrogoRecyclerView * ----------------------------------------- diff --git a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoBuilderRvBase.kt b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoBuilderRvBase.kt index 14e4377..9cea857 100644 --- a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoBuilderRvBase.kt +++ b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoBuilderRvBase.kt @@ -4,7 +4,7 @@ import androidx.recyclerview.widget.RecyclerView import com.frogobox.recycler.R -/* +/** * Created by faisalamir on 24/07/21 * FrogoRecyclerView * ----------------------------------------- diff --git a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoBuilderRvBinding.kt b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoBuilderRvBinding.kt index 9e7cd55..b8ec084 100644 --- a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoBuilderRvBinding.kt +++ b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoBuilderRvBinding.kt @@ -4,7 +4,7 @@ import android.view.ViewGroup import androidx.recyclerview.widget.RecyclerView import androidx.viewbinding.ViewBinding -/* +/** * Created by faisalamir on 24/07/21 * FrogoRecyclerView * ----------------------------------------- diff --git a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoHolder.kt b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoHolder.kt index b84384b..27e9b48 100644 --- a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoHolder.kt +++ b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoHolder.kt @@ -1,6 +1,6 @@ package com.frogobox.recycler.core -/* +/** * Created by Faisal Amir on 04/02/2021 * FrogoRecyclerView Source Code * ----------------------------------------- diff --git a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoHolderVB.kt b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoHolderVB.kt index 0ef42f2..f56de95 100644 --- a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoHolderVB.kt +++ b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoHolderVB.kt @@ -2,7 +2,7 @@ package com.frogobox.recycler.core import androidx.viewbinding.ViewBinding -/* +/** * Created by Faisal Amir on 04/02/2021 * FrogoRecyclerView Source Code * ----------------------------------------- diff --git a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoLayoutManager.kt b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoLayoutManager.kt index 7a72be0..5159ed1 100644 --- a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoLayoutManager.kt +++ b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoLayoutManager.kt @@ -1,7 +1,11 @@ package com.frogobox.recycler.core import android.content.Context -import androidx.recyclerview.widget.* +import androidx.recyclerview.widget.DividerItemDecoration +import androidx.recyclerview.widget.GridLayoutManager +import androidx.recyclerview.widget.LinearLayoutManager +import androidx.recyclerview.widget.RecyclerView +import androidx.recyclerview.widget.StaggeredGridLayoutManager import com.google.android.flexbox.FlexboxLayoutManager /** @@ -12,7 +16,7 @@ import com.google.android.flexbox.FlexboxLayoutManager * E-mail : faisalamircs@gmail.com * Github : github.com/amirisback * ----------------------------------------- - * Copyright (C) 2021 FrogoBox Inc. + * Copyright (C) 2021 FrogoBox Inc. * All rights reserved * */ @@ -70,7 +74,11 @@ object FrogoLayoutManager : IFrogoLayoutManager { return GridLayoutManager(context, spanCount) } - override fun flexboxLayout(context: Context, flexDirection: Int, justifyContent: Int): FlexboxLayoutManager { + override fun flexboxLayout( + context: Context, + flexDirection: Int, + justifyContent: Int + ): FlexboxLayoutManager { return FlexboxLayoutManager(context).apply { this.flexDirection = flexDirection this.justifyContent = justifyContent diff --git a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoNestedAdapter.kt b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoNestedAdapter.kt index 48531bb..0d5a6fa 100644 --- a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoNestedAdapter.kt +++ b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoNestedAdapter.kt @@ -5,7 +5,7 @@ import android.view.ViewGroup import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.RecyclerView -/* +/** * Created by Amir on 03/03/2021 * FrogoRecyclerView Source Code * ----------------------------------------- diff --git a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoNestedHolder.kt b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoNestedHolder.kt index 94937aa..9ebeb38 100644 --- a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoNestedHolder.kt +++ b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoNestedHolder.kt @@ -3,7 +3,7 @@ package com.frogobox.recycler.core import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.RecyclerView -/* +/** * Created by Amir on 03/03/2021 * FrogoRecyclerView Source Code * ----------------------------------------- diff --git a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoRecyclerBindingAdapter.kt b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoRecyclerBindingAdapter.kt index 1127bbd..4527eec 100644 --- a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoRecyclerBindingAdapter.kt +++ b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoRecyclerBindingAdapter.kt @@ -6,7 +6,7 @@ import androidx.viewbinding.ViewBinding * Created by Faisal Amir * ========================================= * FrogoRecyclerViewAdapter - * Copyright (C) 29/04/2020. + * Copyright (C) 29/04/2020. * All rights reserved * ----------------------------------------- * Name : Muhammad Faisal Amir @@ -15,10 +15,11 @@ import androidx.viewbinding.ViewBinding * ----------------------------------------- * FrogoBox Inc * com.frogobox.recycler.base - * + * */ -abstract class FrogoRecyclerBindingAdapter : CoreFrogoRecyclerViewAdapter>() { +abstract class FrogoRecyclerBindingAdapter : + CoreFrogoRecyclerViewAdapter>() { protected var bindingListener: FrogoRecyclerBindingListener? = null @@ -36,7 +37,12 @@ abstract class FrogoRecyclerBindingAdapter : CoreFrogoRecyc } override fun onBindViewHolder(holder: FrogoRecyclerBindingHolder, position: Int) { - holder.bindItem(asyncListDiffer.currentList[position], position, bindingListener, notifyListener) + holder.bindItem( + asyncListDiffer.currentList[position], + position, + bindingListener, + notifyListener + ) } fun setupData(data: List?) { diff --git a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoRecyclerBindingListener.kt b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoRecyclerBindingListener.kt index a068879..3e4a6a2 100644 --- a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoRecyclerBindingListener.kt +++ b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoRecyclerBindingListener.kt @@ -3,7 +3,7 @@ package com.frogobox.recycler.core import androidx.viewbinding.ViewBinding -/* +/** * Created by faisalamir on 11/12/21 * FrogoRecyclerView * ----------------------------------------- diff --git a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoRecyclerNotifyListener.kt b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoRecyclerNotifyListener.kt index 709872c..2c47f41 100644 --- a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoRecyclerNotifyListener.kt +++ b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoRecyclerNotifyListener.kt @@ -1,7 +1,7 @@ package com.frogobox.recycler.core -/* +/** * Created by faisalamir on 11/12/21 * FrogoRecyclerView * ----------------------------------------- @@ -17,7 +17,7 @@ package com.frogobox.recycler.core interface FrogoRecyclerNotifyListener { // Notify Data List - fun frogoNotifyData() : MutableList + fun frogoNotifyData(): MutableList // Notify Data Set Changed fun frogoNotifyDataSetChanged() @@ -48,5 +48,5 @@ interface FrogoRecyclerNotifyListener { // Notify Data Item Removed fun frogoNotifyItemRemoved(item: T) - + } \ No newline at end of file diff --git a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoRecyclerViewAdapter.kt b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoRecyclerViewAdapter.kt index ab39678..e7cdf84 100644 --- a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoRecyclerViewAdapter.kt +++ b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoRecyclerViewAdapter.kt @@ -10,7 +10,7 @@ import com.frogobox.recycler.R * Created by Faisal Amir * ========================================= * FrogoRecyclerViewAdapter - * Copyright (C) 29/04/2020. + * Copyright (C) 29/04/2020. * All rights reserved * ----------------------------------------- * Name : Muhammad Faisal Amir @@ -19,10 +19,11 @@ import com.frogobox.recycler.R * ----------------------------------------- * FrogoBox Inc * com.frogobox.recycler.base - * + * */ -abstract class FrogoRecyclerViewAdapter : CoreFrogoRecyclerViewAdapter>() { +abstract class FrogoRecyclerViewAdapter : + CoreFrogoRecyclerViewAdapter>() { var hasEmptyView = false var hasMultiHolder = false @@ -109,10 +110,20 @@ abstract class FrogoRecyclerViewAdapter : CoreFrogoRecyclerViewAdapter : FrogoDiffUtilCallback { // on itemview set on click listener - fun onItemClicked(view: View, data: T, position: Int, notifyListener: FrogoRecyclerNotifyListener) + fun onItemClicked( + view: View, + data: T, + position: Int, + notifyListener: FrogoRecyclerNotifyListener + ) // on itemview set on long click listener fun onItemLongClicked( @@ -30,6 +35,7 @@ interface FrogoRecyclerViewListener : FrogoDiffUtilCallback { data: T, position: Int, notifyListener: FrogoRecyclerNotifyListener - ) {} + ) { + } } \ No newline at end of file diff --git a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoRvConstant.kt b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoRvConstant.kt index 165baa8..40c963e 100644 --- a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoRvConstant.kt +++ b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoRvConstant.kt @@ -4,7 +4,7 @@ package com.frogobox.recycler.core * Created by Faisal Amir * ========================================= * FrogoRecyclerViewAdapter - * Copyright (C) 26/04/2020. + * Copyright (C) 26/04/2020. * All rights reserved * ----------------------------------------- * Name : Muhammad Faisal Amir @@ -13,7 +13,7 @@ package com.frogobox.recycler.core * ----------------------------------------- * FrogoBox Inc * com.frogobox.recycler.util - * + * */ object FrogoRvConstant { diff --git a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoRvModel.kt b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoRvModel.kt deleted file mode 100644 index b887db9..0000000 --- a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoRvModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.frogobox.recycler.core - -/** - * Created by faisalamircs on 25/03/2024 - * ----------------------------------------- - * Name : Muhammad Faisal Amir - * E-mail : faisalamircs@gmail.com - * Github : github.com/amirisback - * ----------------------------------------- - */ - - -data class FrogoRvModel( - val id: Int -) diff --git a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoSingleRv.kt b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoSingleRv.kt index b339253..610641d 100644 --- a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoSingleRv.kt +++ b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoSingleRv.kt @@ -173,47 +173,47 @@ open class FrogoSingleRv : FrogoSingleRvBase(), IFrogoRv { } override fun frogoNotifyData(): MutableList { - return frogoViewAdapter.innerFrogoNotifyData() + return frogoViewAdapter.frogoNotifyData() } override fun frogoNotifyDataSetChanged() { - frogoViewAdapter.innerFrogoNotifyDataSetChanged() + frogoViewAdapter.frogoNotifyDataSetChanged() } override fun frogoNotifyItemChanged(data: T, position: Int, payload: Any) { - frogoViewAdapter.innerFrogoNotifyItemChanged(data, position, payload) + frogoViewAdapter.frogoNotifyItemChanged(data, position, payload) } override fun frogoNotifyItemChanged(data: T, position: Int) { - frogoViewAdapter.innerFrogoNotifyItemChanged(data, position) + frogoViewAdapter.frogoNotifyItemChanged(data, position) } override fun frogoNotifyItemInserted(data: T, position: Int) { - frogoViewAdapter.innerFrogoNotifyItemInserted(data, position) + frogoViewAdapter.frogoNotifyItemInserted(data, position) } override fun frogoNotifyItemMoved(data: T, fromPosition: Int, toPosition: Int) { - frogoViewAdapter.innerFrogoNotifyItemMoved(data, fromPosition, toPosition) + frogoViewAdapter.frogoNotifyItemMoved(data, fromPosition, toPosition) } override fun frogoNotifyItemRangeChanged(data: List, positionStart: Int, payload: Any) { - frogoViewAdapter.innerFrogoNotifyItemRangeChanged(data, positionStart, payload) + frogoViewAdapter.frogoNotifyItemRangeChanged(data, positionStart, payload) } override fun frogoNotifyItemRangeChanged(data: List, positionStart: Int) { - frogoViewAdapter.innerFrogoNotifyItemRangeChanged(data, positionStart) + frogoViewAdapter.frogoNotifyItemRangeChanged(data, positionStart) } override fun frogoNotifyItemRangeInserted(data: List, positionStart: Int) { - frogoViewAdapter.innerFrogoNotifyItemRangeInserted(data, positionStart) + frogoViewAdapter.frogoNotifyItemRangeInserted(data, positionStart) } override fun frogoNotifyItemRangeRemoved(positionStart: Int, itemCount: Int) { - frogoViewAdapter.innerFrogoNotifyItemRangeRemoved(positionStart, itemCount) + frogoViewAdapter.frogoNotifyItemRangeRemoved(positionStart, itemCount) } override fun frogoNotifyItemRemoved(item: T) { - frogoViewAdapter.innerFrogoNotifyItemRemoved(item) + frogoViewAdapter.frogoNotifyItemRemoved(item) } } \ No newline at end of file diff --git a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoSingleRvBase.kt b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoSingleRvBase.kt index df4f313..b1f05ad 100644 --- a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoSingleRvBase.kt +++ b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoSingleRvBase.kt @@ -18,7 +18,7 @@ import com.google.android.flexbox.JustifyContent * E-mail : faisalamircs@gmail.com * Github : github.com/amirisback * ----------------------------------------- - * Copyright (C) 2021 FrogoBox Inc. + * Copyright (C) 2021 FrogoBox Inc. * All rights reserved * */ diff --git a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoSingleRvBinding.kt b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoSingleRvBinding.kt index e605581..aaf9631 100644 --- a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoSingleRvBinding.kt +++ b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoSingleRvBinding.kt @@ -4,7 +4,7 @@ import android.view.ViewGroup import androidx.recyclerview.widget.RecyclerView import androidx.viewbinding.ViewBinding -/* +/** * Created by Faisal Amir * ========================================= * RecyclerViewAdapter @@ -19,6 +19,7 @@ import androidx.viewbinding.ViewBinding * com.frogobox.recycler * */ + open class FrogoSingleRvBinding : FrogoSingleRvBase(), IFrogoRvBinding { @@ -151,47 +152,47 @@ open class FrogoSingleRvBinding : FrogoSingleRvBase(), } override fun frogoNotifyData(): MutableList { - return frogoBindingAdapter.innerFrogoNotifyData() + return frogoBindingAdapter.frogoNotifyData() } override fun frogoNotifyDataSetChanged() { - frogoBindingAdapter.innerFrogoNotifyDataSetChanged() + frogoBindingAdapter.frogoNotifyDataSetChanged() } override fun frogoNotifyItemChanged(data: T, position: Int, payload: Any) { - frogoBindingAdapter.innerFrogoNotifyItemChanged(data, position, payload) + frogoBindingAdapter.frogoNotifyItemChanged(data, position, payload) } override fun frogoNotifyItemChanged(data: T, position: Int) { - frogoBindingAdapter.innerFrogoNotifyItemChanged(data, position) + frogoBindingAdapter.frogoNotifyItemChanged(data, position) } override fun frogoNotifyItemInserted(data: T, position: Int) { - frogoBindingAdapter.innerFrogoNotifyItemInserted(data, position) + frogoBindingAdapter.frogoNotifyItemInserted(data, position) } override fun frogoNotifyItemMoved(data: T, fromPosition: Int, toPosition: Int) { - frogoBindingAdapter.innerFrogoNotifyItemMoved(data, fromPosition, toPosition) + frogoBindingAdapter.frogoNotifyItemMoved(data, fromPosition, toPosition) } override fun frogoNotifyItemRangeChanged(data: List, positionStart: Int, payload: Any) { - frogoBindingAdapter.innerFrogoNotifyItemRangeChanged(data, positionStart, payload) + frogoBindingAdapter.frogoNotifyItemRangeChanged(data, positionStart, payload) } override fun frogoNotifyItemRangeChanged(data: List, positionStart: Int) { - frogoBindingAdapter.innerFrogoNotifyItemRangeChanged(data, positionStart) + frogoBindingAdapter.frogoNotifyItemRangeChanged(data, positionStart) } override fun frogoNotifyItemRangeInserted(data: List, positionStart: Int) { - frogoBindingAdapter.innerFrogoNotifyItemRangeInserted(data, positionStart) + frogoBindingAdapter.frogoNotifyItemRangeInserted(data, positionStart) } override fun frogoNotifyItemRangeRemoved(positionStart: Int, itemCount: Int) { - frogoBindingAdapter.innerFrogoNotifyItemRangeRemoved(positionStart, itemCount) + frogoBindingAdapter.frogoNotifyItemRangeRemoved(positionStart, itemCount) } override fun frogoNotifyItemRemoved(item: T) { - frogoBindingAdapter.innerFrogoNotifyItemRemoved(item) + frogoBindingAdapter.frogoNotifyItemRemoved(item) } } \ No newline at end of file diff --git a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoSingleSrv.kt b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoSingleSrv.kt index 1929a69..81b1607 100644 --- a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoSingleSrv.kt +++ b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoSingleSrv.kt @@ -2,7 +2,7 @@ package com.frogobox.recycler.core import android.view.View -/* +/** * Created by Faisal Amir on 04/06/2020 * FrogoRecyclerView Source Code * ----------------------------------------- @@ -49,19 +49,24 @@ class FrogoSingleSrv : FrogoSingleRv() { data: String, position: Int, notifyListener: FrogoRecyclerNotifyListener - ) {} + ) { + } + override fun onItemClicked( view: View, data: String, position: Int, notifyListener: FrogoRecyclerNotifyListener - ) {} + ) { + } + override fun onItemLongClicked( view: View, data: String, position: Int, notifyListener: FrogoRecyclerNotifyListener - ) {} + ) { + } override fun areItemsTheSame(oldItem: String, newItem: String): Boolean { return oldItem.hashCode() == newItem.hashCode() @@ -103,6 +108,7 @@ class FrogoSingleSrv : FrogoSingleRv() { ) { srvFrogoAdapterCallback.onItemLongClicked(view, data, position, notifyListener) } + override fun areItemsTheSame(oldItem: String, newItem: String): Boolean { return oldItem.hashCode() == newItem.hashCode() } @@ -120,47 +126,47 @@ class FrogoSingleSrv : FrogoSingleRv() { } override fun frogoNotifyData(): MutableList { - return srvFrogoViewAdapter.innerFrogoNotifyData() + return srvFrogoViewAdapter.frogoNotifyData() } override fun frogoNotifyDataSetChanged() { - srvFrogoViewAdapter.innerFrogoNotifyDataSetChanged() + srvFrogoViewAdapter.frogoNotifyDataSetChanged() } override fun frogoNotifyItemChanged(data: String, position: Int, payload: Any) { - srvFrogoViewAdapter.innerFrogoNotifyItemChanged(data, position, payload) + srvFrogoViewAdapter.frogoNotifyItemChanged(data, position, payload) } override fun frogoNotifyItemChanged(data: String, position: Int) { - srvFrogoViewAdapter.innerFrogoNotifyItemChanged(data, position) + srvFrogoViewAdapter.frogoNotifyItemChanged(data, position) } override fun frogoNotifyItemInserted(data: String, position: Int) { - srvFrogoViewAdapter.innerFrogoNotifyItemInserted(data, position) + srvFrogoViewAdapter.frogoNotifyItemInserted(data, position) } override fun frogoNotifyItemMoved(data: String, fromPosition: Int, toPosition: Int) { - srvFrogoViewAdapter.innerFrogoNotifyItemMoved(data, fromPosition, toPosition) + srvFrogoViewAdapter.frogoNotifyItemMoved(data, fromPosition, toPosition) } override fun frogoNotifyItemRangeChanged(data: List, positionStart: Int, payload: Any) { - srvFrogoViewAdapter.innerFrogoNotifyItemRangeChanged(data, positionStart, payload) + srvFrogoViewAdapter.frogoNotifyItemRangeChanged(data, positionStart, payload) } override fun frogoNotifyItemRangeChanged(data: List, positionStart: Int) { - srvFrogoViewAdapter.innerFrogoNotifyItemRangeChanged(data, positionStart) + srvFrogoViewAdapter.frogoNotifyItemRangeChanged(data, positionStart) } override fun frogoNotifyItemRangeInserted(data: List, positionStart: Int) { - srvFrogoViewAdapter.innerFrogoNotifyItemRangeInserted(data, positionStart) + srvFrogoViewAdapter.frogoNotifyItemRangeInserted(data, positionStart) } override fun frogoNotifyItemRangeRemoved(positionStart: Int, itemCount: Int) { - srvFrogoViewAdapter.innerFrogoNotifyItemRangeRemoved(positionStart, itemCount) + srvFrogoViewAdapter.frogoNotifyItemRangeRemoved(positionStart, itemCount) } override fun frogoNotifyItemRemoved(item: String) { - srvFrogoViewAdapter.innerFrogoNotifyItemRemoved(item) + srvFrogoViewAdapter.frogoNotifyItemRemoved(item) } } \ No newline at end of file diff --git a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoViewAdapter.kt b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoViewAdapter.kt index cd77798..e55b216 100644 --- a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoViewAdapter.kt +++ b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoViewAdapter.kt @@ -7,7 +7,7 @@ import android.view.ViewGroup * Created by Faisal Amir * ========================================= * FrogoRecyclerViewAdapter - * Copyright (C) 14/04/2020. + * Copyright (C) 14/04/2020. * All rights reserved * ----------------------------------------- * Name : Muhammad Faisal Amir @@ -16,7 +16,7 @@ import android.view.ViewGroup * ----------------------------------------- * FrogoBox Inc * com.frogobox.recycler.content - * + * */ class FrogoViewAdapter : FrogoRecyclerViewAdapter() { diff --git a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoViewHolder.kt b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoViewHolder.kt index f368c20..f4cedd9 100644 --- a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoViewHolder.kt +++ b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoViewHolder.kt @@ -6,7 +6,7 @@ import android.view.View * Created by Faisal Amir * ========================================= * FrogoRecyclerViewAdapter - * Copyright (C) 26/04/2020. + * Copyright (C) 26/04/2020. * All rights reserved * ----------------------------------------- * Name : Muhammad Faisal Amir @@ -15,7 +15,7 @@ import android.view.View * ----------------------------------------- * FrogoBox Inc * com.frogobox.recycler - * + * */ class FrogoViewHolder(view: View, private val frogoViewHolderCallback: IFrogoViewHolder?) : diff --git a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/IFrogoBindingAdapter.kt b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/IFrogoBindingAdapter.kt index 7dfe0ef..b7a15e0 100644 --- a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/IFrogoBindingAdapter.kt +++ b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/IFrogoBindingAdapter.kt @@ -3,7 +3,7 @@ package com.frogobox.recycler.core import android.view.ViewGroup import androidx.viewbinding.ViewBinding -/* +/** * Created by Faisal Amir * ========================================= * FrogoRecyclerViewAdapter diff --git a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/IFrogoBindingHolder.kt b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/IFrogoBindingHolder.kt index 6e3e440..a9917a9 100644 --- a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/IFrogoBindingHolder.kt +++ b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/IFrogoBindingHolder.kt @@ -3,7 +3,7 @@ package com.frogobox.recycler.core import android.view.ViewGroup import androidx.viewbinding.ViewBinding -/* +/** * Created by Faisal Amir * ========================================= * FrogoRecyclerViewAdapter diff --git a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/IFrogoBuilderRv.kt b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/IFrogoBuilderRv.kt index deee866..6a02422 100644 --- a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/IFrogoBuilderRv.kt +++ b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/IFrogoBuilderRv.kt @@ -4,7 +4,7 @@ import android.content.Context import android.view.View import androidx.recyclerview.widget.RecyclerView -/* +/** * Created by faisalamir on 23/07/21 * FrogoRecyclerView * ----------------------------------------- @@ -16,7 +16,8 @@ import androidx.recyclerview.widget.RecyclerView * All rights reserved * */ -interface IFrogoBuilderRv : FrogoDiffUtilCallback { + +interface IFrogoBuilderRv : FrogoDiffUtilCallback { // Setup data FrogoRecyclerView fun setupData(): List @@ -52,6 +53,7 @@ interface IFrogoBuilderRv : FrogoDiffUtilCallback { data: T, position: Int, notifyListener: FrogoRecyclerNotifyListener - ) {} + ) { + } } \ No newline at end of file diff --git a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/IFrogoBuilderRvBinding.kt b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/IFrogoBuilderRvBinding.kt index 9dd0499..7f829c5 100644 --- a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/IFrogoBuilderRvBinding.kt +++ b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/IFrogoBuilderRvBinding.kt @@ -5,7 +5,7 @@ import android.view.ViewGroup import androidx.recyclerview.widget.RecyclerView import androidx.viewbinding.ViewBinding -/* +/** * Created by faisalamir on 24/07/21 * FrogoRecyclerView * ----------------------------------------- @@ -17,7 +17,7 @@ import androidx.viewbinding.ViewBinding * All rights reserved * */ -interface IFrogoBuilderRvBinding : FrogoDiffUtilCallback { +interface IFrogoBuilderRvBinding : FrogoDiffUtilCallback { // Setup data FrogoRecyclerView fun setupData(): List @@ -50,6 +50,7 @@ interface IFrogoBuilderRvBinding : FrogoDiffUtilCallback - ) {} + ) { + } } \ No newline at end of file diff --git a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/IFrogoLayoutManager.kt b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/IFrogoLayoutManager.kt index 14e2b93..502a5e2 100644 --- a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/IFrogoLayoutManager.kt +++ b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/IFrogoLayoutManager.kt @@ -9,7 +9,7 @@ import com.google.android.flexbox.FlexDirection import com.google.android.flexbox.FlexboxLayoutManager import com.google.android.flexbox.JustifyContent -/* +/** * Created by faisalamir on 23/07/21 * FrogoRecyclerView * ----------------------------------------- @@ -21,6 +21,7 @@ import com.google.android.flexbox.JustifyContent * All rights reserved * */ + interface IFrogoLayoutManager { fun linearLayoutVertical(context: Context): RecyclerView.LayoutManager @@ -51,6 +52,6 @@ interface IFrogoLayoutManager { context: Context, flexDirection: Int = FlexDirection.ROW, justifyContent: Int = JustifyContent.FLEX_START - ) : FlexboxLayoutManager + ): FlexboxLayoutManager } \ No newline at end of file diff --git a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/IFrogoNestedHolder.kt b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/IFrogoNestedHolder.kt index d77c0f2..af23ea3 100644 --- a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/IFrogoNestedHolder.kt +++ b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/IFrogoNestedHolder.kt @@ -1,9 +1,6 @@ package com.frogobox.recycler.core -import android.view.View -import androidx.recyclerview.widget.RecyclerView - -/* +/** * Created by Amir on 03/03/2021 * FrogoRecyclerView Source Code * ----------------------------------------- @@ -18,12 +15,12 @@ import androidx.recyclerview.widget.RecyclerView interface IFrogoNestedHolder { // Setup Nested Custom View - fun nestedCustomView() : Int + fun nestedCustomView(): Int // Setup Nested Listener - fun nestedListener() : FrogoRecyclerViewListener + fun nestedListener(): FrogoRecyclerViewListener // Setup Nested Callback - fun nestedCallback() : IFrogoViewHolder + fun nestedCallback(): IFrogoViewHolder } \ No newline at end of file diff --git a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/IFrogoRv.kt b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/IFrogoRv.kt index 0d28876..d3fd9be 100644 --- a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/IFrogoRv.kt +++ b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/IFrogoRv.kt @@ -5,7 +5,7 @@ package com.frogobox.recycler.core * Created by Faisal Amir * ========================================= * FrogoRecyclerViewAdapter - * Copyright (C) 27/04/2020. + * Copyright (C) 27/04/2020. * All rights reserved * ----------------------------------------- * Name : Muhammad Faisal Amir @@ -14,7 +14,7 @@ package com.frogobox.recycler.core * ----------------------------------------- * FrogoBox Inc * com.frogobox.recycler.util - * + * */ interface IFrogoRv : IFrogoRvSingleton { diff --git a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/IFrogoRvBinding.kt b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/IFrogoRvBinding.kt index 0c432dd..bcc46e3 100644 --- a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/IFrogoRvBinding.kt +++ b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/IFrogoRvBinding.kt @@ -6,7 +6,7 @@ import androidx.viewbinding.ViewBinding * Created by Faisal Amir * ========================================= * FrogoRecyclerViewAdapter - * Copyright (C) 27/04/2020. + * Copyright (C) 27/04/2020. * All rights reserved * ----------------------------------------- * Name : Muhammad Faisal Amir @@ -15,7 +15,7 @@ import androidx.viewbinding.ViewBinding * ----------------------------------------- * FrogoBox Inc * com.frogobox.recycler.util - * + * */ interface IFrogoRvBinding : IFrogoRvSingleton { diff --git a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/IFrogoViewAdapter.kt b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/IFrogoViewAdapter.kt index 9f7c31c..5cff3bf 100644 --- a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/IFrogoViewAdapter.kt +++ b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/IFrogoViewAdapter.kt @@ -6,7 +6,7 @@ import android.view.View * Created by Faisal Amir * ========================================= * FrogoRecyclerViewAdapter - * Copyright (C) 14/04/2020. + * Copyright (C) 14/04/2020. * All rights reserved * ----------------------------------------- * Name : Muhammad Faisal Amir @@ -15,10 +15,10 @@ import android.view.View * ----------------------------------------- * FrogoBox Inc * com.frogobox.recycler.callback - * + * */ -interface IFrogoViewAdapter : FrogoDiffUtilCallback { +interface IFrogoViewAdapter : FrogoDiffUtilCallback { // Setup Init Component on ViewHolder fun setupInitComponent( @@ -42,6 +42,7 @@ interface IFrogoViewAdapter : FrogoDiffUtilCallback { data: T, position: Int, notifyListener: FrogoRecyclerNotifyListener - ) {} + ) { + } } \ No newline at end of file diff --git a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/IFrogoViewHolder.kt b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/IFrogoViewHolder.kt index 00af3df..095d0ff 100644 --- a/frogorecyclerview/src/main/java/com/frogobox/recycler/core/IFrogoViewHolder.kt +++ b/frogorecyclerview/src/main/java/com/frogobox/recycler/core/IFrogoViewHolder.kt @@ -6,7 +6,7 @@ import android.view.View * Created by Faisal Amir * ========================================= * FrogoRecyclerViewAdapter - * Copyright (C) 14/04/2020. + * Copyright (C) 14/04/2020. * All rights reserved * ----------------------------------------- * Name : Muhammad Faisal Amir @@ -15,7 +15,7 @@ import android.view.View * ----------------------------------------- * FrogoBox Inc * com.frogobox.recycler.callback - * + * */ interface IFrogoViewHolder { diff --git a/frogorecyclerview/src/main/java/com/frogobox/recycler/widget/FrogoShimmerRecyclerView.kt b/frogorecyclerview/src/main/java/com/frogobox/recycler/widget/FrogoShimmerRecyclerView.kt index 9d60cc8..f4b38e1 100644 --- a/frogorecyclerview/src/main/java/com/frogobox/recycler/widget/FrogoShimmerRecyclerView.kt +++ b/frogorecyclerview/src/main/java/com/frogobox/recycler/widget/FrogoShimmerRecyclerView.kt @@ -11,7 +11,7 @@ import com.frogobox.recycler.core.FrogoSingleSrv import com.frogobox.recycler.widget.FrogoStyleComponent.setupComponentFrogoRecyclerView import com.frogobox.recycler.databinding.WidgetFrogoShimmerRecyclerviewBinding -/* +/** * Created by Faisal Amir on 02/06/2020 * FrogoRecyclerView Source Code * ----------------------------------------- diff --git a/frogorecyclerview/src/main/java/com/frogobox/recycler/widget/IFrogoProgressRecyclerView.kt b/frogorecyclerview/src/main/java/com/frogobox/recycler/widget/IFrogoProgressRecyclerView.kt index a006bd0..76cb2df 100644 --- a/frogorecyclerview/src/main/java/com/frogobox/recycler/widget/IFrogoProgressRecyclerView.kt +++ b/frogorecyclerview/src/main/java/com/frogobox/recycler/widget/IFrogoProgressRecyclerView.kt @@ -2,7 +2,7 @@ package com.frogobox.recycler.widget import com.frogobox.recycler.core.FrogoSingleRv -/* +/** * Created by faisalamir on 09/05/21 * FrogoRecyclerView * ----------------------------------------- diff --git a/frogorecyclerview/src/main/java/com/frogobox/recycler/widget/IFrogoRecyclerView.kt b/frogorecyclerview/src/main/java/com/frogobox/recycler/widget/IFrogoRecyclerView.kt index e959505..f275857 100644 --- a/frogorecyclerview/src/main/java/com/frogobox/recycler/widget/IFrogoRecyclerView.kt +++ b/frogorecyclerview/src/main/java/com/frogobox/recycler/widget/IFrogoRecyclerView.kt @@ -1,6 +1,5 @@ package com.frogobox.recycler.widget -import androidx.recyclerview.widget.RecyclerView import androidx.viewbinding.ViewBinding import com.frogobox.recycler.core.FrogoBindingAdapter import com.frogobox.recycler.core.FrogoSingleRv diff --git a/frogorecyclerview/src/main/java/com/frogobox/recycler/widget/IFrogoShimmerRecyclerView.kt b/frogorecyclerview/src/main/java/com/frogobox/recycler/widget/IFrogoShimmerRecyclerView.kt index 6963023..08a1e52 100644 --- a/frogorecyclerview/src/main/java/com/frogobox/recycler/widget/IFrogoShimmerRecyclerView.kt +++ b/frogorecyclerview/src/main/java/com/frogobox/recycler/widget/IFrogoShimmerRecyclerView.kt @@ -3,7 +3,7 @@ package com.frogobox.recycler.widget import com.frogobox.recycler.core.FrogoSingleRv import com.frogobox.recycler.core.FrogoSingleSrv -/* +/** * Created by Faisal Amir on 02/06/2020 * FrogoRecyclerView Source Code * ----------------------------------------- diff --git a/frogorecyclerview/src/main/java/com/frogobox/recycler/widget/IFrogoStyleComponent.kt b/frogorecyclerview/src/main/java/com/frogobox/recycler/widget/IFrogoStyleComponent.kt index 80a7a3a..ec1c0e2 100644 --- a/frogorecyclerview/src/main/java/com/frogobox/recycler/widget/IFrogoStyleComponent.kt +++ b/frogorecyclerview/src/main/java/com/frogobox/recycler/widget/IFrogoStyleComponent.kt @@ -3,7 +3,7 @@ package com.frogobox.recycler.widget import android.content.res.TypedArray import android.widget.ProgressBar -/* +/** * Created by faisalamir on 09/05/21 * FrogoRecyclerView * -----------------------------------------