Open chumchat opened 8 years ago
Here setupInnerViewElements method doesn't call in this method, clicklistner also doesn't call in this code. suggest me the solution ASAP.
public class CustomHeaderInnerCard extends CardHeader { public CustomHeaderInnerCard(Context context) { super(context, R.layout.carddemo_example_inner_header); } @Override public void setupInnerViewElements(ViewGroup parent, View view) { Log.e(TAG, "setupInnerViewElements: "); if (view != null) { TextView t1 = (TextView) view.findViewById(R.id.text_example1); buttonLayout = (RelativeLayout) view.findViewById(R.id.button); Log.e(TAG, "setupInnerViewElements: "); } buttonLayout.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Log.e(TAG, "onClick: "); } }); } }
Here setupInnerViewElements method doesn't call in this method, clicklistner also doesn't call in this code. suggest me the solution ASAP.