0
私はクリッカブルtextviewsのリストを望むよ
のリストを作成するにはどのようにこれは私がはTextviews
クリック可能な項目のすべてのリストをご希望
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:id="@+id/marque_scrolling_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:ellipsize="marquee"
android:marqueeRepeatLimit="marquee_forever"
android:padding="16dp"
android:scrollHorizontally="true"
android:singleLine="true"
android:text="Create a Marquee (Scrolling Text) in Android Using TextView. Android Marquee (Scrolling Text) Tutorial with Example"
android:textSize="24sp" />
</LinearLayout>
を持っているxmlですこれは私が「コードですm:
TextView marque1 = (TextView) this.findViewById(R.id.marque_scrolling_text);
marque1.setSelected(true);
marque1.setOnClickListener(new View.OnClickListener()
{
@Override
public void onClick(View v)
{
System.out.println("dhgjgf jfgsfjhsgfsjfgdfjh");
}
});
これは可能ですか?
アンドロイドのListViewウィジェットを使用https://developer.android.com/guide/topics/ui/layout/listview.html – USKMobility
しかし、テキストの色を変更するのに苦労しているListview +でキャンバスマーキー。 –
なぜマーキーをリストビューで使用できないのですか?そして、あなたはテキストの色を変えることでどんな問題を抱えていますか? –