動くテキストを作成する方法を埋め込む方法はありますか [ croos text ]
たとえば、 meida o\player を開くと、ステータスバーで音楽タイトルがボタンの下に移動することがわかります。
大きなテキストを表示するのに適しています。
これどうやってするの 。
動くテキストを作成する方法を埋め込む方法はありますか [ croos text ]
たとえば、 meida o\player を開くと、ステータスバーで音楽タイトルがボタンの下に移動することがわかります。
大きなテキストを表示するのに適しています。
これどうやってするの 。
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());
テキストをアニメーション化したいですか?モーションを作成する場合は、アニメーション リソースをより具体的に翻訳してみてください。
http://developer.android.com/guide/topics/resources/animation-resource.html#translate-element
Adding the TextView to a RelativeLayout, and adjusting the topMargin and leftMargin properties of its RelativeLayout.LayoutParams.