나는 두 가로로 나란히, 카테고리 + 제품 카테고리의 nummber와 같은 두 TextViews
있습니다. 코드는 다음과 같다 :첫 번째 TextView 두 번째 오버랩됩니다, 안드로이드
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="15dp"
android:paddingBottom ="10dp"
android:background="@color/navigation_background_sub">
<TextView
android:id="@+id/category_name_second"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="22sp"
android:textColor="@color/ebuy_color_navigation_name" />
<TextView
android:layout_toRightOf="@+id/category_name_second"
android:paddingLeft="7dp"
android:id="@+id/category_number_second"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="22sp"
android:textColor="@color/ebuy_color_navigation_number" />
</RelativeLayout>
이제 문제는 첫 번째 TextView
의 텍스트가 긴로되면, 두 번째로 떠났다 공간이 조금로하고 텍스트를 두 광석 이상의 라인에 표시 할 것입니다. 그것이 얼마나
: (1
4
)
노트북 (34)
컴퓨터 소프트웨어 난 그냥 아래와 같이 설명하려고 있도록
나는 사진을 게시 할 평판이 없습니다
어떻게해야합니까 :
랩톱 (34)
컴퓨터 (14)
소프트웨어
두 TextViews에 동일한 ID를 사용하고 있습니다. 그것들을 독특하게 만들면 작동 할 것입니다. – hoomi
그는 동일한 ID를 사용하지 않습니다.이 wouldnt 심지어 가능합니다 – eldjon
'layout_toRightOf' 대신에'layout_toEndOf'을 시도 했습니까? – mbmc