Giter Club home page Giter Club logo

Comments (4)

leotyndale avatar leotyndale commented on May 29, 2024

目前没有开放View自定义的接口,只开放了设置icon的接口
如有需求,可以将项目checkout下来,修改EnFloatingView的布局文件及View
数据控制View显示和在特定Activity显示可以自行创建一个ViewController控制

from enfloatingview.

leotyndale avatar leotyndale commented on May 29, 2024

后面会将该功能需求实现

from enfloatingview.

Gennki avatar Gennki commented on May 29, 2024

你好,我尝试在特定的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.

Gennki avatar Gennki commented on May 29, 2024

@lofty14 希望对你有所帮助

from enfloatingview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.