마키가 textview에서 작동하지 않습니다. 두 개의 버튼 사이에 TableLoyout 안에 textview를 배치했습니다. 그리고 나는 stretchable 칼럼으로 textview를 만든다. 여기 내 XML 코드입니다. 나는 실수를 이해할 수 없다.android marquee not working
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:background="#e0bf64" android:orientation="vertical">
<TableLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:stretchColumns="2"
android:background="#f2cd6d">
<TableRow>
<Button
android:id="@+id/btn_prv"
android:text="@string/prv"
android:textSize="16sp"
android:layout_column="1"
android:layout_width="100dip"
android:background="@drawable/prev_btn_re"
android:paddingLeft="0sp"
android:paddingTop="0sp"
/>
<TextView
android:id="@+id/head_title"
android:layout_width="125dip"
android:gravity="center"
android:paddingLeft="5sp"
android:paddingTop="10dip"
android:paddingRight="0sp"
android:background="#f2cd6d"
android:textSize="16sp"
android:textColor="@color/black"
android:marqueeRepeatLimit="marquee_forever"
android:lines="1"
android:ellipsize="marquee"
android:focusable="true"
android:focusableInTouchMode="true"
android:freezesText="true"
android:scrollHorizontally="true"
android:text="marquee text"
/>
<Button
android:id="@+id/btn_next"
android:text="@string/next"
android:textSize="16sp"
android:gravity="right"
android:layout_width="100dip"
android:background="@drawable/next_btn_re"
android:paddingRight="10sp"
android:paddingTop="5sp"
/>
</TableRow>
</TableLayout>
</LinearLayout>
아무리 말해도 작동하지 않는 이유는 무엇입니까?
마키가 작동하지 않습니다. 버그 또는 기능? –
버그가 없습니다. 기능이 작동하지 않을 수 있습니다. 또는 XML에 약간의 실수가있을 수 있습니다. 그걸 알아 내려고. – Srini2k6