Jun Chen
Jun Chen
CommonNavigatorAdapter有个notifyDataSetChanged(),可以动态改变
加粗:getPaint().setFakeBoldText(true);也可以参考demo里的ScaleTransitionPagerTitleView。
https://www.jianshu.com/p/f3022211821c
还有,如果预览的是截图,就不能继续滑动,正常拍摄的可以。 返回的Uri,通过getPath()获取的地址并不能直接使用
@zyyoona7 貌似不行,一调用PopupWindow.update(),PopupWindow就消失了,也没有OnDismissListener回调。
@zyyoona7 你有找到方案吗? 我发现一个方法可以勉强实现这种问题。 1、List设置setHasFixedSize(false)。 2、显示showAtLocation(anchorView,Gravity.BOTTOM,0,anchorView.getHeight() * 2-10)。 -10是根据实际减的,我测试的anchorView高为131(50dp)。
@zyyoona7 修改一下, 2、显示showAtLocation(anchorView,Gravity.BOTTOM,0,anchorView.getHeight() +backHeight)。 backHeight是虚拟键高度。 这样如果加了阴影会遮挡底部的anchorView。
@arnaudgiuliani Hi, thanks for your reply. However, this method has limitations and does not really achieve the overall effect. For example, how to share the same ViewModel between multiple Activity?
不能在主线程直接去刷新,作者的demo里有的。 public void autoRefresh() { if (!isRefreshing) { this.postDelayed(new Runnable() { @Override public void run() { updateListener(); if (isOverlay) { mHeadLayout.getLayoutParams().height = (int) mHeadHeight; mHeadLayout.requestLayout(); } else { createAnimatorTranslationY(mChildView, mHeadHeight,...
I am very supportive.