首页 > 代码库 > Android - 监听Activity点击无效

Android - 监听Activity点击无效

监听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, 即表示当前界面.





Android - 监听Activity点击无效