hamedtaherpour / floating-layout-android Goto Github PK
View Code? Open in Web Editor NEWFloating Layout library for Android
Floating Layout library for Android
Hey, i'm trying to use the floating layout to use a form, I've not been able to use the edittext to enter any data, on the emulator keyboard events are sent to google search bar widet and on my actual device keyboard popup doesn not work, is there something i'm missing out on ?
You have done wonderful job by doing this library.
I have some question, can i add more listener in your library, i have to call listener when i drag start and stop, basically i want to develop feature like translation application, when drag image over application and get text from system application,
One more can i update icon when drag start and stop,
Thanks
I am using this library for chat-head type thing.
Device Oreo 8.0
When onCreateListener is empty,the drag/touch is smooth,but when you perform something in it the touch/drag area is little hard to find (works sometimes but not everytime)
Bump @HamedTaherpour
Regards.
Hi,
On Android 10,I am using this for taking a quick text note. But the problem is, EditText not get focused and keyboard doesn't appear and so I can't type in (Outside is usable)
Regards..
How i disable your floating bar was out side window touch please tell me . and your floating was not disable smoothly it was take some minor time.
In Android 10 the app crashes when using library with the following error:
2020-05-24 22:47:55.759 14083-14083/com.powerpoint45.dtube E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.powerpoint45.dtube, PID: 14083
java.lang.RuntimeException: Unable to start service io.hamed.floatinglayout.FloatingLayoutService@762835b with Intent { cmp=com.powerpoint45.dtube/io.hamed.floatinglayout.FloatingLayoutService (has extras) }: android.view.WindowManager$BadTokenException: Unable to add window android.view.ViewRootImpl$W@bad026a -- permission denied for window type 2038
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4105)
at android.app.ActivityThread.access$1800(ActivityThread.java:219)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1891)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
Caused by: android.view.WindowManager$BadTokenException: Unable to add window android.view.ViewRootImpl$W@bad026a -- permission denied for window type 2038
at android.view.ViewRootImpl.setView(ViewRootImpl.java:955)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:387)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:95)
at io.hamed.floatinglayout.FloatingLayoutService.createView(FloatingLayoutService.kt:98)
at io.hamed.floatinglayout.FloatingLayoutService.onStart(FloatingLayoutService.kt:61)
at android.app.Service.onStartCommand(Service.java:503)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4087)
This might help solve the issue: https://stackoverflow.com/questions/46208897/android-permission-denied-for-window-type-2038-using-type-application-overlay
I don't want to the drag to happen, is there any configuration for that?
//not found FloatingLayout.CallBack() in kt file
FloatingLayout floatingLayout = new FloatingLayout(this, R.layout.floating_layout, new FloatingLayout.CallBack() {
@OverRide
public void onClickListener(int resourceId) {
}
@Override
public void onCreateListener(View view) {
}
@Override
public void onCloseListener() {
}
});
When I run it, it pops up in the middle of the screen. How do I make it float to the top?
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.