저는 이상한 문제가 있습니다. 단추의 텍스트가 특정 동작에 따라 아래쪽으로 이동하는 이러한 단추가 있습니다. 예를 들어 선택 항목이있는 회 전자가 있고 선택 항목 중 하나는 일부 단추를 보이지 않게하고 다른 단추는 보이도록 만듭니다. 이 버튼을 선택하면 보이는 모든 버튼의 텍스트가 아래쪽으로 이동합니다. 그 밖의 것은 이동되지 않고 버튼에있는 텍스트 만 나타납니다. 나는이 1.5 시도한 및 괜찮아, 텍스트가 이동됩니다 있지만 2.1 문제가 있고 정말 그것을 알아낼 수 없습니다. 어떤 아이디어 나 도움도 좋을 것입니다. 감사.버튼 텍스트 시프트 문제가 있습니다.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TableLayout android:id="@+id/testpracHeader"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true">
<!-- android:background="#ff0000"-->
<TableRow>
<Spinner android:id="@+id/testprac_menu"
android:layout_width="200px"
android:layout_height="wrap_content"></Spinner>
<View android:id="@+id/header_space_buffer"
android:layout_width="40px"
android:layout_height="30px"
android:gravity="center"></View>
<Button android:text="New"
android:id="@+id/newInterval"
android:layout_width="80px"
android:layout_height="wrap_content"></Button>
</TableRow>
</TableLayout>
<TableLayout android:id="@+id/bottomStruct"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true">
<TableRow>
<Button android:layout_width="80px"
android:text="Replay"
android:id="@+id/replay"
android:layout_height="wrap_content"></Button>
<Button android:id="@+id/playInterval"
android:text="Play"
android:layout_width="160px"
android:layout_height="wrap_content"></Button>
<Button android:text="Submit"
android:id="@+id/submit"
android:layout_width="80px"
android:layout_height="wrap_content"></Button>
</TableRow>
</TableLayout>
</RelativeLayout>
내가 새로운 기능 testprac
회, 재생을 사용하고 제출 버튼이 보이지 않는 가서 플레이 버튼 (내가 원하는입니다) 표시됩니다 : 여기
의심되는 XML을 게시해야합니다. –