2 개의 TextView가 있습니다. 첫 번째는 centred
이고 두 번째는 부모의 오른쪽 가장자리에 맞춰 정렬됩니다.약간의 움직임을 보이는 TextView
Second TextView
의 텍스트를 업데이트하면 first TextView
이 약간 왼쪽으로 이동 한 다음 가운데에서 원래 위치로 돌아갑니다.
내가이 당신의 외부 RelativeLayout의 크기가 아이의 크기에 따라 달라집니다 때문입니다 내 .XML 파일
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/MC_title"
android:layout_width="wrap_content"
android:layout_height="160dp"
android:layout_centerInParent="true"/>
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:layout_marginRight="16dp"
android:layout_marginTop="22dp" />
</RelativeLayout>
XML의 모든 컨텐츠를 업데이트 할 수 있습니까? 최소한 첫 번째 TextView에서는 뭔가 빠져있는 것처럼 보입니다. 감사. – fasteque