tweak PIP player for certain aspect ratios
This commit is contained in:
parent
f49a3570e9
commit
f03d58d648
4 changed files with 16 additions and 8 deletions
|
@ -837,10 +837,11 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
|
|||
listener.onEnterPIPMode();
|
||||
}
|
||||
|
||||
View pipPlayerContainer = findViewById(R.id.pip_player_container);
|
||||
PlayerView pipPlayer = findViewById(R.id.pip_player);
|
||||
pipPlayer.setVisibility(View.VISIBLE);
|
||||
pipPlayer.setPlayer(appPlayer);
|
||||
pipPlayer.setUseController(false);
|
||||
pipPlayerContainer.setVisibility(View.VISIBLE);
|
||||
playerReassigned = true;
|
||||
}
|
||||
private void renderFullMode() {
|
||||
|
@ -871,9 +872,10 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
|
|||
listener.onExitPIPMode();
|
||||
}
|
||||
|
||||
View pipPlayerContainer = findViewById(R.id.pip_player_container);
|
||||
PlayerView pipPlayer = findViewById(R.id.pip_player);
|
||||
pipPlayer.setVisibility(View.INVISIBLE);
|
||||
pipPlayer.setPlayer(null);
|
||||
pipPlayerContainer.setVisibility(View.INVISIBLE);
|
||||
playerReassigned = true;
|
||||
}
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:text="@string/post_as"
|
||||
android:text="@string/comment_as"
|
||||
android:fontFamily="@font/inter"
|
||||
android:textSize="14sp"
|
||||
android:textFontWeight="300" />
|
||||
|
|
|
@ -128,12 +128,18 @@
|
|||
</RelativeLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/pip_player_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@android:color/black"
|
||||
android:visibility="invisible"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
<com.google.android.exoplayer2.ui.PlayerView
|
||||
android:id="@+id/pip_player"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
android:visibility="invisible" />
|
||||
android:layout_height="match_parent" />
|
||||
</RelativeLayout>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
@ -82,7 +82,7 @@
|
|||
<string name="content_deleted">The content was successfully deleted from the blockchain.</string>
|
||||
<string name="content_failed_delete">The content could not be deleted at this time. Please try again later.</string>
|
||||
<string name="comment">Comment</string>
|
||||
<string name="post_as">Post as</string>
|
||||
<string name="comment_as">Comment as</string>
|
||||
<string name="please_enter_comment">Please enter a comment to post.</string>
|
||||
<string name="please_select_channel">Please select a channel to post your comment as.</string>
|
||||
<string name="post_comment">Post comment with tip?</string>
|
||||
|
|
Loading…
Reference in a new issue