Improved splash screen & about screen

This commit is contained in:
Sylvain Berfini 2012-09-21 15:41:26 +02:00
parent 3cbbd36f2a
commit 5cf596a5bf
5 changed files with 26 additions and 11 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 99 KiB

View file

@ -6,10 +6,22 @@
android:background="@drawable/background"
android:gravity="center">
<ImageView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:src="@drawable/linphone_banner"/>
<ImageView
android:contentDescription="@string/content_description_welcome"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/logo_linphone_57x57" />
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingTop="5dp"
android:text="@string/app_name"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="@color/text_default"
android:textSize="30dp"
android:textStyle="bold" />
<TextView
android:layout_width="wrap_content"

View file

@ -11,6 +11,7 @@
<ProgressBar
android:layout_height="wrap_content"
android:layout_width="wrap_content" />
android:layout_width="wrap_content"
android:layout_gravity="center_horizontal|bottom" />
</FrameLayout>

View file

@ -5,7 +5,7 @@
<string name="today_date_format">HH:mm</string>
<string name="picture_name_format">linphone-mms-%s.jpg</string>
<string name="app_name">Linphone 2</string>
<string name="app_name">Linphone</string>
<string name="notification_title">Linphone</string>
<string name="wait_dialog_text">Starting up</string>
<string name="notification_registered">Registered to %s </string>

View file

@ -73,11 +73,13 @@ public class LinphoneLauncherActivity extends Activity {
protected void onServiceReady() {
LinphoneService.instance().setActivityToLaunchOnIncomingReceived(LinphoneActivity.class);
startActivity(new Intent()
.setClass(this, LinphoneActivity.class)
.setData(getIntent().getData()));
finish();
mHandler.postDelayed(new Runnable() {
@Override
public void run() {
startActivity(new Intent().setClass(LinphoneLauncherActivity.this, LinphoneActivity.class).setData(getIntent().getData()));
finish();
}
}, 1000);
}