zyyoona7 / easypopup Goto Github PK
View Code? Open in Web Editor NEW「暂停维护」PopupWindow Wrapper. 对 PopupWindow 的封装。可指定相对于 anchor view 各个方位弹出,设置背景变暗,指定 ViewGroup 背景变暗等特性。
License: Apache License 2.0
「暂停维护」PopupWindow Wrapper. 对 PopupWindow 的封装。可指定相对于 anchor view 各个方位弹出,设置背景变暗,指定 ViewGroup 背景变暗等特性。
License: Apache License 2.0
比如华为的底部虚拟按键,能不能不改变虚拟按键的背景
kotlin萌新,请问用kotlin如何写EasyPopup,
如题,点击的控件发生移动之后, showAtAnchorView显示的pop位置还是显示在原来控件的位置下, updateLocation能对这个做处理吗
How do you anchor an EasyPopup to a Google Map Marker?
每个版本变化挺大的
android4.4没有动画效果
请问怎么使弹出的布局宽度充满屏幕,两边和屏幕边缘一直有间距
在有软件盘弹出的情况下,再弹出pop,位置改变
用RelativeLayout发现不行
mQQPop = EasyPopup.create()
.setContext(this)
.setContentView(R.layout.layout_right_pop)
.setAnimationStyle(R.style.RightTop2PopAnim)
.setOnViewListener(new EasyPopup.OnViewListener() {
@OverRide
public void initViews(View view) {
// View arrowView = mQQPop.findViewById(R.id.v_arrow);
// arrowView.setBackground(new TriangleDrawable(TriangleDrawable.TOP, Color.parseColor("#404040")));
}
})
.setFocusAndOutsideEnable(true)
.apply();
**View arrowView = mQQPop.findViewById(R.id.v_arrow);
arrowView.setBackground(new TriangleDrawable(TriangleDrawable.TOP, Color.parseColor("#404040")));**
定义的View写在initView()里面,和外面有啥区别?
如果PopupWindow布局有EditText,我在你封装的控件中添加了setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE)发现并没有用,有什么解决方案吗?
假如窗口高度为奇数时,最底部1px高度忽隐忽现,描边1px看更明显。窗口高度刚好是偶数的时候是正常的,有动态数据时,一个笨方法是计算设置偶数高度,希望有更好的解决方法
就是pop在recyclerview的item的一个view点击触发之后位于该view的下方弹出.有时候会出现这么个情况,就是会被该item遮挡住,请问这是什么引起的?
背景色是怎么调的?
lib和lib-kt 里面发生了类名冲突,
有两个 com.zyyoona7.lib.BuildConfig
Error:Error converting bytecode to dex:
Cause: com.android.dex.DexException: Multiple dex files define Lcom/zyyoona7/lib/BuildConfig;
哪个包重复啊
您好,我在使用的时候发现设置成向上展示时,列表中的item不管多少popupwindow的高度都不改变,但是我的item设置的高度为wrap,只有设置recyclerview的高度才能够改变这个高度
It call android.view.ContextThemeWrapper cannot be cast to android.app.Activity
.
EasyPopup(textView.context)
.setContentView<EasyPopup>(R.layout.popup_vehicle_picker)
//是否允许点击PopupWindow之外的地方消失
.setFocusAndOutsideEnable<EasyPopup>(true)
//允许背景变暗
.setBackgroundDimEnable<EasyPopup>(true)
//变暗的透明度(0-1),0为完全透明
.setDimValue<EasyPopup>(0.4f)
.createPopup<EasyPopup>()
.showAtAnchorView(textView, VerticalGravity.BELOW, HorizontalGravity.CENTER, 0, 0)
Log:
04-03 16:01:14.574 32057-32057/? E/MtaSDK: java.lang.ClassCastException: android.view.ContextThemeWrapper cannot be cast to android.app.Activity
at com.zyyoona7.lib.EasyPopup.handleBackgroundDim(EasyPopup.java:607)
at com.zyyoona7.lib.EasyPopup.showAtAnchorView(EasyPopup.java:452)
at com.lxt.app.ui.maink6.helper.VehiclePickerHelper.popupVehiclePicker(VehiclePickerHelper.kt:35)
使用dismiss后无法关闭窗口呢
如题 连续展示两个PopupWindows后,第一个消失后,展示第二个,同样设置了背景色灰色,但是第二个展示的背景色灰色就没效果了
baseActivity中间的标题的那个弹框,第一次弹出的位置不对,第二次弹出才正确,请问这个问题该如何解决呢?
有两个按钮 一个按钮显示一个popwindow,点击一个按钮,显示出来一个popwindow,再点击另外一个按钮,希望关闭当前显示的popwindow,显示另外一个popwindow出来,但是我发现你的popwindow是全屏的,点击布局以外的默认是关闭当前的,有什么方法能解决吗
在moto android5.1.1会报错这个
在Samsung android 7.0上不会
E:\CodeTest\EasyPopup\app\src\main\java\com\zyyoona7\easypopup\kt\KotlinActivity.kt
Error:(15, 13) Unresolved reference: layoutId
Error:Execution failed for task ':app:compileDebugKotlin'.
Compilation error. See log for more details
setFocusAndOutsideEnable 为false 之后,导致整个屏幕不能滑动,用popwindow去做,就可以滑动,请问这个要怎么配置呢?setOutsideTouchable 为true也不行
如果作者还要继续维护的话,readme上的可以删掉了
com/zyyoona7/easypopup/easypop/EasyPopActivity.java:314
com/zyyoona7/easypopup/easypop/EasyPopActivity.java:303
用这句代码才能隐藏键盘:
KeyboardUtils.hideSoftInput(v);
EasyPopup(this)
.setContentView(R.layout.popup_test)
.setFocusAndOutsideEnable(false)
.showAsDropDown(it)
布局是一个很简单的TextView
我的项目support版本是26.1.0,引入库不是提示support版本要求27.1.1
All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 27.1.1, 26.1.0. Examples include com.android.support:support-compat:27.1.1 and com.android.support:animated-vector-drawable:26.1.0 more... (Ctrl+F1)
就是编译通过运行报错
at android.support.v7.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:103)
我查过这个错误通常是引入了两个版本不同的support库导致的。
请问有什么办法可以解决?因为我的项目support库升级的话涉及很多的类,影响太大,所以暂时不能升级,希望有其他版本解决这个问题。
Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
不好意思,问题描述有问题,经排查不是本库的问题,抱歉.
当recycleview的item(最后一条或第一条item)条目只露出一点点的时候,如果设置在右边(或左边)显示的话popup的布局会被挤压,变成窄窄的一条。这个bug如何解决!需要多点击几次会把item带上去,然后才能显示全.(注:recycleview顶到屏幕最下边或者最上边时)
popup里有个RecyclerView,我动态删减item,popup能自动改变高度吗?(比如饿了麽商家界面购物车)
模拟器在控件上方弹出,结果在下方弹出偏移位置很大
我的手机华为8.0,点击弹出的pop会掉下来覆盖了按钮的一个闪动
有一个可以滑动的recyview,滑动未停止时,去点击可以弹出的按钮,popu位置乱跳,不能在指定位置弹出。
secondMenuPopup.showAtAnchorView(view, VerticalGravity.CENTER, HorizontalGravity.RIGHT, 0, 0);
mBgDimPop.showAtLocation(view,Gravity.BOTTOM,0,0);用这个是正常显示
mBgDimPop.showAtAnchorView(view, YGravity.ALIGN_BOTTOM, 0, 0, 0); 用这个只会显示一半另一半跑到屏幕下边外面去了
自定义了一个popuwindow,如果要在xml中使用,对于它的构造方法,请问怎么写呢,有点懵,新手求指点,谢谢 @zyyoona7
Failed to allocate a 1973732 byte allocation with 358096 free bytes and 349KB until OOM
com.zyyoona7.popup.BasePopup.initContentViewAndWH(BasePopup.java:139)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.