Closed Mr-Ramzan closed 5 years ago
I understand your frustrations with it not showing in designer.
Do you have an example project I can test this out on?
Are there any sort of errors within designer that says the component can't be instantiated?
I've messed around with issues like this before and it can be extremely difficult to fix in designer because there is no "knobs" or adjustable parameters to fix it.
But, also try to clear cache in Android Studio, restart your machine and Android studio.
It may do nothing and all, but I just want to make sure that there's not some relic that is causing issues.
I really appreciate your quick response. I ha e tried makin different projects but no use even the sample provided by you do not show up on designer preview.
On Sat, Jul 13, 2019, 4:56 PM Addison Elliott notifications@github.com wrote:
But, also try to clear cache in Android Studio, restart your machine and Android studio.
It may do nothing and all, but I just want to make sure that there's not some relic that is causing issues.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/addisonElliott/SegmentedButton/issues/15?email_source=notifications&email_token=AIZ7YUF6VEUCWJGFGWZ3LUTP7G7GVA5CNFSM4IC2T7WKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZ3QI2A#issuecomment-511116392, or mute the thread https://github.com/notifications/unsubscribe-auth/AIZ7YUEVI5YEYJ6QIVSA2BDP7G7GVANCNFSM4IC2T7WA .
As many people suggest on StackOverflow changing SDK version or changing Theme.App.......... to Base.Theme.App.... may work... no use...
Hmm, very odd. The sample project shows up on designer for me (I think). Let me do a bit of experimentation and get back to you. Maybe the latest Android SDK is causing issues or something?
I've discovered that the sample project is not displaying correctly for me either. I'm assuming some sort of change occurred in Android Studio to cause this because it did work at one point.
The exception I receive is: java.lang.ClassNotFoundException: codetail.graphics.drawables.LollipopDrawable
. I've been debugging it but haven't had much success. Will keep my progress posted here.
Thank You Mr.Addison I Really appreciate.
No problem. I'll start with I can't really get you an ETA for when this will be completed. It's a very odd and specific bug since it's a problem with Android Studio itself.
Here's the line of code that "offends" Android Studio: https://github.com/addisonElliott/SegmentedButton/blob/master/library/src/main/java/com/addisonelliott/segmentedbutton/SegmentedButton.java#L1308
Disabling that will make it work. I have no idea why it has a problem with this. I might even go the route of creating a brand new RippleDrawable
class with a new package name to see if that's causing the issue.
I've debugged this for quite awhile and I have not the slightest idea what is going on. I submitted a bug report to Google and we'll see what happens.
Was able to resolve this with a workaround, should be fixed in 3.1.5
Really Appreciate it as it works like a charm. Admire your work Thank you
I have implemented this library in my project no doubt it is awesome. But the issue I am facing is the preview of the layout does not show up on android studio. Below is the preview while segmented group Code is commented. And below is preview while not commented: It does not cause any error but really slows down the designing process. Kindly solve the issue Cheers.