This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dependencies { | |
| ... | |
| implementation 'androidx.constraintlayout:constraintlayout:2.0.4' | |
| implementation 'com.airbnb.android:lottie:$lottieVersion' //3.4.0 right now | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.mattiaferigutti.backdrop | |
| import android.os.Bundle | |
| import android.view.LayoutInflater | |
| import android.view.View | |
| import android.view.ViewGroup | |
| import com.google.android.material.bottomsheet.BottomSheetBehavior | |
| import com.google.android.material.bottomsheet.BottomSheetDialogFragment | |
| import kotlinx.android.synthetic.main.fragment_window.* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.mattiaferigutti.backdrop | |
| import android.view.View | |
| interface OnBottomSheetCallbacks { | |
| fun onStateChanged(bottomSheet: View, newState: Int) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.mattiaferigutti.backdrop | |
| import android.os.Bundle | |
| import android.view.View | |
| import androidx.appcompat.app.AppCompatActivity | |
| import com.google.android.material.bottomsheet.BottomSheetBehavior | |
| class MainActivity : AppCompatActivity() { | |
| private var listener: OnBottomSheetCallbacks? = null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.mattiaferigutti.backdrop | |
| import android.content.Context | |
| import android.util.AttributeSet | |
| import android.view.MotionEvent | |
| import android.view.View | |
| import androidx.coordinatorlayout.widget.CoordinatorLayout | |
| import com.google.android.material.bottomsheet.BottomSheetBehavior | |
| class GestureLockedBottomSheetBehavior<V: View>(context: Context, attributeSet: AttributeSet?) : BottomSheetBehavior<V>(context, attributeSet) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <shape xmlns:android="http://schemas.android.com/apk/res/android" | |
| android:shape="rectangle"> | |
| <solid android:color="@android:color/white" /> | |
| <corners | |
| android:topLeftRadius="20dp" | |
| android:topRightRadius="20dp"/> | |
| </shape> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <LinearLayout | |
| xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:tools="http://schemas.android.com/tools" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| xmlns:app="http://schemas.android.com/apk/res-auto" | |
| android:background="@drawable/corner" | |
| tools:context=".WindowFragment"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:app="http://schemas.android.com/apk/res-auto" | |
| xmlns:tools="http://schemas.android.com/tools" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| android:id="@+id/main_container" | |
| android:background="@color/purple_500" | |
| tools:context=".MainActivity"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.studio.mattiaferigutti.exoplayertest | |
| import android.annotation.SuppressLint | |
| import android.net.Uri | |
| import android.os.Bundle | |
| import android.util.Log | |
| import android.view.View | |
| import androidx.appcompat.app.AppCompatActivity | |
| import com.google.android.exoplayer2.* | |
| import com.google.android.exoplayer2.source.ProgressiveMediaSource |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.mattiaferigutti.pinkline | |
| import androidx.appcompat.app.AppCompatActivity | |
| import android.os.Bundle | |
| import kotlinx.android.synthetic.main.activity_main.* | |
| class MainActivity : AppCompatActivity() { | |
| override fun onCreate(savedInstanceState: Bundle?) { | |
| super.onCreate(savedInstanceState) |