splash screen improvemnets.
This commit is contained in:
@@ -16,7 +16,9 @@
|
|||||||
android:largeHeap="true"
|
android:largeHeap="true"
|
||||||
android:label="Tick's Tales">
|
android:label="Tick's Tales">
|
||||||
<activity android:name=".SplashActivity"
|
<activity android:name=".SplashActivity"
|
||||||
android:theme="@android:style/Theme.Translucent.NoTitleBar">
|
android:theme="@android:style/Theme.Translucent.NoTitleBar"
|
||||||
|
android:screenOrientation="landscape"
|
||||||
|
android:configChanges="orientation|keyboardHidden" >
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN"/>
|
<action android:name="android.intent.action.MAIN"/>
|
||||||
<category android:name="android.intent.category.LAUNCHER"/>
|
<category android:name="android.intent.category.LAUNCHER"/>
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 6.4 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 158 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 9.0 KiB |
@@ -1,6 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
|
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
|
||||||
<corners android:radius="20dp"/>
|
<padding android:left="0dp" android:right="0dp" android:top="0dp" android:bottom="0dp"/>
|
||||||
<padding android:left="10dp" android:right="10dp" android:top="10dp" android:bottom="10dp"/>
|
|
||||||
<solid android:color="@android:color/black"/>
|
<solid android:color="@android:color/black"/>
|
||||||
</shape>
|
</shape>
|
||||||
|
|||||||
@@ -1,59 +1,24 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="fill_parent">
|
android:layout_height="fill_parent">
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_centerInParent="true"
|
|
||||||
android:orientation="vertical"
|
|
||||||
android:layout_margin="10dp"
|
|
||||||
android:background="@drawable/splash_background" >
|
|
||||||
|
|
||||||
<RelativeLayout
|
<LinearLayout
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="fill_parent"
|
||||||
android:layout_gravity="center"
|
android:layout_centerInParent="true"
|
||||||
android:gravity="center" >
|
android:background="@drawable/splash_background" >
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/splash_droid"
|
android:id="@+id/splash_droid"
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="fill_parent"
|
||||||
android:src="@drawable/splash_droid" >
|
android:src="@drawable/splash_droid" >
|
||||||
</ImageView>
|
</ImageView>
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/splash_circles"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:src="@drawable/splash_circle" >
|
|
||||||
</ImageView>
|
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/splash_droid_hands"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:src="@drawable/splash_hands" >
|
|
||||||
</ImageView>
|
|
||||||
</RelativeLayout>
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/splash_app_name"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_gravity="center_horizontal"
|
|
||||||
android:layout_marginTop="18dp"
|
|
||||||
android:text="Application name"
|
|
||||||
android:textSize="30sp" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_gravity="center_horizontal"
|
|
||||||
android:layout_marginTop="18dp"
|
|
||||||
android:text="Please wait for the application to load..." />
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|||||||
@@ -35,13 +35,6 @@ public class SplashActivity extends Activity {
|
|||||||
|
|
||||||
public void setupSplash() {
|
public void setupSplash() {
|
||||||
setContentView(R.layout.splashscreen);
|
setContentView(R.layout.splashscreen);
|
||||||
|
|
||||||
TextView appNameView = (TextView)findViewById(R.id.splash_app_name);
|
|
||||||
appNameView.setText(R.string.app_name);
|
|
||||||
|
|
||||||
Animation rotation = AnimationUtils.loadAnimation(this, R.anim.splash_rotation);
|
|
||||||
ImageView circleView = (ImageView)findViewById(R.id.splash_circles);
|
|
||||||
circleView.startAnimation(rotation);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void proceed() {
|
public void proceed() {
|
||||||
|
|||||||
Reference in New Issue
Block a user