Skip to content

Commit

Permalink
Fix layout params type linear to relative
Browse files Browse the repository at this point in the history
  • Loading branch information
skydoves committed Mar 20, 2020
1 parent bd3a5e3 commit ced8324
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions balloon/src/main/java/com/skydoves/balloon/Balloon.kt
Expand Up @@ -30,8 +30,6 @@ import android.os.Handler
import android.view.LayoutInflater
import android.view.MotionEvent
import android.view.View
import android.view.ViewGroup
import android.widget.LinearLayout
import android.widget.PopupWindow
import android.widget.RelativeLayout
import androidx.annotation.ColorInt
Expand Down Expand Up @@ -269,8 +267,8 @@ class Balloon(
this.bodyView.measure(View.MeasureSpec.UNSPECIFIED, View.MeasureSpec.UNSPECIFIED)
this.bodyWindow.width = getMeasureWidth()
this.bodyWindow.height = getMeasureHeight()
this.bodyView.balloon_detail.layoutParams = ViewGroup.LayoutParams(
LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.MATCH_PARENT)
this.bodyView.balloon_detail.layoutParams = RelativeLayout.LayoutParams(
RelativeLayout.LayoutParams.MATCH_PARENT, RelativeLayout.LayoutParams.MATCH_PARENT)

applyBalloonAnimation()
block()
Expand Down

0 comments on commit ced8324

Please sign in to comment.