From f31f51661d8b7b147272463422135a757e2cf6f8 Mon Sep 17 00:00:00 2001 From: Margaux Clerc Date: Mon, 27 Jul 2015 17:00:12 +0200 Subject: [PATCH] Update interface --- res/layout/dialer.xml | 6 ++-- res/layout/main.xml | 11 +++--- res/layout/status.xml | 3 +- res/layout/toolbar.xml | 50 -------------------------- res/values/color.xml | 1 + src/org/linphone/LinphoneActivity.java | 35 +----------------- 6 files changed, 9 insertions(+), 97 deletions(-) delete mode 100644 res/layout/toolbar.xml diff --git a/res/layout/dialer.xml b/res/layout/dialer.xml index 29c9e16e5..6d6ab11e2 100644 --- a/res/layout/dialer.xml +++ b/res/layout/dialer.xml @@ -5,12 +5,10 @@ android:background="@color/background"> @@ -61,7 +59,7 @@ android:adjustViewBounds="true" android:scaleType="center" android:contentDescription="@string/content_description_contacts" - android:src="@drawable/add_contact_button" /> + android:src="@drawable/contact_add" /> diff --git a/res/layout/main.xml b/res/layout/main.xml index b0ce8b25b..39e0d77df 100644 --- a/res/layout/main.xml +++ b/res/layout/main.xml @@ -9,18 +9,17 @@ + android:layout_height="wrap_content"> + + - - - - - - diff --git a/res/layout/status.xml b/res/layout/status.xml index fb6c8446c..3df1a108b 100644 --- a/res/layout/status.xml +++ b/res/layout/status.xml @@ -1,13 +1,12 @@ - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/res/values/color.xml b/res/values/color.xml index 985e533f5..6330b7984 100644 --- a/res/values/color.xml +++ b/res/values/color.xml @@ -9,6 +9,7 @@ #ff5e00 #96c11f #808080 + #e1e1e1 diff --git a/src/org/linphone/LinphoneActivity.java b/src/org/linphone/LinphoneActivity.java index 0d8a340e8..ca87a3581 100644 --- a/src/org/linphone/LinphoneActivity.java +++ b/src/org/linphone/LinphoneActivity.java @@ -318,39 +318,6 @@ public class LinphoneActivity extends Activity implements OnClickListener, Conta } - @Override - public boolean onCreateOptionsMenu(Menu menu) { - MenuInflater inflater = getMenuInflater(); - inflater.inflate(R.menu.main, menu); - return super.onCreateOptionsMenu(menu); - } - - /* Called whenever we call invalidateOptionsMenu() */ - @Override - public boolean onPrepareOptionsMenu(Menu menu) { - // If the nav drawer is open, hide action items related to the content view - boolean drawerOpen = mDrawerLayout.isDrawerOpen(mDrawerList); - menu.findItem(R.id.action_websearch).setVisible(!drawerOpen); - return super.onPrepareOptionsMenu(menu); - } - - @Override - public boolean onOptionsItemSelected(MenuItem item) { - // The action bar home/up action should open or close the drawer. - // ActionBarDrawerToggle will take care of this. - if (mDrawerToggle.onOptionsItemSelected(item)) { - return true; - } - // Handle action buttons - switch(item.getItemId()) { - case R.id.action_websearch: - - return true; - default: - return super.onOptionsItemSelected(item); - } - } - /* The click listner for ListView in the navigation drawer */ private class DrawerItemClickListener implements ListView.OnItemClickListener { @Override @@ -457,7 +424,7 @@ public class LinphoneActivity extends Activity implements OnClickListener, Conta statusFragment.getView().setVisibility(View.VISIBLE); }*/ //findViewById(R.id.status).setVisibility(View.VISIBLE); - findViewById(R.id.fragmentContainer).setPadding(0, LinphoneUtils.pixelsToDpi(getResources(), 40), 0, 0); + //findViewById(R.id.fragmentContainer).setPadding(0, LinphoneUtils.pixelsToDpi(getResources(), 40), 0, 0); } private void changeCurrentFragment(FragmentsAvailable newFragmentType, Bundle extras) {