XML : Error inflating class FontTextView by Yalantis

Im trying to use an Android component I found on Github. Using the sample project inside the repository I integrated the component into my app but everytime I run it I get the error: android.view.InflateException: Binary XML file line #8: Error inflating class com.yalantis.flip.sample.views.FontTextView. This FontTextView has been used in the sample project which runs just fine. Im not sure what im doing wrong as I have also copied and pasted their layouts. I thought my images were the problem but I used the original pictures used in the sample application and it still crashed.

Here is the text from my logcat:

  `android.view.InflateException: Binary XML file line #8: Error inflating class com.yalantis.flip.sample.views.FontTextView                                                                      at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764)                                                                      at android.view.LayoutInflater.rInflate(LayoutInflater.java:813)                                                                      at android.view.LayoutInflater.inflate(LayoutInflater.java:511)                                                                      at android.view.LayoutInflater.inflate(LayoutInflater.java:415)                                                                      at cc.tungait.voiture.activities.MainActivity$CarsAdapter.getPage(MainActivity.java:117)                                                                      at com.yalantis.flipviewpager.adapter.BaseFlipAdapter$MergeAdapter.getView(BaseFlipAdapter.java:124)                                                                      at com.yalantis.flipviewpager.view.FlipViewPager.setAdapter(FlipViewPager.java:468)                                                                      at com.yalantis.flipviewpager.adapter.BaseFlipAdapter.getView(BaseFlipAdapter.java:72)`    

No comments:

Post a Comment