Fix Ui in history detail and chat landscape
This commit is contained in:
parent
fcb0843a1e
commit
f01ef97edd
2 changed files with 28 additions and 2 deletions
26
res/layout-land/search_contact_cell.xml
Normal file
26
res/layout-land/search_contact_cell.xml
Normal file
|
@ -0,0 +1,26 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/layout"
|
||||
android:background="@drawable/list_selector"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:padding="5dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/contact_name"
|
||||
style="@style/font6"
|
||||
android:lines="1"
|
||||
android:layout_weight="1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/contact_address"
|
||||
style="@style/font2"
|
||||
android:lines="1"
|
||||
android:layout_weight="1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"/>
|
||||
</LinearLayout>
|
|
@ -120,10 +120,10 @@ public class HistoryDetailFragment extends Fragment implements OnClickListener {
|
|||
Contact contact = ContactsManager.getInstance().findContactWithAddress(getActivity().getContentResolver(), lAddress);
|
||||
if (contact != null) {
|
||||
LinphoneUtils.setImagePictureFromUri(view.getContext(),contactPicture,contact.getPhotoUri(),contact.getThumbnailUri());
|
||||
view.findViewById(R.id.add_contact).setVisibility(View.GONE);
|
||||
addToContacts.setVisibility(View.INVISIBLE);
|
||||
} else {
|
||||
contactPicture.setImageResource(R.drawable.avatar);
|
||||
view.findViewById(R.id.add_contact).setVisibility(View.VISIBLE);
|
||||
addToContacts.setVisibility(View.VISIBLE);
|
||||
}
|
||||
} catch (LinphoneCoreException e) {
|
||||
e.printStackTrace();
|
||||
|
|
Loading…
Reference in a new issue