-
Notifications
You must be signed in to change notification settings - Fork 39
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
Layout In which this group is used does not show a preview #15
Comments
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 ***@***.***> 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
<#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... |
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: |
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 |
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. |
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.
The text was updated successfully, but these errors were encountered: