Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <layer-list xmlns:android="htt..."
- android:opacity="opaque">
- <item
- android:drawable="@color/colorSplash"/>
- <item
- android:width="100dp"
- android:height="100dp"
- android:gravity="center">
- <bitmap
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:gravity="fill"
- android:src="@drawable/logo_512" />
- </item>
- </layer-list>
- <android.support.constraint.ConstraintLayout
- xmlns:android="http...
- tools:context="com.example.SplashActivity">
- <ImageView
- android:id="@+id/splash_logo"
- android:layout_width="100dp"
- android:layout_height="100dp"
- android:src="@drawable/logo_512"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintTop_toTopOf="parent" />
- <activity
- android:name=".SplashActivity"
- android:theme="@style/SplashTheme">
- resourceId = getResources().getIdentifier("status_bar_height", "dimen", "android");
- statusbar_height = getResources().getDimensionPixelSize(resourceId);
Add Comment
Please, Sign In to add comment