diff --git a/res/layout/activity_sflphone_home.xml b/res/layout/activity_sflphone_home.xml index 35b606546bcadc9245347e3c4816bc9ad6ba537b..9f004e412a38b0cbabf289b4d4c770fb5ff8f19a 100644 --- a/res/layout/activity_sflphone_home.xml +++ b/res/layout/activity_sflphone_home.xml @@ -34,7 +34,8 @@ as that of the covered work. xmlns:app="http://schemas.android.com/apk/res/org.sflphone" android:id="@+id/drawer_layout" android:layout_width="match_parent" - android:layout_height="match_parent" > + android:layout_height="match_parent" + android:background="@color/sfl_dark_blue" > <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" diff --git a/res/layout/contact_drawer.xml b/res/layout/contact_drawer.xml index f3c1de488f2b46bcf569ea4280929ce4e6e7c148..d435548809a4c58af9fd428e80f55c93cd97d2bf 100644 --- a/res/layout/contact_drawer.xml +++ b/res/layout/contact_drawer.xml @@ -44,23 +44,23 @@ as that of the covered work. android:layout_width="match_parent" android:layout_height="72dp" > - <ImageView - android:id="@+id/menu_top_shadow_left" - android:layout_width="0dp" - android:layout_height="4dp" - android:layout_above="@+id/coucou" - android:layout_alignParentLeft="true" - android:layout_toLeftOf="@+id/hello" - android:src="@drawable/defaultshadowtop" /> +<!-- <ImageView --> +<!-- android:id="@+id/menu_top_shadow_left" --> +<!-- android:layout_width="0dp" --> +<!-- android:layout_height="4dp" --> +<!-- android:layout_above="@+id/coucou" --> +<!-- android:layout_alignParentLeft="true" --> +<!-- android:layout_toLeftOf="@+id/hello" --> +<!-- android:src="@drawable/defaultshadowtop" /> --> - <ImageView - android:id="@+id/menu_top_shadow_right" - android:layout_width="0dp" - android:layout_height="4dp" - android:layout_above="@+id/coucou" - android:layout_alignParentRight="true" - android:layout_toRightOf="@+id/hello" - android:src="@drawable/defaultshadowtop" /> +<!-- <ImageView --> +<!-- android:id="@+id/menu_top_shadow_right" --> +<!-- android:layout_width="0dp" --> +<!-- android:layout_height="4dp" --> +<!-- android:layout_above="@+id/coucou" --> +<!-- android:layout_alignParentRight="true" --> +<!-- android:layout_toRightOf="@+id/hello" --> +<!-- android:src="@drawable/defaultshadowtop" /> --> <RelativeLayout android:id="@+id/coucou" diff --git a/src/org/sflphone/client/HomeActivity.java b/src/org/sflphone/client/HomeActivity.java index 1f812b9a0e66537c41ff8f3bbf34bdd9a53b7696..9782a49a96e403a26bbf4d6a47a5da4a011c77c6 100644 --- a/src/org/sflphone/client/HomeActivity.java +++ b/src/org/sflphone/client/HomeActivity.java @@ -164,17 +164,12 @@ public class HomeActivity extends Activity implements DialingFragment.Callbacks, @Override public void onScrollEnded() { - if (!mContactDrawer.isOpened()) { - mShadow.setAlpha(0f); - } + } @Override public void onScroll(int offset) { - float relativeOffset = offset + getResources().getDimension(R.dimen.contact_drawer_handle_height); - float alpha = 1 - (((float) relativeOffset) / ((float) getResources().getDisplayMetrics().heightPixels)); - mShadow.setAlpha(alpha); if (offset < 400) { getActionBar().hide(); // mNavigationDrawer.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED);