监听Activity点击无效
本文地址: http://blog.csdn.net/caroline_wendy
Activity须要先在Manifest注冊,才干在app中使用;
Manifest:
<activity android:name="me.chunyu.tvdoctor.healthvideo.VideoPlayingActivity" android:label="@string/app_name" />
在内部库的G7Anno中:
@ClickResponder() NV.o(this, VideoPlayingActivity.class); @ContentView(id = R.layout.activity_healthvideo) public class VideoPlayingActivity extends UActivity { private final static String TAG = "VideoPlayingActivity"; @Override public void onContinueCreate(Bundle savedInstanceState) { Log.i("DEBUG: " + TAG, "跳转【健康视频】模块成功。"); super.onContinueCreate(savedInstanceState); } }
使用@ClickResponder(id), 表示函数, 传入參数View, 即表示当前界面.
时间: 2024-10-14 07:52:46