H.cheng
H.cheng
How use custom view ? For example, I just need to expand the menu to have a TextView, no icon, no Subtext.
```java GlideToVectorYou.init().with(context).withListener(new GlideToVectorYouListener() { @Override public void onLoadFailed() { hideLoadDialog(); } @Override public void onResourceReady() { hideLoadDialog(); } }).load(uri, binding.phPreview); ``` for this ```java GlideToVectorYou vectorYou = new GlideToVectorYou(); vectorYou.with(context);...
主要属性设置 ```xml app:awv_itemsVisibleCount="7" app:awv_lineSpace="1.5" app:awv_textsize="17" ``` 当数据只有2条时(3条以上正常)preCurrentIndex计算有误 onDraw方法 ```java change = (int) (totalScrollY / (lineSpacingMultiplier * itemTextHeight)); preCurrentIndex = initPosition + change % items.size(); ``` 其中,totalScrollY为133,lineSpacingMultiplier为1.5 ,itemTextHeight为89,此时change计算结果为0,preCurrentIndex结果异常