robotamiee / android-nicetab Goto Github PK
View Code? Open in Web Editor NEWA nice tab to navigate between the different pages of a ViewPager, supports badge, blur, and cross fade effect.
License: Other
A nice tab to navigate between the different pages of a ViewPager, supports badge, blur, and cross fade effect.
License: Other
java.lang.NullPointerException
at com.dreamm.Milispace.view.slidingtab.StartNiceTab.clearBadge(StartNiceTab.java:177)
at com.dreamm.Milispace.view.slidingtab.StartNiceTab.setBadge(StartNiceTab.java:160)
public void setBadgeActivity(int badgeInbox) {
clearBadge();
if (badgeInbox > 0) {
mNiceTabLayout.setBadge(2, String.valueOf(badgeInbox));
}
}
private void clearBadge() {
mNiceTabLayout.clearBadge();
}
public void setBadge(int badgeInbox, int badgeActivity) {
clearBadge();
if (badgeInbox > 0) {
mNiceTabLayout.setBadge(2, String.valueOf(badgeInbox));
}
if (badgeActivity > 0) {
mNiceTabLayout.setBadge(3, String.valueOf(badgeActivity));
}
}
My account was compromised, as a result many spam issues got created across multiple repos. I am deleting all such issues. Please check my tweet: https://x.com/arghyac35/status/1729721954909684064?s=20
Process: com.example.milispace.milispace, PID: 13101
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.milispace.milispace/com.dreamm.Milispace.view.slidemenu.MilispaceSlideMenu}: android.view.InflateException: Binary XML file line #9: Error inflating class me.amiee.nicetab.NiceTabLayout
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2525)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2617)
at android.app.ActivityThread.access$800(ActivityThread.java:182)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1474)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:218)
at android.app.ActivityThread.main(ActivityThread.java:5657)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:990)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:785)
Caused by: android.view.InflateException: Binary XML file line #9: Error inflating class me.amiee.nicetab.NiceTabLayout
at android.view.LayoutInflater.createView(LayoutInflater.java:633)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
at android.view.LayoutInflater.inflate(LayoutInflater.java:365)
at com.dreamm.Milispace.view.slidingtab.StartNiceTab.onCreateView(StartNiceTab.java:46)
at android.support.v4.app.Fragment.performCreateView(Fragment.java:1974)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1252)
at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:742)
at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1617)
at android.support.v4.app.FragmentController.execPendingActions(FragmentController.java:339)
at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:602)
at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1244)
at android.app.Activity.performStart(Activity.java:6151)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2482)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2617)
at android.app.ActivityThread.access$800(ActivityThread.java:182)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1474)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:218)
at android.app.ActivityThread.main(ActivityThread.java:5657)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:990)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:785)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:288)
at android.view.LayoutInflater.createView(LayoutInflater.java:607)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
at android.view.LayoutInflater.inflate(LayoutInflater.java:365)
at com.dreamm.Milispace.view.slidingtab.StartNiceTab.onCreateView(StartNiceTab.java:46)
at android.support.v4.app.Fragment.performCreateView(Fragment.java:1974)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1252)
at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:742)
at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1617)
at android.support.v4.app.FragmentController.execPendingActions(FragmentController.java:339)
at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:602)
at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1244)
at android.app.Activity.performStart(Activity.java:6151)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2482)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2617)
at android.app.ActivityThread.access$800(ActivityThread.java:182)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1474)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:218)
at android.app.ActivityThread.main(ActivityThread.java:5657)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:990)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:785)
Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v8/renderscript/RenderScript;
at me.amiee.nicetab.NiceTabStrip.initRenderScript(NiceTabStrip.java:544)
at me.amiee.nicetab.NiceTabStrip.(NiceTabStrip.java:502)
at me.amiee.nicetab.NiceTabLayout.(NiceTabLayout.java:194)
at me.amiee.nicetab.NiceTabLayout.(NiceTabLayout.java:133)
at java.lang.reflect.Constructor.newInstance(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:288)
at android.view.LayoutInflater.createView(LayoutInflater.java:607)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
at android.view.LayoutInflater.inflate(LayoutInflater.java:365)
at com.dreamm.Milispace.view.slidingtab.StartNiceTab.onCreateView(StartNiceTab.java:46)
at android.support.v4.app.Fragment.performCreateView(Fragment.java:1974)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1252)
at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:742)
at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1617)
at android.support.v4.app.FragmentController.execPendingActions(FragmentController.java:339)
at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:602)
at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1244)
at android.app.Activity.performStart(Activity.java:6151)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2482)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2617)
at android.app.ActivityThread.access$800(ActivityThread.java:182)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1474)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:218)
at android.app.ActivityThread.main(ActivityThread.java:5657)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:990)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:785)
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v8.renderscript.RenderScript" on path: DexPathList[[dex file "/data/data/com.example.milispace.milispace/files/instant-run/dex/slice-zip4j-1.3.2_f728f80ccf711e45ce184a9c1b90868a8c287ed9-classes.dex", dex file "/data/data/com.example.milispace.milispace/files/instant-run/dex/slice-universal-image-loader-1.9.3_c0a769fce08f3876d58b638cd3cf59c11e0d5448-classes.dex", dex file "/data/data/com.example.milispace.milispace/files/instant-run/dex/slice-systembartint-1.0.3_79084032bdf4831b4792a45df467e6d485629218-classes.dex", dex file "/data/data/com.example.milispace.milispace/files/instant-run/dex/slice-support-annotations-23.3.0_5f3c49fb8cf92a86f170212d7084646ffc9e0982-classes.dex", dex file "/data/data/com.example.milispace.milispace/files/instant-run/dex/slice-slice_9-classes.dex", dex file "/data/data/com.example.milispace.milispace
Hello,
can I change the tab text fonts?
and if so, then how?
Hi,
I'm Testing my app in a Galaxy Nexus (Android 4.3) version and in a Nexus 5 (Android 5.1.1).
Everything is fine in the Nexus 5, but in the Galaxy Nexus the tabs didn't change color when the Pages changes, when the tab is clicked it changes, but the last selected tab didn't, if i click in all the tabs all will stay with the color selected.
I have to do something special so it can work int the old version?
<me.amiee.nicetab.NiceTabLayout android:id="@+id/main_tabs_slide" android:layout_width="match_parent" android:layout_height="48dp" android:layout_alignParentBottom="true" android:background="#F8F8F8" app:ntlTabDistributeEvenly="true" app:ntlDefaultTabColor="#B2B2B2" app:ntlDividerPaddingLeft="6dp" app:ntlDividerPaddingRight="6dp" app:ntlSelectedTabColor="?colorPrimary" app:ntlShowIndicator="false" app:ntlShowUnderline="true" app:ntlTabMode="iconOnly" />
If i change to app:ntlTabMode="both" it works again.
Thanks
Process: com.example.milispace.milispace, PID: 26561
java.lang.NullPointerException: Attempt to invoke virtual method 'int android.view.View.getRight()' on a null object reference
at me.amiee.nicetab.NiceTabStrip.drawBadge(NiceTabStrip.java:1011)
at me.amiee.nicetab.NiceTabStrip.dispatchDraw(NiceTabStrip.java:949)
at android.view.View.draw(View.java:15525)
I am using this very good library, but the problem I am facing now is that, I am using an Arabic interface, and I am getting an LTR direction in the tabs, instead of the RTL.
Usage in Layout xml:
<me.amiee.nicetab.NiceTabLayout
android:id="@+id/sliding_nice_tabs"
android:layout_width="match_parent"
android:layout_height="30dp"
android:background="?colorPrimary"
app:ntlDividerPaddingLeft="8dp"
app:ntlDividerPaddingRight="8dp"
app:ntlIndicatorHeight="2dp"
app:ntlOverlayColor="#aa1a237e"
app:ntlTabMode="titleOnly"
app:ntlTextSize="18sp"
app:ntlTextStyle="normal"
app:ntlUnderlineHeight="1dp"
/>
Detect by memory working history, as attached
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.