LuseenBottomNavigation icon indicating copy to clipboard operation
LuseenBottomNavigation copied to clipboard

Android4.2

Open TheMrCoder opened this issue 8 years ago • 7 comments

it works well on Android 5.0 but failed on Android 4.2(un show)。i don't know why,could anyone give me a hand ,thanks very much!

TheMrCoder avatar May 05 '16 14:05 TheMrCoder

the same with you,4.2 failed!

fg2q1q3q avatar May 24 '16 06:05 fg2q1q3q

Can confirm, Galaxy s4 API 17 doesn't work with this library.

dmytroKarataiev avatar Oct 20 '16 20:10 dmytroKarataiev

So, min SDK is not 15 as written on Android Arsenal, but 18 instead? Thanks

MR-Syn avatar Dec 21 '16 09:12 MR-Syn

Works on API 15, but not 17. so MinSDK is not an issue.

ChristopheVersieux avatar Nov 06 '17 16:11 ChristopheVersieux

I've made some changes locally a long time ago to fix this. Can you post a stacktrace so I'll find the fix and post a PR?

dmytroKarataiev avatar Nov 06 '17 16:11 dmytroKarataiev

For me, issue is only in tablet mode, working fine on phone mode (app:bnv_tablet="true")

You can try in the emulator, nothing in logcat.

API 15: OK API 17: NOT OK Every other API: OK

Layout:

 <?xml version="1.0" encoding="utf-8"?>
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:tools="http://schemas.android.com/tools"
     xmlns:ads="http://schemas.android.com/apk/res-auto"
     xmlns:app="http://schemas.android.com/apk/res-auto"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
     android:baselineAligned="false"
     android:id="@+id/root"
     android:fitsSystemWindows="true"
     android:orientation="horizontal">
 
     <LinearLayout
         android:layout_width="320dp"
         android:layout_height="wrap_content"
          android:gravity="center"
         android:orientation="vertical" >
 
         <com.luseen.luseenbottomnavigation.BottomNavigation.BottomNavigationView
             android:id="@+id/bottomNavigation"
             android:layout_width="wrap_content"
             android:layout_height="0dp"
             android:layout_weight="1"
             app:bnv_tablet="true"
             app:bnv_active_text_size="@dimen/bottom_navigation_text_size_inactive"/>
 
         <com.google.android.gms.ads.AdView
             android:id="@+id/adView"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             ads:adSize="BANNER"
             ads:adUnitId="@string/banner_ad_unit_id" />
     </LinearLayout>
 
     <FrameLayout
         android:id="@+id/content_frame"
         android:layout_width="match_parent"
         android:layout_height="match_parent"
         android:layout_margin="@dimen/multipane_half_padding" />
 </LinearLayout>

ChristopheVersieux avatar Nov 06 '17 16:11 ChristopheVersieux

New finding: Do not display issue on API 17 is caused by: android:layout_width="wrap_content" (for tablet mode) android:layout_width="Somethingdp" is fine.

ChristopheVersieux avatar Nov 06 '17 17:11 ChristopheVersieux