Removed video preview round corners in landscape conference waiting room
This commit is contained in:
parent
7c9692ea36
commit
f9ece220eb
3 changed files with 6 additions and 1 deletions
|
@ -29,6 +29,8 @@ import org.linphone.R
|
|||
import org.linphone.mediastream.video.capture.CaptureTextureView
|
||||
|
||||
class RoundCornersTextureView : CaptureTextureView {
|
||||
private var mRadius: Float = 0f
|
||||
|
||||
constructor(context: Context) : super(context) {
|
||||
mAlignTopRight = true
|
||||
mDisplayMode = DisplayMode.BLACK_BARS
|
||||
|
@ -64,6 +66,7 @@ class RoundCornersTextureView : CaptureTextureView {
|
|||
2 -> DisplayMode.HYBRID
|
||||
else -> DisplayMode.BLACK_BARS
|
||||
}
|
||||
mRadius = getFloat(R.styleable.RoundCornersTextureView_radius, context.resources.getDimension(R.dimen.voip_round_corners_texture_view_radius))
|
||||
} finally {
|
||||
recycle()
|
||||
}
|
||||
|
@ -91,7 +94,7 @@ class RoundCornersTextureView : CaptureTextureView {
|
|||
height
|
||||
)
|
||||
}
|
||||
outline.setRoundRect(rect, context.resources.getDimension(R.dimen.voip_round_corners_texture_view_radius))
|
||||
outline.setRoundRect(rect, mRadius)
|
||||
}
|
||||
}
|
||||
clipToOutline = true
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
android:layout_height="0dp"
|
||||
app:alignTopRight="false"
|
||||
app:displayMode="occupy_all_space"
|
||||
app:radius="0"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
|
|
@ -73,6 +73,7 @@
|
|||
<enum name="occupy_all_space" value="1"/>
|
||||
<enum name="hybrid" value="2"/>
|
||||
</attr>
|
||||
<attr name="radius" format="float" />
|
||||
</declare-styleable>
|
||||
|
||||
<declare-styleable name="ScrollDot">
|
||||
|
|
Loading…
Reference in a new issue