Prevent contact name to overlap linphone icon when name is too long
This commit is contained in:
parent
e37cb9d6f6
commit
27248c3466
1 changed files with 28 additions and 26 deletions
|
@ -72,32 +72,6 @@
|
|||
android:paddingLeft="5dp"
|
||||
android:paddingRight="5dp" />
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_toRightOf="@id/avatar_layout"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toLeftOf="@id/delete"
|
||||
android:layout_marginLeft="10dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/name"
|
||||
android:lines="1"
|
||||
style="@style/font6"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/contactOrganization"
|
||||
style="@style/font9"
|
||||
android:singleLine="true"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"/>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/friendStatus"
|
||||
android:visibility="gone"
|
||||
|
@ -122,6 +96,34 @@
|
|||
android:scaleType="centerInside"
|
||||
android:src="@drawable/linphone_user" />
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_toRightOf="@id/avatar_layout"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toLeftOf="@id/friendLinphone"
|
||||
android:layout_marginLeft="10dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/name"
|
||||
style="@style/font6"
|
||||
android:lines="1"
|
||||
android:ellipsize="end"
|
||||
android:singleLine="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/contactOrganization"
|
||||
style="@style/font9"
|
||||
android:singleLine="true"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"/>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
</LinearLayout>
|
Loading…
Reference in a new issue