문제

다른 색상의 이탈리아 텍스트 뷰 3 개를 사용하고 있습니다

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
            android:layout_width="fill_parent" android:layout_height="wrap_content"
            android:orientation="horizontal" android:id="@+id/submittedBy" android:paddingTop="10dip">


            <ImageView android:id="@+id/subByImg"
                android:layout_width="wrap_content" android:layout_height="wrap_content"
                android:gravity="left" android:layout_gravity="bottom" android:src="@drawable/submitted_by_arrow"/>
            <TextView android:id="@+id/submitLabel"
                android:layout_width="wrap_content" android:layout_height="wrap_content"
                android:gravity="left" android:text="Submitted by"  android:textStyle="italic"
                android:textSize="12sp" android:textColor="@color/gray" android:paddingLeft="5dip"/>
            <TextView android:id="@+id/submitName" android:textStyle="italic"
                android:layout_width="wrap_content" android:layout_height="wrap_content"
                android:textSize="12sp" android:textColor="@color/maroon_dark" android:paddingLeft="10dip"/>
                <TextView android:id="@+id/submitByDate" android:textStyle="italic"
                android:layout_width="wrap_content" android:layout_height="wrap_content"
                android:gravity="left"
                android:textSize="12sp" android:textColor="@color/gray" android:paddingLeft="10dip"/>
            </LinearLayout>

나는 모든 마지막 캐릭터가 중간에 표시되는 특별한 이름을 제대로 표시하지 않는 것이 "Dan Buckland"이고 마지막 캐릭터가 "Dan Bucklano"처럼 보입니다.

또한 pls를 알려주세요

Alt Text http://www.freeimagehosting.net/uploads/953d573113.jpg

도움이 되었습니까?

해결책

이탤릭체를 사용할 때 경계 상자가 올바르게 계산되지 않은 것 같습니다.

요소에 Paddingleft = 6, Paddingright = 6을 사용해 보셨습니까? (겹칠 가능성이 적습니다).

TextView의 여러 스타일은 참조하십시오 TextView 내부에 여러 스타일이있을 수 있습니까?

다른 팁

나는 똑같은 문제가 있었다. 나는 기울임 꼴로 필요한 줄의 끝에 공간을 추가하여 주위를 돌았습니다.

가장 장기적인 수정 솔루션은 아니지만 저에게 효과적이었습니다.

당신이 사용할 수있는 &#160; string.xml 파일의 텍스트와 함께.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top