Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with Indicator #12

Closed
hamidraasti opened this issue Mar 8, 2016 · 6 comments
Closed

Problem with Indicator #12

hamidraasti opened this issue Mar 8, 2016 · 6 comments

Comments

@hamidraasti
Copy link

hi.
I have a confusing problem when I use block indicator somthing like this:

code:

tl:tl_indicator_corner_radius="0dp"
tl:tl_indicator_margin_bottom="0dp"
tl:tl_indicator_margin_left="0dp"
tl:tl_indicator_margin_right="0dp"
tl:tl_indicator_margin_top="0dp"

tl:tl_indicator_style="BLOCK"

when I use this code in most android devices the indicator do not show.
(in emulator works perfectly)

plz help me!

thank you so much...

@H07000223
Copy link
Owner

Show me your code and give me more detail : such as my lib version , android sdk version and etc.

I have tried all my genymotion devices and my phone(HUAWEI PE-TL20 Android 4.4.2, API 19)
and it works ok. So I do not know what's wrong. You can try first using my github demo.
ed244a94-5a9b-4404-a4b3-c3ce23ca0174

@hamidraasti
Copy link
Author

it is my xml code:

<com.flyco.tablayout.CommonTabLayout xmlns:tl="http://schemas.android.com/apk/res-auto" android:id="@+id/tl_main" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" android:layout_alignParentBottom="true" android:background="#1E76B0" tl:tl_indicator_color="#1168a1" tl:tl_indicator_corner_radius="0dp" tl:tl_indicator_margin_bottom="0dp" tl:tl_indicator_margin_left="0dp" tl:tl_indicator_margin_right="0dp" tl:tl_indicator_margin_top="0dp" tl:tl_indicator_style="BLOCK" tl:tl_textBold="true" tl:tl_textSelectColor="#FFFFFF" tl:tl_textUnselectColor="#60AFE4" tl:tl_textsize="12sp" />

-> your lib version is "1.5.0"
->my minSdkVersion 8
->my targetSdkVersion 23

it works perfectly in all my genymotion devices but in my phone with android 4.1.2
and some other phone and tablets (even android 5) it works bad. and the indicator do not show

@H07000223
Copy link
Owner

You can have a try first as follow:
1.try to use the lastest lib version and github demo for test if it works.
2.try to use LinearLayout weight instead of layout_alignParentBottom(maybe caused by RelativeLayout, I am not sure)

@ydmmocoo
Copy link

使用setCurrentTab()方法,显示器好像不会显示了.点击的就会显示并移动

@ydmmocoo
Copy link

原来是自己库版本太旧了,更新到最新,问题解决了

@H07000223
Copy link
Owner

问题解决,就好~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants