Android-Begrüßungsbildschirm für Quer- und Hochform

Wie kann ich diesen Code ändern, um Begrüßungsbildschirme für Quer- und Hochformat festzulegen? Ich habe es geschafft, im Hochformat zu arbeiten und es funktioniert gut. Ich mag es, es für die Orientierung zu machen. Bitte ändern Sie diesen Code. Das ist meine SplashActivity.java.

public class SplashActivity extends Activity {


  // Splash screen timer
 private static int SPLASH_TIME_OUT = 3000;

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.splash_screen);



    new Handler().postDelayed(new Runnable() {

        /*
         * Showing splash screen with a timer. This will be useful when you
         * want to show case your app logo / company
         */

        @Override
        public void run() {
            // This method will be executed once the timer is over
            // Start your app main activity
            Intent i = new Intent(SplashActivity.this, MainActivity.class);
            startActivity(i);

            // close this activity
             finish();
          }
       }, SPLASH_TIME_OUT);
    }

  }

Dies ist meine splash_screen.xml.

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="wrap_content" >


  <ImageView
     android:id="@+id/imgLogo"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
     android:adjustViewBounds="true"
     android:scaleType="centerCrop"

     android:src="@drawable/screen_portrait"

     />
</RelativeLayout>

Antworten auf die Frage(4)

Ihre Antwort auf die Frage