iammert / animatedtablayout Goto Github PK
View Code? Open in Web Editor NEWYet another android tab layout
Yet another android tab layout
The tabs are in rectangler shape instead of pill like shape on Android 11 but looks as expected on Android 7.
I was able to solve the issue by downloading Source Code and simply importing as a new module, that's it. The Pill shape is back.
It is so strange that using implementation 'com.github.iammert:AnimatedTabLayout:0.1'
gives my rectangular shaped tabs but importing souce code as module and using implementation project(':ModuleName')
gives me pill shaped tabs.
Caused by: android.content.res.Resources$NotFoundException:
at android.content.res.Resources.loadDrawableForCookie (Resources.java:2640)
at android.content.res.Resources.loadDrawable (Resources.java:2540)
at android.content.res.Resources.getDrawable (Resources.java:806)
at android.content.Context.getDrawable (Context.java:458)
at android.support.v4.content.ContextCompat.getDrawable (ContextCompat.java:358)
at com.iammert.library.AnimatedTabResourceParser.getDrawable (AnimatedTabResourceParser.kt:69)
at com.iammert.library.AnimatedTabResourceParser.parseSingleTab (AnimatedTabResourceParser.kt:57)
at com.iammert.library.AnimatedTabResourceParser.parse (AnimatedTabResourceParser.kt:25)
at com.iammert.library.AnimatedTabLayout.init (AnimatedTabLayout.kt:52)
at com.iammert.library.AnimatedTabLayout.<init> (AnimatedTabLayout.kt:35)
It would be great to have an XML attribute where you would be able to set default
inactiveColor
& activeColor
to its child views.
That could be of course overriden and or changed at runtime (maybe the 2.0)
Hi,
Can we also add text along with Images.
Text can be either left to image or right to image.
If this is implemented, then it will very helpful.
Thanks.
Hardware:
HP Laptop
Core i7-7700K
8GB Ram|
Windows 10 64bit
I have over 20+ big projects on the machine and non of it hangs the studio except when I add your library, and start adding AnimatedTabLayout in the xml file. The Studio hangs and never recovers. Tried with creating new projects still same. Not sure if the bug is from IDE or your library. Did anyone else report something similar?
I get this Inflate Exception on the Animated Tab Layout xml. how can i fix it?
I'm trying to use this in Java.
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3184)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3292)
at android.app.ActivityThread.-wrap12(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1881)
at android.os.Handler.dispatchMessage(Handler.java:108)
at android.os.Looper.loop(Looper.java:166)
at android.app.ActivityThread.main(ActivityThread.java:7415)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
Caused by: android.view.InflateException: Binary XML file line #88: Binary XML file line #88: Error inflating class com.iammert.library.AnimatedTabLayout
Caused by: android.view.InflateException: Binary XML file line #88: Error inflating class com.iammert.library.AnimatedTabLayout
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:334)
at android.view.LayoutInflater.createView(LayoutInflater.java:658)
at uk.co.chrisjenx.calligraphy.CalligraphyLayoutInflater.createCustomViewInternal(CalligraphyLayoutInflater.java:211)
at uk.co.chrisjenx.calligraphy.CalligraphyLayoutInflater.access$000(CalligraphyLayoutInflater.java:20)
at uk.co.chrisjenx.calligraphy.CalligraphyLayoutInflater$PrivateWrapperFactory2.onCreateView(CalligraphyLayoutInflater.java:302)
at android.view.LayoutInflater$FactoryMerger.onCreateView(LayoutInflater.java:186)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:791)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:741)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:874)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:835)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:877)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:835)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:877)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:835)
at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
at uk.co.chrisjenx.calligraphy.CalligraphyLayoutInflater.inflate(CalligraphyLayoutInflater.java:60)
at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:287)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139)
at info.touchstudio.iot.Activities.LeaderBoardActivity.onCreate(LeaderBoardActivity.java:15)
at android.app.Activity.performCreate(Activity.java:7373)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1218)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3137)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3292)
at android.app.ActivityThread.-wrap12(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1881)
at android.os.Handler.dispatchMessage(Handler.java:108)
at android.os.Looper.loop(Looper.java:166)
at android.app.ActivityThread.main(ActivityThread.java:7415)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x0
at android.content.res.ResourcesImpl.getValue(ResourcesImpl.java:270)
at android.content.res.Resources.getDimension(Resources.java:720)
at com.iammert.library.AnimatedTabResourceParser.getDimen(AnimatedTabResourceParser.kt:73)
at com.iammert.library.AnimatedTabResourceParser.parseTabsConfig(AnimatedTabResourceParser.kt:40)
at com.iammert.library.AnimatedTabResourceParser.parse(AnimatedTabResourceParser.kt:23)
at com.iammert.library.AnimatedTabLayout.init(AnimatedTabLayout.kt:52)
at com.iammert.library.AnimatedTabLayout.<init>(AnimatedTabLayout.kt:35)
... 34 more```
Cool library!
Would have been nice to make the tabs more material like, customizable shadow, onClick ripple effects etc! Just a tip ๐
I don't want to provide a tabs xml as I want to add them later.
Hello! Thank you very much for the great library. It would be great if you will add badges in future updates - it will help to notify users about a new message, for example.
Hi @iammert,
I know this is not the right place to open this, but maybe it get's your attention:
Your library is so awesome, but has many issues:
https://github.com/iammert/MaterialIntroView
Would you maybe update it (dependencies and code) so it works fine again?
Some missing features:
Would be really awesome, if you could give your project a little bit of time. So many people are using it and it just looks so awesome!
Thank you!
Can we use it Vertically ?
Thanks for this great lib.
Can i use this into java?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.