Support
Quality
Security
License
Reuse
kandi has reviewed ahbottomnavigation and discovered the below as its top functions. This is intended to give you an instant insight into ahbottomnavigation implemented functionality, and help decide if they suit your requirements.
Follow the bottom navigation guidelines (https://www.google.com/design/spec/components/bottom-navigation.html)
Add 3 to 5 items (with title, icon & color)
Choose your style: Classic or colored navigation
Add a OnTabSelectedListener to detect tab selection
Support icon font color with "setForceTint(true)"
Manage notififcations for each item
Enable/disable tab state
Gradle
dependencies {
compile 'com.aurelhubert:ahbottomnavigation:2.3.4'
}
XML
<com.aurelhubert.ahbottomnavigation.AHBottomNavigation
android:id="@+id/bottom_navigation"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
Activity/Fragment
AHBottomNavigation bottomNavigation = (AHBottomNavigation) findViewById(R.id.bottom_navigation);
// Create items
AHBottomNavigationItem item1 = new AHBottomNavigationItem(R.string.tab_1, R.drawable.ic_maps_place, R.color.color_tab_1);
AHBottomNavigationItem item2 = new AHBottomNavigationItem(R.string.tab_2, R.drawable.ic_maps_local_bar, R.color.color_tab_2);
AHBottomNavigationItem item3 = new AHBottomNavigationItem(R.string.tab_3, R.drawable.ic_maps_local_restaurant, R.color.color_tab_3);
// Add items
bottomNavigation.addItem(item1);
bottomNavigation.addItem(item2);
bottomNavigation.addItem(item3);
// Set background color
bottomNavigation.setDefaultBackgroundColor(Color.parseColor("#FEFEFE"));
// Disable the translation inside the CoordinatorLayout
bottomNavigation.setBehaviorTranslationEnabled(false);
// Enable the translation of the FloatingActionButton
bottomNavigation.manageFloatingActionButtonBehavior(floatingActionButton);
// Change colors
bottomNavigation.setAccentColor(Color.parseColor("#F63D2B"));
bottomNavigation.setInactiveColor(Color.parseColor("#747474"));
// Force to tint the drawable (useful for font with icon for example)
bottomNavigation.setForceTint(true);
// Display color under navigation bar (API 21+)
// Don't forget these lines in your style-v21
// <item name="android:windowTranslucentNavigation">true</item>
// <item name="android:fitsSystemWindows">true</item>
bottomNavigation.setTranslucentNavigationEnabled(true);
// Manage titles
bottomNavigation.setTitleState(AHBottomNavigation.TitleState.SHOW_WHEN_ACTIVE);
bottomNavigation.setTitleState(AHBottomNavigation.TitleState.ALWAYS_SHOW);
bottomNavigation.setTitleState(AHBottomNavigation.TitleState.ALWAYS_HIDE);
// Use colored navigation with circle reveal effect
bottomNavigation.setColored(true);
// Set current item programmatically
bottomNavigation.setCurrentItem(1);
// Customize notification (title, background, typeface)
bottomNavigation.setNotificationBackgroundColor(Color.parseColor("#F63D2B"));
// Add or remove notification for each item
bottomNavigation.setNotification("1", 3);
// OR
AHNotification notification = new AHNotification.Builder()
.setText("1")
.setBackgroundColor(ContextCompat.getColor(DemoActivity.this, R.color.color_notification_back))
.setTextColor(ContextCompat.getColor(DemoActivity.this, R.color.color_notification_text))
.build();
bottomNavigation.setNotification(notification, 1);
// Enable / disable item & set disable color
bottomNavigation.enableItemAtPosition(2);
bottomNavigation.disableItemAtPosition(2);
bottomNavigation.setItemDisableColor(Color.parseColor("#3A000000"));
// Set listeners
bottomNavigation.setOnTabSelectedListener(new AHBottomNavigation.OnTabSelectedListener() {
@Override
public boolean onTabSelected(int position, boolean wasSelected) {
// Do something cool here...
return true;
}
});
bottomNavigation.setOnNavigationPositionListener(new AHBottomNavigation.OnNavigationPositionListener() {
@Override public void onPositionChange(int y) {
// Manage the new y position
}
});
With XML menu
int[] tabColors = getApplicationContext().getResources().getIntArray(R.array.tab_colors);
AHBottomNavigation bottomNavigation = (AHBottomNavigation) findViewById(R.id.bottom_navigation);
AHBottomNavigationAdapter navigationAdapter = new AHBottomNavigationAdapter(this, R.menu.bottom_navigation_menu_3);
navigationAdapter.setupWithBottomNavigation(bottomNavigation, tabColors);
License
AHBottomNavigation library for Android
Copyright (c) 2018 Aurelien Hubert (http://github.com/aurelhubert).
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Google play: We found ad SDKs in your app
exclude group: 'com.google.android.gms', module : 'play-services-ads-identifier'
implementation ('com.google.firebase:firebase-core:18.0.3'){
exclude group: 'com.google.android.gms', module : 'play-services-ads-identifier'
}
implementation ('com.google.firebase:firebase-invites:17.0.0'){
exclude group: 'com.google.android.gms', module : 'play-services-ads-identifier'
}
implementation ('com.google.firebase:firebase-auth:20.0.3'){
exclude group: 'com.google.android.gms', module : 'play-services-ads-identifier'
}
implementation ('com.google.firebase:firebase-messaging:21.1.0'){
exclude group: 'com.google.android.gms', module : 'play-services-ads-identifier'
}
implementation ('com.google.firebase:firebase-crashlytics:17.4.1'){
exclude group: 'com.google.android.gms', module : 'play-services-ads-identifier'
}
implementation ('com.google.firebase:firebase-analytics:18.0.3'){
exclude group: 'com.google.android.gms', module : 'play-services-ads-identifier'
}
Android: Dependency issue : Gradle support-v4:18.0.+
dependencies {
compile('com.android.support:support-v4:18.0.+') // this dependency will be fully excluded ...
{
exclude module: 'support-v4' // ... because of this line
}
compile 'com.android.support:support-v4:27.0.2' // this dependency will be added with all transitive dependencies
}
dependencies {
compile 'com.android.support:support-v4:27.0.2' // this dependency will be added with all transitive dependencies
}
-----------------------
dependencies {
compile('com.android.support:support-v4:18.0.+') // this dependency will be fully excluded ...
{
exclude module: 'support-v4' // ... because of this line
}
compile 'com.android.support:support-v4:27.0.2' // this dependency will be added with all transitive dependencies
}
dependencies {
compile 'com.android.support:support-v4:27.0.2' // this dependency will be added with all transitive dependencies
}
QUESTION
Google play: We found ad SDKs in your app
Asked 2021-May-23 at 21:06I have this warning in the google play console, which tells me that I have ads in the app, but I did not use any ads in my app.
Ads Let us know whether your app contains ads. This includes ads delivered by third party ad networks. Make sure this information is accurate and is kept up to date. Learn more
We found ad SDKs in your app
This is Gradle dependencies, I did not know which library uses ads dependency, How I should know?
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation('de.keyboardsurfer.android.widget:crouton:1.8.5@aar') {
}
implementation files('libs/android-viewbadger.jar')
implementation "org.androidannotations:ormlite-api:$AAVersion"
annotationProcessor "org.androidannotations:ormlite:$AAVersion"
implementation 'androidx.appcompat:appcompat:1.3.0-alpha02'
implementation 'androidx.constraintlayout:constraintlayout:2.0.2'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.2.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'com.google.android.material:material:1.3.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.multidex:multidex:2.0.1'
implementation 'com.google.code.gson:gson:2.8.6'
implementation 'com.squareup.picasso:picasso:2.8'
implementation 'com.koushikdutta.ion:ion:2.2.1'
implementation 'com.google.firebase:firebase-core:18.0.3'
implementation 'com.google.firebase:firebase-invites:17.0.0'
implementation 'com.google.firebase:firebase-auth:20.0.3'
implementation 'com.google.firebase:firebase-messaging:21.1.0'
implementation 'com.google.android.gms:play-services-maps:17.0.0'
implementation ('com.google.android.libraries.places:places:2.4.0'){
exclude group: "com.android.volley"
}
implementation 'com.google.android.gms:play-services-auth:19.0.0'
implementation 'me.leolin:ShortcutBadger:1.1.22@aar'
implementation 'com.j256.ormlite:ormlite-android:5.1'
implementation 'com.j256.ormlite:ormlite-core:5.1'
implementation'com.facebook.android:facebook-android-sdk:7.0.1'
implementation 'com.github.PhilJay:MPAndroidChart:v2.2.5'
implementation 'net.objecthunter:exp4j:0.4.7'
implementation ('com.squareup.okhttp3:okhttp:3.12.10'){
force = true
}
implementation 'com.kyanogen.signatureview:signature-view:1.1@aar'
implementation 'pl.bclogic:pulsator4droid:1.0.3'
implementation 'com.nineoldandroids:library:2.4.0'
implementation 'com.github.pwittchen:reactivenetwork-rx2:3.0.1'
implementation 'io.reactivex.rxjava2:rxjava:2.2.2'
implementation 'com.github.alxrm:audiowave-progressbar:0.8'
implementation 'net.danlew:android.joda:2.9.5.1'
implementation 'com.github.paolorotolo:expandableheightlistview:1.0.0'
implementation 'com.asksira.android:webviewsuite:1.0.3'
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
implementation 'com.facebook.shimmer:shimmer:0.1.0@aar'
implementation 'com.google.firebase:firebase-crashlytics:17.4.1'
implementation 'com.google.firebase:firebase-analytics:18.0.3'
implementation 'com.aurelhubert:ahbottomnavigation:2.1.0'
implementation 'moe.feng:MaterialStepperView:0.2.4.2'
implementation 'com.github.danielceinos:Cooper:1.0.1'
implementation 'com.zhihu.android:matisse:0.5.3-beta3'
implementation 'cards.pay:paycardsrecognizer:1.1.0'
// Payments gateways SDK
implementation 'com.eway.payment:android-sdk:1.2.2'
implementation 'com.stripe:stripe-android:6.1.1'
implementation 'com.squareup.sdk:point-of-sale-sdk:2.0'
implementation 'net.authorize:accept-sdk-android:1.0.2'
implementation(name: 'wepay-android-3.0.0', ext: 'aar')
//Location Library
implementation 'io.nlopez.smartlocation:library:3.3.3'
implementation 'com.tomergoldst.android:tooltips:1.0.10'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0', {
exclude group: 'com.android.support', module: 'support-annotations'
}
androidTestImplementation 'androidx.test:rules:1.1.0'
androidTestImplementation 'com.google.code.findbugs:jsr305:1.3.9'
androidTestImplementation 'androidx.test.espresso:espresso-contrib:3.1.0', {
exclude group: 'com.android.support', module: 'support-annotations'
exclude group: 'com.android.support', module: 'support-v4'
exclude group: 'com.android.support', module: 'design'
exclude group: 'com.android.support', module: 'recyclerview-v7'
}
}
android {
configurations.all {
resolutionStrategy.force 'com.google.code.findbugs:jsr305:1.3.9'
}
}
apply plugin: 'com.google.gms.google-services'
// Add the Firebase Crashlytics plugin.
apply plugin: 'com.google.firebase.crashlytics'
ANSWER
Answered 2021-May-23 at 21:06the ads dependencies come from firebase, exclude ads dependence from firebase
exclude group: 'com.google.android.gms', module : 'play-services-ads-identifier'
implementation ('com.google.firebase:firebase-core:18.0.3'){
exclude group: 'com.google.android.gms', module : 'play-services-ads-identifier'
}
implementation ('com.google.firebase:firebase-invites:17.0.0'){
exclude group: 'com.google.android.gms', module : 'play-services-ads-identifier'
}
implementation ('com.google.firebase:firebase-auth:20.0.3'){
exclude group: 'com.google.android.gms', module : 'play-services-ads-identifier'
}
implementation ('com.google.firebase:firebase-messaging:21.1.0'){
exclude group: 'com.google.android.gms', module : 'play-services-ads-identifier'
}
implementation ('com.google.firebase:firebase-crashlytics:17.4.1'){
exclude group: 'com.google.android.gms', module : 'play-services-ads-identifier'
}
implementation ('com.google.firebase:firebase-analytics:18.0.3'){
exclude group: 'com.google.android.gms', module : 'play-services-ads-identifier'
}
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
No vulnerabilities reported
Save this library and start creating your kit
Explore Related Topics
Save this library and start creating your kit