gabrielemariotti / cardslib

Android Library to build a UI Card
4.66k stars 1.19k forks source link

setupInnerViewElements method doesn't call #554

Open chumchat opened 8 years ago

chumchat commented 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: ");
                }
            });
        }
    }