android - Splash Screen to support both 1280X768 and 1280x720 -


i trying create splash screen android. question note 2 takes format of 1280 x 720 n 1280 x 768, , since both xhdpi format, splash screen picture put in xhdpi folder. since splash screen covers entire page, how can make sure both version gets right image if i put both pictures in xhdpi folder?

use imageview layout_height , layout_width match_parent , use scaletype = "centercrop". trick you.

<imageview xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/containerrl" android:layout_width="match_parent" android:layout_height="match_parent" android:src="@drawable/splash" android:scaletype="centercrop" ></imageview> 

Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -