devlight / navigationtabbar Goto Github PK
View Code? Open in Web Editor NEWNavigation tab bar with colorful interactions.
License: Apache License 2.0
Navigation tab bar with colorful interactions.
License: Apache License 2.0
Hi all, thats my problem. I use in setOnTabBarSelectedIndexListener. fragment transaction and when open fragment with 1 view in layout, thats all ok, but when open layout with many view, selection page freeze from 0.4 to 2 second, it`s looking wery trouble, explain please what wrong. Thx to all.
Could not find this customization option.
Obviously white colored badges can only make sense on dark themed apps like the example that you created, so that limitation makes the badge feature useless for a lot of people.
I think if implementing a custom color is dificult you could at least make an option for red badges, which are the default for most apps
I added a NTB and the title is enabled but it doesn't show.
When i put the NTB on a horizontal position all is good ,does NTB not support title in vertical position ?
And another thing , i have many models ,how can i make the NTB scrollable so i can see all of them and just when i click a model to change the fragment from the view pager, is this supported ( i mean scrolling through the items of the NTB )?
Thank you :)
i think it would be good to have some options for tabbar buttons borders (such as colors, width, smh else maybe)
Hi. in this library how can i found whats position of tab without using viewpager? i dont like to use view pager and i want to know current position when user scrolling
maybe ?
When I try to set the following:
navigationTabBar.setIconSizeFraction(0.5);
I get the error:
Error:(115, 46) error: incompatible types: possible lossy conversion from double to float
Why is this? I have just updated my gradle to use version 1.2.4
Error:A problem occurred configuring root project 'NavigationTabBar'.
Could not resolve all dependencies for configuration ':classpath'.
Could not resolve com.github.dcendents:android-maven-gradle-plugin:1.3.
Required by:
:NavigationTabBar:unspecified
> Could not resolve com.github.dcendents:android-maven-gradle-plugin:1.3.
> Could not get resource 'https://jcenter.bintray.com/com/github/dcendents/android-maven-gradle-plugin/1.3/android-maven-gradle-plugin-1.3.pom'.
> Could not GET 'https://jcenter.bintray.com/com/github/dcendents/android-maven-gradle-plugin/1.3/android-maven-gradle-plugin-1.3.pom'.
> Connection to http://127.0.0.1:8888 refused
Could not resolve com.jfrog.bintray.gradle:gradle-bintray-plugin:1.1.
Required by:
:NavigationTabBar:unspecified
> Could not resolve com.jfrog.bintray.gradle:gradle-bintray-plugin:1.1.
> Could not get resource 'https://jcenter.bintray.com/com/jfrog/bintray/gradle/gradle-bintray-plugin/1.1/gradle-bintray-plugin-1.1.pom'.
> Could not GET 'https://jcenter.bintray.com/com/jfrog/bintray/gradle/gradle-bintray-plugin/1.1/gradle-bintray-plugin-1.1.pom'.
> Connection to http://127.0.0.1:8888 refused
I am getting NVt button click Using navigationTabBar.setOnTabBarSelectedIndexListener working good but when i going to click on pre-selected button it didnt show its postion how to get it I need to open Dialog on Click, first time click it work but next time I have change selected Button and again come to same button to open dialog pls help
Hello,
How can I use it within a CoordinatorLayout?
Thank you.
how to get which tab is clicked I am using in Fragment
Thanks in advance for responding to bug I reported yesterday. and can you gives an example of the use of NTB with 4 Fragment different? because I have tried but to no avail, oh I want to create a navigation reference to NTB like Instagram. and whether the icon NTB may directly input in the form Bitmap without having at Convert to BitmapDrawable?
How can we change title text size to fit in tab area when tab selected in case title is a long text?
How do you populate the tabs... please i need assistance
i like your libraries , but i can't find the library from dependencies in android studio ,so i can't use it ,is anything wrong?
Hello,
there is a space between viewpager and navigation tab bar when badge mode is enabled, is it possible to remove this space please?
Thanks and Regards
Hello! Can you turn fields and methods in classes from private to protected, so we can extend your classes and override some features. Thx!
navigationTabBar.setIconSizeFraction(0.5); in documentation does not work with compile:navigationtabbar1.2.3
setIconSizeFraction() is either missing or the documentation is incorrect and it has been removed/replaced?
The following picture displays the position from where the code is missing:
http://imgur.com/DZJZM4W
This is the code that is missing:
public float getIconSizeFraction() { return mIconSizeFraction; } // To reset scale fraction of icon to automatic just put in method AUTO_SCALE value public void setIconSizeFraction(final float iconSizeFraction) { mIconSizeFraction = iconSizeFraction; requestLayout(); }
Thank you for making such a great resource!
Hello! Can you turn fields and methods in classes from private to protected, so we can extend your classes and override some features. Thx!
When I try to run my code I get this.
I included you library from code
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.graphics.Bitmap.isRecycled()' on a null object reference
I am a Chinese but English is not very good, I use your library, but the menu does not have a title, I try to use your demo,it dose not have a title too. I don't know what's wrong?
Is it possible?
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.graphics.Bitmap.isRecycled()' on a null object reference at android.graphics.Canvas.throwIfCannotDraw(Canvas.java:1281) at android.graphics.Canvas.drawBitmap(Canvas.java:1337) at com.gigamole.navigationtabbar.ntb.NavigationTabBar.onDraw(NavigationTabBar.java:1091)
I do not understand why the random error could happen when I use the Fragment on ViewPager. and I use Bitmap that I have downloaded the library ImageRequest of Volley then converted to a Drawable, sometimes can sometimes error as above, even when I replace the existing image on fixed Drawable error sometimes occurs and sometimes succeed
In our project, we have 4 tabs, each tab icon has 2 states (active and inactive). So we create totally 8 icon images for those tabs. For each image, we generate images for different sizes like this:
However, when the app launches, the tab icons lose their quality:
Do you have any idea how to fix this?
Code:
models.add(
new NavigationTabBar.Model.Builder(
getResources().getDrawable(R.drawable.grey_plane),
Color.parseColor(Constant.COLOR_TRANSPARENT)
).selectedIcon(getResources().getDrawable(R.drawable.purple_plane_fulfill)).title("Flights")
.build()
);
models.add(
new NavigationTabBar.Model.Builder(
getResources().getDrawable(R.drawable.grey_bed),
Color.parseColor(Constant.COLOR_TRANSPARENT)
).selectedIcon(getResources().getDrawable(R.drawable.purple_bed_fulfill)).title("Hotels")
.build()
);
models.add(
new NavigationTabBar.Model.Builder(
getResources().getDrawable(R.drawable.grey_history),
Color.parseColor(Constant.COLOR_TRANSPARENT)
).selectedIcon(getResources().getDrawable(R.drawable.purple_history_fulfill)).title("Activity")
.build()
);
models.add(
new NavigationTabBar.Model.Builder(
getResources().getDrawable(R.drawable.grey_user),
Color.parseColor(Constant.COLOR_TRANSPARENT)
).selectedIcon(getResources().getDrawable(R.drawable.purple_user_fulfill)).title("Me")
.build()
);
navigationTabBar.setModels(models);
navigationTabBar.setViewPager(viewPager, 1);
navigationTabBar.setTitleMode(NavigationTabBar.TitleMode.ALL);
navigationTabBar.setIsTitled(true);
in xml
<com.gigamole.navigationtabbar.ntb.NavigationTabBar
android:id="@+id/ntb"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:layout_marginTop="-8dp"
app:ntb_animation_duration="200"
app:ntb_active_color="@color/colorPrimary"
app:ntb_inactive_color="@color/date_picker_text_normal"
app:ntb_badged="true"
app:ntb_scaled="false"
app:ntb_title_mode="all"
app:ntb_titled="true"
app:ntb_typeface="fonts/Gotham-Book.otf" />
Hi tanx for your good lib
my english is not good sorry for that
i have a problem i have add change possison in your code for example i want to start a progressbar
when i am in tab 1 but it start in tab 2 and tab 1 what is the problem ?
if(position==0){
new JSONAsyncTask().execute("http://microblogging.wingnity.com/JSONParsingTutorial/jsonActors");
ArrayList listMockData = new ArrayList();
String[] images = getResources().getStringArray(R.array.images_array);
String[] headlines = getResources().getStringArray(R.array.headline_array);
for (int i = 0; i < images.length; i++) {
ListItem newsData = new ListItem();
newsData.setUrl(images[i]);
newsData.setHeadline(headlines[i]);
newsData.setReporterName("Pankaj Gupta");
newsData.setDate("May 26, 2013, 13:35");
listMockData.add(newsData);
}
ArrayList<ListItem> listData = listMockData;
final ListView listView = (ListView) findViewById(R.id.custom_list);
listView.setAdapter(new CustomListAdapter(Main.this, listData));
listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> a, View v, int position, long id) {
ListItem newsData = (ListItem) listView.getItemAtPosition(position);
Toast.makeText(Main.this, "Selected :" + " " + newsData, Toast.LENGTH_LONG).show();
}
});
}
when i open the activity model index will be active. for an example if i set models5.setModelIndex(1,true); the first will be active. i need to disable this. when i open the activity all index should be disable and if i select one need to active that select one.is it possible?
How to make the tab unselected?
Hi,
Otherwise the NTB works like a charm, but I can't get the badges to show at all...
Here's my layout xml:
`
<com.gigamole.navigationtabbar.ntb.NavigationTabBar
android:id="@+id/main_ntb"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_alignParentTop="true"
app:ntb_animation_duration="200"
app:ntb_active_color="#ffffff"
app:ntb_inactive_color="@color/grey"
app:ntb_badged="true"
app:ntb_titled="false"
app:ntb_scaled="false"
app:ntb_tinted="true"
app:ntb_badge_position="right"
app:ntb_badge_gravity="bottom"
app:ntb_badge_bg_color="@color/theme_red"
app:ntb_badge_title_color="#ffffff"
app:ntb_swiped="true"
app:ntb_bg_color="@color/dark_grey"
app:ntb_badge_size="10sp"
app:ntb_title_size="10sp" />
<io.altru.lack.components.NonSwipeableViewPager
android:id="@+id/viewpager"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_below="@+id/main_ntb"
android:layout_alignParentBottom="true"
android:background="@color/lightgrey" />
`
Here's the code for setting up my NTB:
navigationTabBar = (NavigationTabBar) findViewById(R.id.main_ntb);
final ArrayList<NavigationTabBar.Model> models = new ArrayList<>();
IconDrawable browse = new IconDrawable(this, TypiconsIcons.typcn_home_outline).sizeDp(40);
IconDrawable create = new IconDrawable(this, TypiconsIcons.typcn_camera).sizeDp(40);
IconDrawable lists = new IconDrawable(this, TypiconsIcons.typcn_pin).sizeDp(40);
models.add(
new NavigationTabBar.Model.Builder(browse, getResources().getColor(R.color.theme_accent))
.build()
);
models.add(
new NavigationTabBar.Model.Builder(create, getResources().getColor(R.color.theme_accent))
.build()
);
models.add(
new NavigationTabBar.Model.Builder(lists, getResources().getColor(R.color.theme_accent))
.badgeTitle("Wee")
.build()
);
navigationTabBar.setModels(models);
navigationTabBar.setViewPager(viewPager, 0);
navigationTabBar.setIsBadged(true);
And finally, here's the code where I try to show the badge (pretty much copied from the sample app):
navigationTabBar.postDelayed(new Runnable() {
@OverRide
public void run() {
final NavigationTabBar.Model model = navigationTabBar.getModels().get(0);
Log.v(TAG, "Is badge showing before: " + model.isBadgeShowed());
model.showBadge();
Log.v(TAG, "Is badge showing after: " + model.isBadgeShowed());
}
}, 500);
In the last code snippet, the model.isBadgeShowed() returns false on both calls, both before and after calling model.showBadge()
Any help?
I use your NavigationTabBar in my project,But it is not work so better,it can not show title,can you please help me debug it?
There is a part of code about it.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:context="com.bigmercu.qinxinjiajiao.activity.bigmercuActivity"
tools:showIn="@layout/activity_bigmercu">
<com.gigamole.library.NavigationTabBar
android:id="@+id/ntb"
android:layout_width="match_parent"
android:layout_height="50dp"
android:background="@color/colorPrimaryDark"
app:ntb_animation_duration="400"
app:ntb_preview_colors="@array/polluted_waves"
app:ntb_active_color="#ffffff"
app:ntb_inactive_color="#000000"
app:ntb_badged="true"
app:ntb_titled="true"
app:ntb_title_mode="all"
app:ntb_badge_position="right"
app:ntb_badge_gravity="top"
app:ntb_badge_use_typeface="true"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"/>
</RelativeLayout>
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_bigmercu);
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
ButterKnife.bind(this);
String[] colors = getResources().getStringArray(R.array.default_preview);
ArrayList<NavigationTabBar.Model> models = new ArrayList<>();
models.add(new NavigationTabBar.Model(
getResources().getDrawable(R.drawable.ic_first), Color.parseColor(colors[0]), "首页"));
models.add(new NavigationTabBar.Model(
getResources().getDrawable(R.drawable.ic_second), Color.parseColor(colors[1]), "赵老师"));
models.add(new NavigationTabBar.Model(
getResources().getDrawable(R.drawable.ic_third), Color.parseColor(colors[2]), "周边家长"));
models.add(new NavigationTabBar.Model(
getResources().getDrawable(R.drawable.ic_fourth), Color.parseColor(colors[3]), "消息"));
models.add(new NavigationTabBar.Model(
getResources().getDrawable(R.mipmap.me), Color.parseColor(colors[4]), "我"));
navigationTabBar.setBadgeGravity(NavigationTabBar.BadgeGravity.TOP);
navigationTabBar.setBadgePosition(NavigationTabBar.BadgePosition.CENTER);
navigationTabBar.setIsBadged(true);
navigationTabBar.setIsTitled(true);
navigationTabBar.setTitleMode(NavigationTabBar.TitleMode.ALL);
navigationTabBar.setModels(models);
Do you now why?
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.gigamole.navigationtabbar/com.gigamole.navigationtabbar.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "com.gigamole.navigationtabbar.MainActivity" on path: DexPathList[[zip file "/data/app/com.gigamole.navigationtabbar-1/base.apk"],nativeLibraryDirectories=[/data/app/com.gigamole.navigationtabbar-1/lib/arm, /vendor/lib, /system/lib]]
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2327)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.gigamole.navigationtabbar.MainActivity" on path: DexPathList[[zip file "/data/app/com.gigamole.navigationtabbar-1/base.apk"],nativeLibraryDirectories=[/data/app/com.gigamole.navigationtabbar-1/lib/arm, /vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
at android.app.Instrumentation.newActivity(Instrumentation.java:1067)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2317)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Suppressed: java.lang.ClassNotFoundException: Didn't find class "com.gigamole.navigationtabbar.MainActivity" on path: DexPathList[[dex file "/data/data/com.gigamole.navigationtabbar/files/instant-run/dex/slice-support-annotations-23.4.0_e29451ecbafa43ab8360f08f2358b7f7ded12169-classes.dex", dex file "/data/data/com.gigamole.navigationtabbar/files/instant-run/dex/slice-internal_impl-23.4.0_ed6077c7ae36854a156f5057e37ddfc5539f0265-classes.dex", dex file "/data/data/com.gigamole.navigationtabbar/files/instant-run/dex/slice-com.android.support-support-vector-drawable-23.4.0_590f3995813849c4d48fcd3942188e26f8f68645-classes.dex", dex file "/data/data/com.gigamole.navigationtabbar/files/instant-run/dex/slice-com.android.support-support-v4-23.4.0_f0ff20939018b86d3213b795982102f39afece23-classes.dex", dex file "/data/data/com.gigamole.navigationtabbar/files/instant-run/dex/slice-com.android.support-recyclerview-v7-23.4.0_90472ccc4c6fbfca7e6511b836cd08a98fd2e4cb-classes.dex", dex file "/data/data/com.gigamole.navigationtabbar/files/instant-run/dex/slice-com.android.support-design-23.4.0_ab15a4269ad22fa06be63b7923f8a4cfcce35a2f-classes.dex", dex file "/data/data/com.gigamole.navigationtabbar/files/instant-run/dex/slice-com.android.support-appcompat-v7-23.4.0_8bda3a59524d420ce46af580679524efcc621bf5-classes.dex", dex file "/data/data/com.gigamole.navigationtabbar/files/instant-run/dex/slice-com.android.support-animated-vector-drawable-23.4.0_fc68d0f0347c6fa313857b324630255d52caed51-classes.dex"],nativeLibraryDirectories=[/data/app/com.gigamole.navigationtabbar-1/lib/arm, /vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at com.android.tools.fd.runtime.IncrementalClassLoader$DelegateClassLoader.findClass(IncrementalClassLoader.java:90)
at com.android.tools.fd.runtime.IncrementalClassLoader.findClass(IncrementalClassLoader.java:62)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 12 more
Suppressed: java.lang.ClassNotFoundException: com.gigamole.navigationtabbar.MainActivity
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
I want to keep the icon of the tab as original .
hi, thanks for this lib, i see a bug when the navigationtabbar is in the bottom of the activity. When the activity is not recreated. In orientation changed the item in navigation bar is not correctly selected, the color not appear correctly over the item and sometimes the item selected is landscape is different that the item selected in portrait.
I put the layout file inside the TopHorizontalNtbActivity class AppBarLayout that copy out, and then on the wrong.
but ,I don't have the control.Is it because of this?
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.graphics.Bitmap.isRecycled()' on a null object reference
at android.graphics.Canvas.throwIfCannotDraw(Canvas.java:1269)
at android.graphics.Canvas.drawBitmap(Canvas.java:1325)
at com.gigamole.navigationtabbar.ntb.NavigationTabBar.onDraw(NavigationTabBar.java:1091)
at android.view.View.draw(View.java:16178)
at android.view.View.buildDrawingCacheImpl(View.java:15474)
at android.view.View.buildDrawingCache(View.java:15335)
at android.view.View.draw(View.java:15941)
at android.view.ViewGroup.drawChild(ViewGroup.java:3609)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
at android.view.View.updateDisplayListIfDirty(View.java:15169)
at android.view.View.draw(View.java:15948)
at android.view.ViewGroup.drawChild(ViewGroup.java:3609)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
at android.view.View.draw(View.java:16181)
at android.view.View.updateDisplayListIfDirty(View.java:15174)
at android.view.View.draw(View.java:15948)
at android.view.ViewGroup.drawChild(ViewGroup.java:3609)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
at android.view.View.draw(View.java:16181)
at android.view.View.updateDisplayListIfDirty(View.java:15174)
at android.view.View.draw(View.java:15948)
at android.view.ViewGroup.drawChild(ViewGroup.java:3609)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
at android.view.View.updateDisplayListIfDirty(View.java:15169)
at android.view.View.draw(View.java:15948)
at android.view.ViewGroup.drawChild(ViewGroup.java:3609)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
at android.view.View.updateDisplayListIfDirty(View.java:15169)
at android.view.View.draw(View.java:15948)
at android.view.ViewGroup.drawChild(ViewGroup.java:3609)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
at android.view.View.updateDisplayListIfDirty(View.java:15169)
at android.view.View.draw(View.java:15948)
at android.view.ViewGroup.drawChild(ViewGroup.java:3609)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
at android.view.View.updateDisplayListIfDirty(View.java:15169)
at android.view.View.draw(View.java:15948)
at android.view.ViewGroup.drawChild(ViewGroup.java:3609)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
at android.view.View.draw(View.java:16181)
at com.android.internal.policy.PhoneWindow$DecorView.draw(PhoneWindow.java:2690)
at android.view.View.updateDisplayListIfDirty(View.java:15174)
at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:281)
at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:287)
at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:322)
at android.view.ViewRootImpl.draw(ViewRootImpl.java:2615)
at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2434)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2067)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1107)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6013)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
at android.view.Choreographer.doCallbacks(Choreographer.java:670)
at android.view.Choreographer.doFrame(Choreographer.java:606)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Hello,
is it possible to have tab elements with title and other with no title in same tab bar ?
Thanks and Regards
on item selection from navigation drawer, if we initially start swapping then touch is not working on bottom bar item and if we initially start with touch then swap is not work.
Please help me out urgent needed.
Hi,
I noticed your demo app does something that I'd not really expect:
@Override
protected void onDestroy() {
super.onDestroy();
System.runFinalization();
Runtime.getRuntime().gc();
System.gc();
}
Is there any reason for forcing this in your app?
I didn't write this sentence-".badgeTitle("***")",but it show on navigation again.could u tell ?And,how can i set one of these tags for each other.
Why not can we set NavigationTabBar title-only ?
Is tab item able to fix width and scrollable if no more space left?
How can I attach navigation bar to coordinator layout?
i want to set a coloured icon , but it fills the default color in the icon. i want to keep my icon as it is coloured without setting any colour through nt_inactive_color .
for me, the badge is too small, could you make function about its size?
thx, btw great lib :)
i think it would be good if we can configure scaling, like 2x, 3x etc
How to change ontablistener, i want to open new activity on tab selected. Thanks
Error:(4) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.
Error:(33) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'.
Hi, how can i implementing disable click on tabs? my solution doesnt work
navigation_tab_bar.setOnClickListener(null);
navigation_tab_bar.setOnTabBarSelectedIndexListener(new NavigationTabBar.OnTabBarSelectedIndexListener() {
@Override
public void onStartTabSelected(NavigationTabBar.Model model, int index) {
return;
}
@Override
public void onEndTabSelected(NavigationTabBar.Model model, int index) {
return;
}
});
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.