Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setupInnerViewElements method doesn't call #554

Open
chumchat opened this issue Sep 23, 2016 · 0 comments
Open

setupInnerViewElements method doesn't call #554

chumchat opened this issue Sep 23, 2016 · 0 comments

Comments

@chumchat
Copy link

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: ");
                }
            });
        }
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant