0

動くテキストを作成する方法を埋め込む方法はありますか [ croos text ]

たとえば、 meida o\player を開くと、ステータスバーで音楽タイトルがボタンの下に移動することがわかります。

大きなテキストを表示するのに適しています。

これどうやってするの 。

4

3 に答える 3

1

TextView にいくつかの属性を追加する必要があります。

        android:scrollHorizontally="true"
        android:scrollbars="horizontal"
        android:singleLine="true"
        android:cursorVisible="false"
        android:ellipsize="marquee"
        android:focusableInTouchMode="true"
        android:marqueeRepeatLimit ="marquee_forever"

次の行を追加します。

    mTextView.setMovementMethod(new ScrollingMovementMethod());
于 2012-04-29T20:28:47.110 に答える
1

テキストをアニメーション化したいですか?モーションを作成する場合は、アニメーション リソースをより具体的に翻訳してみてください。

http://developer.android.com/guide/topics/resources/animation-resource.html#translate-element

于 2012-04-29T18:22:15.907 に答える
0

Adding the TextView to a RelativeLayout, and adjusting the topMargin and leftMargin properties of its RelativeLayout.LayoutParams.

于 2012-04-29T18:04:11.953 に答える