mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-26 23:25:20 +03:00
make pip fullscreen (wip)
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
d482d8603e
commit
914b10bf20
1 changed files with 14 additions and 0 deletions
|
@ -2360,6 +2360,12 @@ public class CallController extends BaseController {
|
|||
}
|
||||
|
||||
public void updateUiForPipMode(){
|
||||
RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,
|
||||
ViewGroup.LayoutParams.WRAP_CONTENT);
|
||||
params.setMargins(0,0,0, 0);
|
||||
gridView.setLayoutParams(params);
|
||||
|
||||
|
||||
callControls.setVisibility(View.GONE);
|
||||
callInfosLinearLayout.setVisibility(View.GONE);
|
||||
selfVideoView.setVisibility(View.GONE);
|
||||
|
@ -2367,6 +2373,14 @@ public class CallController extends BaseController {
|
|||
}
|
||||
|
||||
public void updateUiForNormalMode(){
|
||||
RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,
|
||||
ViewGroup.LayoutParams.WRAP_CONTENT);
|
||||
params.addRule(RelativeLayout.BELOW, R.id.callInfosLinearLayout);
|
||||
int callControlsHeight =
|
||||
Math.round(getApplicationContext().getResources().getDimension(R.dimen.call_controls_height));
|
||||
params.setMargins(0,0,0, callControlsHeight);
|
||||
gridView.setLayoutParams(params);
|
||||
|
||||
callControls.setVisibility(View.VISIBLE);
|
||||
callInfosLinearLayout.setVisibility(View.VISIBLE);
|
||||
selfVideoView.setVisibility(View.VISIBLE);
|
||||
|
|
Loading…
Reference in a new issue