Added full screen image launcher option
This commit is contained in:
parent
ba4052ba4d
commit
d6a6d58f89
3 changed files with 33 additions and 2 deletions
|
@ -42,7 +42,11 @@ public class LinphoneLauncherActivity extends Activity {
|
||||||
if (getResources().getBoolean(R.bool.orientation_portrait_only)) {
|
if (getResources().getBoolean(R.bool.orientation_portrait_only)) {
|
||||||
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
|
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
|
||||||
}
|
}
|
||||||
setContentView(R.layout.launch_screen);
|
if (getResources().getBoolean(R.bool.use_full_screen_image_splashscreen)) {
|
||||||
|
setContentView(R.layout.launch_screen_full_image);
|
||||||
|
} else {
|
||||||
|
setContentView(R.layout.launch_screen);
|
||||||
|
}
|
||||||
|
|
||||||
mHandler = new Handler();
|
mHandler = new Handler();
|
||||||
|
|
||||||
|
|
26
app/src/main/res/layout/launch_screen_full_image.xml
Normal file
26
app/src/main/res/layout/launch_screen_full_image.xml
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:background="@color/dark_grey_color">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:src="@drawable/splashscreen" />
|
||||||
|
|
||||||
|
<ProgressBar
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center_horizontal|bottom"
|
||||||
|
android:indeterminateTint="@color/primary_color"
|
||||||
|
android:layout_marginBottom="20dp" />
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:layout_width="100dp"
|
||||||
|
android:layout_height="10dp"
|
||||||
|
android:layout_gravity="center_horizontal|bottom"
|
||||||
|
android:background="@color/primary_color" />
|
||||||
|
|
||||||
|
</FrameLayout>
|
|
@ -29,6 +29,7 @@
|
||||||
<bool name="use_linphone_tag">true</bool>
|
<bool name="use_linphone_tag">true</bool>
|
||||||
<bool name="hide_bottom_bar_on_second_level_views">true</bool>
|
<bool name="hide_bottom_bar_on_second_level_views">true</bool>
|
||||||
<bool name="set_notification_bar_background_color_to_primary">true</bool>
|
<bool name="set_notification_bar_background_color_to_primary">true</bool>
|
||||||
|
<bool name="use_full_screen_image_splashscreen">false</bool>
|
||||||
|
|
||||||
<!-- Time -->
|
<!-- Time -->
|
||||||
<string name="history_date_format" translatable="false">EEE d MMM</string>
|
<string name="history_date_format" translatable="false">EEE d MMM</string>
|
||||||
|
@ -100,7 +101,6 @@
|
||||||
<bool name="use_big_pictures_to_preview_images_file_transfers">true</bool>
|
<bool name="use_big_pictures_to_preview_images_file_transfers">true</bool>
|
||||||
<bool name="show_sip_uri_in_chat">false</bool>
|
<bool name="show_sip_uri_in_chat">false</bool>
|
||||||
<bool name="hide_empty_one_to_one_chat_rooms">true</bool>
|
<bool name="hide_empty_one_to_one_chat_rooms">true</bool>
|
||||||
<bool name="hide_invite_contact">false</bool>
|
|
||||||
|
|
||||||
<!-- Contacts -->
|
<!-- Contacts -->
|
||||||
<bool name="hide_contact_phone_numbers">false</bool>
|
<bool name="hide_contact_phone_numbers">false</bool>
|
||||||
|
@ -114,6 +114,7 @@
|
||||||
<bool name="hide_sip_contacts_without_presence">false</bool>
|
<bool name="hide_sip_contacts_without_presence">false</bool>
|
||||||
<bool name="hide_non_linphone_contacts">false</bool>
|
<bool name="hide_non_linphone_contacts">false</bool>
|
||||||
<bool name="use_native_contact_editor">false</bool>
|
<bool name="use_native_contact_editor">false</bool>
|
||||||
|
<bool name="hide_invite_contact">false</bool>
|
||||||
|
|
||||||
<!-- Side Menu -->
|
<!-- Side Menu -->
|
||||||
<bool name="hide_assistant_from_side_menu">false</bool>
|
<bool name="hide_assistant_from_side_menu">false</bool>
|
||||||
|
|
Loading…
Reference in a new issue