parent
81d8f5d8d9
commit
56a10395cc
@ -0,0 +1,15 @@ |
||||
package net.pokeranalytics.android.ui.view |
||||
|
||||
import android.content.Context |
||||
import android.widget.PopupWindow |
||||
import androidx.appcompat.content.res.AppCompatResources |
||||
import net.pokeranalytics.android.R |
||||
|
||||
open class BasePopupWindow(context: Context) : PopupWindow(context) { |
||||
|
||||
init { |
||||
val drawable = AppCompatResources.getDrawable(context, R.drawable.popup_background) |
||||
setBackgroundDrawable(drawable) |
||||
} |
||||
|
||||
} |
||||
@ -0,0 +1,5 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"> |
||||
<solid android:color="@color/white"/> |
||||
<corners android:radius="16dp"/> |
||||
</shape> |
||||
Loading…
Reference in new issue