0
<?xml version="1.0" encoding="utf-8"?> 
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
     android:id="@+id/listitem_contact" 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:orientation="horizontal" 
     android:paddingBottom="14dp" 
     android:paddingLeft="8dp" 
     android:paddingRight="8dp" 
     android:paddingTop="14dp"> 
     <TextView 
      android:id="@+id/textview1" 
      android:layout_width="0dp" 
      android:layout_height="match_parent" 
      android:layout_marginRight="10dp" 
      android:layout_weight="1" 
      android:text="abcdefghijklm, Miss abcdefghi" 
      android:gravity="left|center_vertical"/> 
     <ImageView 
      android:id="@+id/imageview1" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      android:layout_marginRight="10dp" 
      android:src="@drawable/ic_map" 
      android:background="@drawable/list_item_image_color"/> 
     <ImageView 
      android:id="@+id/imageview2" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      android:layout_marginRight="10dp" 
      android:src="@drawable/ic_textmessage" 
      android:background="@drawable/list_item_image_color"/> 
     <ImageView 
      android:id="@+id/imageview3" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      android:src="@drawable/ic_phone" 
      android:background="@drawable/list_item_image_color"/> 
    </LinearLayout> 

여기에 텍스트가 abcdefghijklm 인 경우 해당 시간의 Textview에서 abcdefghi 텍스트 cutssOff LinearLayout 만 사용하고 있습니다.그때 텍스트가 더 커지면 텍스트가 차단됩니까?

어디서 변경해야 할 필요가 있습니까?

+0

'android : layout_weight'을 제거하고 확인하십시오. – Aniruddha

+0

예. 그렇지만 모든 화면에서 태블릿 및 모든 기기처럼 작동하지 않습니다. – Chaow

+0

화면이 어떻게 나타나고 현재 진행되고 있는지 스크린 샷을 표시 하시겠습니까? – Aniruddha

답변

0

세로 방향 및 wrap_content를 시도해보십시오.

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:id="@+id/listitem_contact" 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    android:orientation="vertical" 
    android:paddingBottom="14dp" 
    android:paddingLeft="8dp" 
    android:paddingRight="8dp" 
    android:paddingTop="14dp"> 
    <TextView 
     android:id="@+id/textview1" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:layout_marginRight="10dp" 
     android:layout_weight="1" 
     android:text="abcdefghijklm, Miss abcdefghi" 
     android:gravity="left|center_vertical"/> 
    <ImageView 
     android:id="@+id/imageview1" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:layout_marginRight="10dp" 
     android:src="@drawable/ic_map" 
     android:background="@drawable/list_item_image_color"/> 
    <ImageView 
     android:id="@+id/imageview2" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:layout_marginRight="10dp" 
     android:src="@drawable/ic_textmessage" 
     android:background="@drawable/list_item_image_color"/> 
    <ImageView 
     android:id="@+id/imageview3" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:src="@drawable/ic_phone" 
     android:background="@drawable/list_item_image_color"/> 
</LinearLayout> 
+0

이것은 Listview의 행이며 layout_width = "wrap_content"및 weight = 1이 아니며 horizonatl에 있어야합니다 – Chaow

+0

누구나이 레이아웃에 대한 진행 방법을 알려주십시오. – Chaow

+0

원하는 이미지를 게시 할 수 있습니다. – Crawler