question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot display from layout

See original GitHub issue

hey yo! this is my function for show the dialog custom view

  CookieBar.build(getActivity())
                .setCustomView(R.layout.dialog_settings)
                .setCustomViewInitializer(new CookieBar.CustomViewInitializer() {
                    @Override
                    public void initView(View view) {
                        Button logout = (Button) view.findViewById(R.id.logoutButton);

                        View.OnClickListener listener = new View.OnClickListener() {
                            @Override
                            public void onClick(View v) {
                                Button button = (Button) v;
//                                Utils.showLongSnackBar(getActivity(), "berhasil");
                                button.setText("checked");
                            }
                        };

                        logout.setOnClickListener(listener);
                    }

                })
                .setAction("Tutup", new OnActionClickListener() {
                    @Override
                    public void onClick() {
                        CookieBar.dismiss(getActivity());
                    }
                })
                .setTitle("Pengaturan Akun")
                .setMessage("Pilih Aksi")
                .setEnableAutoDismiss(false)
                .setSwipeToDismiss(true)
                .setCookiePosition(CookieBar.BOTTOM)
                .show();

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
AviranAbadycommented, Dec 12, 2020

@rashgaroth you need to create all the other required views, you can keep them hidden if you dont neet them

0reactions
morgankohcommented, Apr 21, 2021

I don’t know why, but after figuring out for sometime.

Apparently, if you want to use customView. You’ll need to set the rootView in your customView to id. How I figured out was that, the demo app that is provided has no issues with customView.

But, as soon I remove the rootView ID. It just freaks out.

android:id="@+id/cookie"
Read more comments on GitHub >

github_iconTop Results From Across the Web

Drawing elements do not show within a layout viewport in ...
Issue: When viewing a layout in AutoCAD, some or all elements shown in model space do not display within one or more viewports....
Read more >
Scale and layout doesn't work in windows 10
After changing the display to the second screen only, scale and layout disappear and I can not change the size of my icons...
Read more >
Android layout: Cannot see the layout view - Stack Overflow
I just installed Android Studio 3 Preview Canary 6. I could not get a preview of the xml layout in activity_main.xml because of...
Read more >
Problem: Layout view does not show any of the data in the map
To clear the cache, navigate to Customize > ArcMap Options > Display Cache, and click the Clear Cache button. Note: If clearing the...
Read more >
Different Ways to Fix "Android Studio Does not Show Layout ...
After trying all the methods, and still not able to see the Layout Preview, try to rebuild your project.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found