ボタンをクリックしたときと同じように、テキストフィールドをクリックしたときにユーザーに感じさせたいのですが、ボタンを離した後、非常に短い時間点滅してオレンジ色になり、再び最初の色に変わります。クリックするとうまくいきますが、色の点滅は表示されません。
レイアウトファイル
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/button5"
android:layout_below="@+id/button5"
android:layout_marginLeft="35dp"
android:layout_marginTop="28dp"
android:clickable="true"
android:onClick="onClick"
android:text="Click Me"
android:textAppearance="?android:attr/textAppearanceLarge" />
mainActivity コード
textV.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View view) {
startActivity(new Intent("com.DRMS.help"));
}
});