We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
请问下是否支持下标指示器固定宽度的情况下左对齐呢,现在设置app:tab_width="50dp"固定宽度后,如果title文字较长的情况下,指示器是相对文字居中显示的,是否只是左对齐显示呢?
<com.zhengsr.tablib.view.flow.TabFlowLayout android:id="@+id/resflow" android:layout_width="wrap_content" android:layout_marginTop="10dp" app:tab_type="res" android:background="#6D8FB0" app:tab_item_res="@drawable/indictor" app:tab_width="50dp" app:tab_height="30dp" app:tab_click_animTime="250" app:tab_item_autoScale="true" app:tab_scale_factor="1.2" app:tab_text_select_color="@color/white" app:tab_text_unselect_color="@color/unselect" android:layout_height="wrap_content"/>
final TabVpFlowLayout flowLayout = findViewById(R.id.resflow);
/** * 配置自定义属性 */ TabBean bean = new TabBean(); bean.tabType = FlowConstants.RES; bean.tabItemRes = R.drawable.indictor; bean.tabClickAnimTime = 300; bean.tabMarginLeft = 0; bean.tabMarginTop = 70; bean.tabWidth = 100; bean.tabHeight = 20; bean.autoScale = true; bean.scaleFactor = 1.2f; bean.selectedColor = Color.WHITE; bean.unSelectedColor = getResources().getColor(R.color.unselect); flowLayout.setTabBean(bean); flowLayout.setViewPager(mViewPager); flowLayout.setAdapter(new TabFlowAdapter<String>(mTitle));
The text was updated successfully, but these errors were encountered:
这个暂时没有呢,最近比较忙,估计没时间弄,你可以参考 ResAction ,修改 config 的坐标值,用自定义 action 的方式试试呢
Sorry, something went wrong.
No branches or pull requests
请问下是否支持下标指示器固定宽度的情况下左对齐呢,现在设置app:tab_width="50dp"固定宽度后,如果title文字较长的情况下,指示器是相对文字居中显示的,是否只是左对齐显示呢?
<com.zhengsr.tablib.view.flow.TabFlowLayout
android:id="@+id/resflow"
android:layout_width="wrap_content"
android:layout_marginTop="10dp"
app:tab_type="res"
android:background="#6D8FB0"
app:tab_item_res="@drawable/indictor"
app:tab_width="50dp"
app:tab_height="30dp"
app:tab_click_animTime="250"
app:tab_item_autoScale="true"
app:tab_scale_factor="1.2"
app:tab_text_select_color="@color/white"
app:tab_text_unselect_color="@color/unselect"
android:layout_height="wrap_content"/>
final TabVpFlowLayout flowLayout = findViewById(R.id.resflow);
The text was updated successfully, but these errors were encountered: