Quiero que los botones se desplacen hacia arriba, intente cambiando la orientación de la pantalla pero el vídeo también gira y ya no se ve en toda la pantalla.
ESTE ES EL JAVA:
public class ActivityPrueba extends AppCompatActivity {
RelativeLayout ll;
FloatingActionMenu actionMenu;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_prueba);
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
actionMenu=(FloatingActionMenu)findViewById(fabPrincipal);
//actionMenu.setClosedOnTouchOutside(true);
actionMenu.showMenu(true);
VideoView intro = (VideoView) findViewById(R.id.videoView9);
String uriPath = "android.resource://com.example.dante.provantf_movil/" + R.raw.controlblanco;
Uri uri2 = Uri.parse(uriPath);
intro.setVideoURI(uri2);
intro.requestFocus();
intro.start();
// AQUI EMPIEZA EL REPRODUCTOR DE MUSICA UNO
Button buttonPlayVideo2 = (Button) findViewById(R.id.btnT_Izq_Rot);
getWindow().setFormat(PixelFormat.UNKNOWN);
//displays a video file
buttonPlayVideo2.setOnClickListener(new Button.OnClickListener() {
@Override
public void onClick(View v) {
VideoView mVideoView2 = (VideoView) findViewById(R.id.videoView9);
// VideoView mVideoView = new VideoView(this);
String uriPath = "android.resource://com.example.dante.provantf_movil/" + R.raw.trimizq;
Uri uri2 = Uri.parse(uriPath);
mVideoView2.setVideoURI(uri2);
mVideoView2.requestFocus();
mVideoView2.start();
}
});
}
public void clicSubMenuHome(View view){
Intent intent=new Intent(ActivityPrueba.this, Principal.class);
startActivity(intent);
actionMenu.hideMenu(true);
//Toast.makeText(this,"Sub Menu Home Tocado",Toast.LENGTH_SHORT).show();
}
public void clicSubMenuActPrueba(View view){
Intent intent=new Intent(ActivityPrueba.this, ControlRemoto.class);
startActivity(intent);
actionMenu.hideMenu(true);
//Toast.makeText(this,"Sub Menu Home Tocado",Toast.LENGTH_SHORT).show();
}
}
Y ESTE EL XML:
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:context="com.example.dante.provantf_movil.ActivityPrueba"
tools:showIn="@layout/activity_prueba">
<VideoView
android:id="@+id/videoView9"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<Button
android:id="@+id/btnJ_Izq"
style="@style/Widget.AppCompat.Button.Borderless"
android:layout_width="70dp"
android:layout_height="70dp"
android:layout_marginLeft="141dp"
android:layout_marginTop="182dp"
android:visibility="visible"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<com.github.clans.fab.FloatingActionMenu
android:id="@+id/fabPrincipal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|right"
android:src="@drawable/mas"
android:layout_marginLeft="25dp"
android:layout_marginBottom="26dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
>
<com.github.clans.fab.FloatingActionButton
android:id="@+id/subMenuActPrueba"
android:onClick="clicSubMenuActPrueba"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/mas2"/>
<com.github.clans.fab.FloatingActionButton
android:id="@+id/subMenuHome"
android:onClick="clicSubMenuHome"
android:layout_width="16dp"
android:layout_height="16dp"
android:src="@drawable/home"/>
</com.github.clans.fab.FloatingActionMenu>