hide all_apps_fragment by default, show once below screen

This commit is contained in:
tibbi 2022-08-22 22:25:52 +02:00
parent cb4fea8b1d
commit 37dedae951
2 changed files with 4 additions and 1 deletions

View File

@ -9,6 +9,7 @@ import android.view.MotionEvent
import android.view.animation.DecelerateInterpolator
import androidx.core.view.GestureDetectorCompat
import com.simplemobiletools.commons.extensions.appLaunched
import com.simplemobiletools.commons.extensions.beVisible
import com.simplemobiletools.commons.extensions.realScreenSize
import com.simplemobiletools.launcher.BuildConfig
import com.simplemobiletools.launcher.R
@ -37,6 +38,7 @@ class MainActivity : SimpleActivity(), FlingListener {
mScreenHeight = realScreenSize.y
mCurrentFragmentY = mScreenHeight
all_apps_fragment.y = mScreenHeight.toFloat()
all_apps_fragment.beVisible()
}
override fun onResume() {

View File

@ -6,6 +6,7 @@
<include
android:id="@+id/all_apps_fragment"
layout="@layout/all_apps_fragment" />
layout="@layout/all_apps_fragment"
android:visibility="gone" />
</RelativeLayout>