Comments (4)
目前没有开放View自定义的接口,只开放了设置icon的接口
如有需求,可以将项目checkout下来,修改EnFloatingView的布局文件及View
数据控制View显示和在特定Activity显示可以自行创建一个ViewController控制
from enfloatingview.
后面会将该功能需求实现
from enfloatingview.
你好,我尝试在特定的Activity的onCreate方法中attach并且在onDestory中detach,可以解决你的问题。
另外如果要改变悬浮窗的View,如果只是设置除了icon以外的图片的话,可以尝试这样写
EnFloatingView enFloatingView = FloatingView.get().getView();
ImageView icon = enFloatingView .findViewById(com.imuxuan.floatingview.R.id.icon);
Glide.with(activity).load(url).into(icon);
from enfloatingview.
@lofty14 希望对你有所帮助
from enfloatingview.
Related Issues (20)
- 怎么设置只在某个页面显示??? HOT 1
- 使用转场动画bug HOT 2
- 点击有时候会触发 ANR HOT 1
- 悬浮窗导致的Toast显示问题 HOT 1
- 悬浮窗会跟着activity消失 HOT 2
- 悬浮窗横竖屏问题 HOT 1
- 这好像是每个页面都创建一个新的 HOT 2
- 会被对话框挡住,若是对话框是铺满整个界面的就完全看不到了,类似的有PreferenceActivity弹出的子界面 HOT 1
- 这个浮窗是不是不能动态加载,比如点击一个button加载这个浮窗?只能第一次初始化的时候加载浮窗。 HOT 1
- 小米,oppo后台启动权限 HOT 1
- 一会儿就是满屏的悬浮窗 HOT 1
- 这样会崩溃 HOT 1
- 请问怎么设置自己的布局文件layout 进去 我要设置自己样式? HOT 3
- 如何获取布局imageview的id HOT 1
- 可以在Fragment中使用吗? HOT 1
- 怎么设置起始位置?
- 作者能否提供一个限制移动区域的方法 HOT 1
- 在customView 设置一个view而不是layout, 没有马上添加到界面上 HOT 1
- FloatingView 被remove, listener的onRemove没有被调用 HOT 1
- 定义自定义布局,然后调用add没有任何反应 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from enfloatingview.