diff --git a/res/layout/about.xml b/res/layout/about.xml index 2b51dfc5c..8ef477f60 100644 --- a/res/layout/about.xml +++ b/res/layout/about.xml @@ -5,34 +5,39 @@ android:layout_height="match_parent" android:orientation="vertical"> - + android:layout_height="60dp"> + + + android:layout_weight="0.4" + android:gravity="center" + android:padding="15dp"/> - - + android:layout_weight="0.2" + android:padding="15dp"/> + diff --git a/res/layout/chat.xml b/res/layout/chat.xml index 2396a3c80..3ccd2829b 100644 --- a/res/layout/chat.xml +++ b/res/layout/chat.xml @@ -4,8 +4,9 @@ android:layout_height="match_parent" android:background="@color/colorH" > - @@ -14,19 +15,20 @@ android:id="@+id/back" android:src="@drawable/back" android:background="@drawable/toolbar_button" - android:layout_width="60dp" + android:layout_width="0dp" android:layout_height="match_parent" - android:layout_alignParentLeft="true" - android:padding="20dp"/> + android:layout_weight="0.2" + android:padding="18dp"/> - - - + android:layout_weight="0.2" + android:padding="15dp"/> + @@ -132,6 +132,8 @@ android:layout_margin="10dp" android:layout_below="@+id/top_bar"/> + + - + android:layout_height="60dp"> + android:layout_weight="0.2" + android:padding="15dp"/> + android:layout_weight="0.2" + android:padding="15dp"/> + + - + android:layout_weight="0.2" + android:padding="15dp"/> + diff --git a/res/layout/contact.xml b/res/layout/contact.xml index adc9e8197..451a08f5f 100644 --- a/res/layout/contact.xml +++ b/res/layout/contact.xml @@ -5,44 +5,48 @@ android:background="@color/colorH" android:orientation="vertical" > - + android:layout_height="60dp"> + + + + - - + android:layout_weight="0.2" + android:padding="15dp"/> - + - + android:layout_height="60dp"> + android:layout_weight="0.2" + android:padding="18dp"/> - - + + android:layout_weight="0.2" + android:padding="15dp"/> - + + + - - + android:layout_height="60dp"> + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="0.2"> - - + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="0.2"> - - + + + android:layout_weight="0.2" + android:padding="15dp"/> - + android:layout_weight="0.2" + android:padding="15dp"/> + diff --git a/res/layout/dialer.xml b/res/layout/dialer.xml index d25293b7c..d30a7d4d3 100644 --- a/res/layout/dialer.xml +++ b/res/layout/dialer.xml @@ -8,7 +8,7 @@ android:id="@+id/address_bar" android:background="@color/colorF" android:layout_width="match_parent" - android:layout_height="50dp" + android:layout_height="60dp" android:layout_marginBottom="10dp" android:layout_alignParentTop="true"> @@ -30,7 +30,7 @@ android:ellipsize="start" android:inputType="textEmailAddress" android:hint="@string/address_bar_hint" - android:layout_width="match_parent" + android:layout_width="wrap_content" android:layout_height="match_parent" android:paddingLeft="20dp" android:paddingRight="5dp" diff --git a/res/layout/edit_list.xml b/res/layout/edit_list.xml index 62a343288..fb7bfa87b 100644 --- a/res/layout/edit_list.xml +++ b/res/layout/edit_list.xml @@ -1,9 +1,10 @@ - + android:layout_weight="0.2" + android:padding="15dp"/> - + android:layout_weight="0.4"/> + android:layout_weight="0.2" + android:padding="15dp"/> + + + android:layout_weight="0.2" + android:visibility="gone" + android:padding="15dp"/> - \ No newline at end of file + \ No newline at end of file diff --git a/res/layout/history.xml b/res/layout/history.xml index 70278ef35..ed51f7e41 100644 --- a/res/layout/history.xml +++ b/res/layout/history.xml @@ -5,77 +5,74 @@ android:background="@color/colorH" android:orientation="vertical" > - + android:layout_height="60dp"> + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="0.2"> - - + android:layout_weight="0.2"> - - + android:visibility="gone" + android:layout_alignParentBottom="true"/> + + - + android:layout_weight="0.2" + android:padding="15dp"/> + diff --git a/res/layout/history_detail.xml b/res/layout/history_detail.xml index f0457c109..2eba11853 100644 --- a/res/layout/history_detail.xml +++ b/res/layout/history_detail.xml @@ -5,34 +5,38 @@ android:layout_height="match_parent" android:orientation="vertical" > - + android:layout_height="60dp"> + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="0.2" + android:padding="18dp"/> + + - - - + android:contentDescription="@string/content_description_edit" + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="0.2" + android:padding="15dp"/> + 0) { backInCall.setVisibility(View.VISIBLE); } else { - backInCall.setVisibility(View.GONE); + backInCall.setVisibility(View.INVISIBLE); } final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(LinphoneActivity.instance()); diff --git a/src/org/linphone/ContactsListFragment.java b/src/org/linphone/ContactsListFragment.java index 52815590e..2a3d22070 100644 --- a/src/org/linphone/ContactsListFragment.java +++ b/src/org/linphone/ContactsListFragment.java @@ -66,7 +66,8 @@ public class ContactsListFragment extends Fragment implements OnClickListener, O private TextView noSipContact, noContact; private ImageView allContacts, linphoneContacts, newContact, edit, selectAll, deselectAll, delete, cancel; private boolean onlyDisplayLinphoneContacts, isEditMode; - private RelativeLayout allContactsSelected, linphoneContactsSelected, editList, topbar; + private View allContactsSelected, linphoneContactsSelected; + private LinearLayout editList, topbar; private int lastKnownPosition; private AlphabetIndexer indexer; private boolean editOnClick = false, editConsumed = false, onlyDisplayChatAddress = false; @@ -110,11 +111,8 @@ public class ContactsListFragment extends Fragment implements OnClickListener, O linphoneContacts = (ImageView) view.findViewById(R.id.linphone_contacts); linphoneContacts.setOnClickListener(this); - allContactsSelected = (RelativeLayout) view.findViewById(R.id.all_contacts_select); - allContactsSelected.setOnClickListener(this); - - linphoneContactsSelected = (RelativeLayout) view.findViewById(R.id.linphone_contacts_select); - linphoneContactsSelected.setOnClickListener(this); + allContactsSelected = view.findViewById(R.id.all_contacts_select); + linphoneContactsSelected = view.findViewById(R.id.linphone_contacts_select); newContact = (ImageView) view.findViewById(R.id.newContact); newContact.setOnClickListener(this); @@ -132,8 +130,8 @@ public class ContactsListFragment extends Fragment implements OnClickListener, O delete = (ImageView) view.findViewById(R.id.delete); delete.setOnClickListener(this); - editList = (RelativeLayout) view.findViewById(R.id.edit_list); - topbar = (RelativeLayout) view.findViewById(R.id.top_bar); + editList = (LinearLayout) view.findViewById(R.id.edit_list); + topbar = (LinearLayout) view.findViewById(R.id.top_bar); cancel = (ImageView) view.findViewById(R.id.cancel); cancel.setOnClickListener(this); diff --git a/src/org/linphone/HistoryListFragment.java b/src/org/linphone/HistoryListFragment.java index 492155c65..d1a8975dd 100644 --- a/src/org/linphone/HistoryListFragment.java +++ b/src/org/linphone/HistoryListFragment.java @@ -61,7 +61,8 @@ public class HistoryListFragment extends Fragment implements OnClickListener, On private LayoutInflater mInflater; private TextView noCallHistory, noMissedCallHistory; private ImageView missedCalls, allCalls, edit, selectAll, deselectAll, delete, cancel; - private RelativeLayout allCallsSelected, missedCallsSelected, editList, topBar; + private View allCallsSelected, missedCallsSelected; + private LinearLayout editList, topBar; private boolean onlyDisplayMissedCalls, isEditMode; private List mLogs; @@ -80,8 +81,8 @@ public class HistoryListFragment extends Fragment implements OnClickListener, On delete = (ImageView) view.findViewById(R.id.delete); delete.setOnClickListener(this); - editList = (RelativeLayout) view.findViewById(R.id.edit_list); - topBar = (RelativeLayout) view.findViewById(R.id.top_bar); + editList = (LinearLayout) view.findViewById(R.id.edit_list); + topBar = (LinearLayout) view.findViewById(R.id.top_bar); cancel = (ImageView) view.findViewById(R.id.cancel); cancel.setOnClickListener(this); @@ -89,14 +90,12 @@ public class HistoryListFragment extends Fragment implements OnClickListener, On allCalls = (ImageView) view.findViewById(R.id.all_calls); allCalls.setOnClickListener(this); - allCallsSelected = (RelativeLayout) view.findViewById(R.id.all_calls_select); - allCallsSelected.setOnClickListener(this); + allCallsSelected = view.findViewById(R.id.all_calls_select); missedCalls = (ImageView) view.findViewById(R.id.missed_calls); missedCalls.setOnClickListener(this); - missedCallsSelected = (RelativeLayout) view.findViewById(R.id.missed_calls_select); - missedCallsSelected.setOnClickListener(this); + missedCallsSelected = view.findViewById(R.id.missed_calls_select); selectAll = (ImageView) view.findViewById(R.id.select_all); selectAll.setOnClickListener(this); diff --git a/src/org/linphone/assistant/AssistantActivity.java b/src/org/linphone/assistant/AssistantActivity.java index c2b3d6bce..f76025bf6 100644 --- a/src/org/linphone/assistant/AssistantActivity.java +++ b/src/org/linphone/assistant/AssistantActivity.java @@ -307,8 +307,8 @@ public class AssistantActivity extends Activity implements OnClickListener { } public void loadLinphoneConfig(){ - LinphoneManager.getInstance().loadConfig(); - LinphoneManager.getInstance().restartLinphoneCore(); + //LinphoneManager.getInstance().loadConfig(); + //LinphoneManager.getInstance().restartLinphoneCore(); } public void saveCreatedAccount(String username, String password, String displayName, String domain, TransportType transport) {