Card View Click on Card Move To New Activity

后端 未结 6 1730
死守一世寂寞
死守一世寂寞 2021-02-07 03:39

I am new to Android programming and was working on a card layout. I was wondering, how do I make it clickable?

android:clickable=\"true\"
android:foreground=\"?         


        
6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-07 04:32

    import android.view.View;

    Intent intent = new Intent(view.getContext(),YourActivity.class); view.getContext().startActivity(intent);

提交回复
热议问题