As I'm adding a cast button which only supports classes that extend the ActivityFragment class, I found it difficult since the specific class I'm interested in already extends another LinearLayout class. To avoid creating a custom button, I did the following workaround,
public class metaView extends LinearLayout {
private FragmentActivity fragmentActivity;
private void initViews() {
fragmentActivity = new FragmentActivity(){
@Override
protected void onCreate(Bundle savedInstanceState){
//Create Button Discovery...
}
};
}
}
However, it does not seem like the overriden method onCreate ever gets called. Does anyone see the problem with this alternative? or would this just not work?
Thanks in advance!