{sorry for spelling title wrong, kept getting “is it a complete sentence” error}.
Hello,
So after getting a TweetTimelineRecyclerViewAdapter set on my RecyclerView and displaying a list of Tweets, I have been trying to create a custom TweetTimelineRecyclerViewAdapter so that when a user taps on a Tweet, they are not sent to a webview containing the Tweet, as is the default behavior currently. I have tried to extend TweetTimelineRecyclerViewAdapter as so:
public class MyCustomAdapter extends TweetTimelineRecyclerViewAdapter{
public MyCustomAdapter(Context context, Timeline<Tweet> timeline) {
super(context, timeline);
}
@Override
public TweetTimelineRecyclerViewAdapter.TweetViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
return super.onCreateViewHolder(parent, viewType);
}
the other override methods, etc..
}
However the “TweetViewHolder” inside of public TweetTimelineRecyclerViewAdapter.TweetViewHolder onCreateViewHolder
immediately highlights red and throws the Error:
'com.twitter.sdk.android.tweetui.TweetTimelineRecyclerViewAdapter.TweetViewHolder' is not public in 'com.twitter.sdk.android.tweetui.TweetTimelineRecyclerViewAdapter'. Cannot be accessed from outside package
My Question is:
-
Can the TweetTimelineRecyclerViewAdapter be extended and if so what am I doing wrong in my syntax to extend it?
-
Is it possible in TweetTimelineRecyclerViewAdapter to change the default behavior of opening up a webview whenever
a tweet in the list is clicked?
Any help is greatly appreciated.