New splashscreen at startup
This commit is contained in:
parent
fa402009b1
commit
087752cb6a
4 changed files with 16 additions and 16 deletions
BIN
res/drawable/splashscreen.png
Normal file
BIN
res/drawable/splashscreen.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
|
@ -1,8 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
<item android:state_pressed="true"
|
|
||||||
android:color="@color/text_over" />
|
|
||||||
<item android:state_enabled="false"
|
|
||||||
android:color="@color/text_default" />
|
|
||||||
<item android:color="@color/text_selected" />
|
|
||||||
</selector>
|
|
|
@ -1,9 +1,16 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<FrameLayout
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
android:layout_width="match_parent"
|
||||||
android:layout_width="fill_parent"
|
android:layout_height="match_parent">
|
||||||
android:layout_height="fill_parent">
|
|
||||||
<ImageView android:layout_width="fill_parent" android:layout_height="fill_parent"
|
<ImageView
|
||||||
android:src="@drawable/logo_linphone_57x57" android:scaleType="fitXY" />
|
android:layout_width="match_parent"
|
||||||
<ProgressBar android:layout_height="wrap_content" android:layout_width="wrap_content" />
|
android:layout_height="match_parent"
|
||||||
|
android:src="@drawable/splashscreen"
|
||||||
|
android:scaleType="fitXY" />
|
||||||
|
|
||||||
|
<ProgressBar
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_width="wrap_content" />
|
||||||
|
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|
|
@ -570,9 +570,10 @@ public class ChatFragment extends Fragment implements OnClickListener, LinphoneC
|
||||||
if (requestCode == ADD_PHOTO && resultCode == Activity.RESULT_OK) {
|
if (requestCode == ADD_PHOTO && resultCode == Activity.RESULT_OK) {
|
||||||
final String filePath = getRealPathFromURI(data.getData());
|
final String filePath = getRealPathFromURI(data.getData());
|
||||||
showPopupMenuAskingImageSize(filePath);
|
showPopupMenuAskingImageSize(filePath);
|
||||||
}
|
} else {
|
||||||
super.onActivityResult(requestCode, resultCode, data);
|
super.onActivityResult(requestCode, resultCode, data);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
class ProgressOutputStream extends OutputStream {
|
class ProgressOutputStream extends OutputStream {
|
||||||
OutputStream outputStream;
|
OutputStream outputStream;
|
||||||
|
|
Loading…
Reference in a new issue