i created a tab view with three pages in one of the pages i added a list view in that view i added a text view which should move to another activity when clicked but when i create the intent i get a n error and the id of the onClick is never used the error java.lang.IllegalStateException: Could not find a method (View)
this is the code:
package com.halbader.runescape;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.app.AppCompatActivity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
package com.halbader.runescape;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.app.AppCompatActivity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
public class QuestsPage extends Fragment {
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.questspage, container, false);
return rootView;
}
public void drSlayerQ(View view){
Intent qIntent = new Intent(this, DragonSlayerQuest.class);
QuestsPage.this.startActivity(qIntent);
}
}