Archived
Fixed a lot of problems that Android Studio raised with the projects, mostly deprecations and unused imports.
This commit is contained in:
@@ -2,9 +2,7 @@ package com.denizd.textbasic.fragment
|
||||
|
||||
import android.content.Context
|
||||
import androidx.annotation.LayoutRes
|
||||
import androidx.core.widget.NestedScrollView
|
||||
import androidx.fragment.app.Fragment
|
||||
import androidx.recyclerview.widget.RecyclerView
|
||||
|
||||
open class BaseFragment(@LayoutRes layoutId: Int) : Fragment(layoutId) {
|
||||
|
||||
@@ -16,24 +14,4 @@ open class BaseFragment(@LayoutRes layoutId: Int) : Fragment(layoutId) {
|
||||
}
|
||||
|
||||
override fun getContext(): Context = _context
|
||||
|
||||
// protected fun RecyclerView.addFabScrollListener() {
|
||||
// addOnScrollListener(object : RecyclerView.OnScrollListener() {
|
||||
// override fun onScrolled(recyclerView: RecyclerView, dx: Int, dy: Int) {
|
||||
// when {
|
||||
// dy > 0 -> fab.hide()
|
||||
// dy < 0 -> fab.show()
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
//
|
||||
// protected fun NestedScrollView.addFabScrollListener() {
|
||||
// setOnScrollChangeListener { _, _, dy, _, doy ->
|
||||
// when {
|
||||
// dy > doy -> fab.hide()
|
||||
// dy < doy -> fab.show()
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
}
|
||||
@@ -1,9 +1,7 @@
|
||||
package com.denizd.textbasic.fragment
|
||||
|
||||
import android.graphics.Bitmap
|
||||
import android.graphics.Color
|
||||
import android.os.Bundle
|
||||
import android.util.Log
|
||||
import android.util.TypedValue
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
|
||||
Reference in New Issue
Block a user