Giter VIP home page Giter VIP logo

Comments (32)

Amritpal33 avatar Amritpal33 commented on August 19, 2024

Hi Pedrovgs,
I am using your library in one of the high scale commercial Application.

Could you please help me resolving how can i support both resizing and Landscape mode.
Also the Bottom fragment gets overlapped to topFragment.

Your support will be highly appreciated.

Thanks.

from draggablepanel.

pedrovgs avatar pedrovgs commented on August 19, 2024

I can't right now because I'm working in other projects, sorry. Can you upload some screenshots with your problems. The VideoView problem in landscape is already know but I can't reproduce the other problem :S.

from draggablepanel.

Fiddl3 avatar Fiddl3 commented on August 19, 2024

check my fork:
Fiddl3@c91dde4

I tested the library in my application, but you need to test this yourself

if you target pre KitKat devices (API < 16) you need to handle window flags in activity

    @Override
    public void onConfigurationChanged(final Configuration newConfig) {
        super.onConfigurationChanged(newConfig);
        if (Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN){
            if (newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE) {
                getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
                getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
            } else {
                getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
            }
        }
    }

from draggablepanel.

Amritpal33 avatar Amritpal33 commented on August 19, 2024

Hi Fiddl3,
Thanks alot for your Fixes. i tried to run your branch and the secondview issue and resizing is working perfectly.

How Landscape mode changing is Throwing Number Format Exception.Here are the Logs:

11-30 18:03:39.196: E/AndroidRuntime(12005): java.lang.NumberFormatException: Invalid float: ""
11-30 18:03:39.196: E/AndroidRuntime(12005): at java.lang.StringToReal.invalidReal(StringToReal.java:63)
11-30 18:03:39.196: E/AndroidRuntime(12005): at java.lang.StringToReal.parseFloat(StringToReal.java:289)
11-30 18:03:39.196: E/AndroidRuntime(12005): at java.lang.Float.parseFloat(Float.java:300)
11-30 18:03:39.196: E/AndroidRuntime(12005): at android.content.res.TypedArray.getFloat(TypedArray.java:288)
11-30 18:03:39.196: E/AndroidRuntime(12005): at com.github.pedrovgs.DraggableView$1.onGlobalLayout(DraggableView.java:359)
11-30 18:03:39.196: E/AndroidRuntime(12005): at android.view.ViewTreeObserver.dispatchOnGlobalLayout(ViewTreeObserver.java:847)

Please check what could be done to fix this.

once Again Thanks alot.

from draggablepanel.

Fiddl3 avatar Fiddl3 commented on August 19, 2024

You are using DraggablePanel or DraggableView in your layout??
I'll look in to it tomorrow, and test in sample app.

from draggablepanel.

Amritpal33 avatar Amritpal33 commented on August 19, 2024

I am using Draggable Panel. i replace the value with hardcoded 2.0(random x scale factor and everything works fine.)

from draggablepanel.

pedrovgs avatar pedrovgs commented on August 19, 2024

@Fiddl3 are you going to send me a pull request?

from draggablepanel.

Fiddl3 avatar Fiddl3 commented on August 19, 2024

Tomorrow I'll work on this...
I'm going to remove part responsible for hiding status and nav bars, because it's depend on API level, ant can be confusing for developers.

Then I'll send pull request .

EDIT:
I'll add xml attribute for auto fullscreen mode.

from draggablepanel.

pedrovgs avatar pedrovgs commented on August 19, 2024

Please, update your branch with develop to avoid conflicts ;)

Thanks!

from draggablepanel.

pedrovgs avatar pedrovgs commented on August 19, 2024

I've also fixed one issue related with the horizontal drag effect. Review this branch if you need it: https://github.com/pedrovgs/DraggablePanel/tree/fix-horizontal-drag-problems

I'm going to integrate it once the reporter of the issue tell me it's working as expected.

from draggablepanel.

Fiddl3 avatar Fiddl3 commented on August 19, 2024

There will be one problem...
In my version scaleFactor work differently. drag view is scaled to 1/scaleFactor of its original size. now only for scaleFactor=2 it match your calculations (In last commit I accidentally reverted changes in scaleTransformer).

This may be confusing for devs who use the library, but I think that this approach (for calculation) makes more sense (its more logical)

from draggablepanel.

pedrovgs avatar pedrovgs commented on August 19, 2024

Please, send me an email to [email protected] with every detail to avoid retro compatibility problems and talk about this :)

I've also added one checkstyle configuration to the project and linked it to the travis CI build. Review this in your branch once be updated with development tip.

Thanks for your help!!!

from draggablepanel.

Fiddl3 avatar Fiddl3 commented on August 19, 2024

No problem.

I'll email you, but not today.
There was a "small" party last night and... I can't think straight right now.

from draggablepanel.

Amritpal33 avatar Amritpal33 commented on August 19, 2024

Hi Fiddl3,
I am constantly facing Number Format Exception while using DraggablePanel class in the following line:

float yScaleFactor = attributes.getFloat(R.styleable.draggable_view_top_view_y_scale_factor, DEFAULT_SCALE_FACTOR);

Here are the Logs:

12-01 11:48:40.502: E/AndroidRuntime(3621): java.lang.NumberFormatException: Invalid float: "48.0dip"
12-01 11:48:40.502: E/AndroidRuntime(3621): at java.lang.StringToReal.invalidReal(StringToReal.java:63)
12-01 11:48:40.502: E/AndroidRuntime(3621): at java.lang.StringToReal.parseFloat(StringToReal.java:310)
12-01 11:48:40.502: E/AndroidRuntime(3621): at java.lang.Float.parseFloat(Float.java:300)
12-01 11:48:40.502: E/AndroidRuntime(3621): at android.content.res.TypedArray.getFloat(TypedArray.java:288)
12-01 11:48:40.502: E/AndroidRuntime(3621): at com.github.pedrovgs.DraggableView$1.onGlobalLayout(DraggableView.java:363)
12-01 11:48:40.502: E/AndroidRuntime(3621): at android.view.ViewTreeObserver.dispatchOnGlobalLayout(ViewTreeObserver.java:815)
12-01 11:48:40.502: E/AndroidRuntime(3621): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1778)
12-01 11:48:40.502: E/AndroidRuntime(3621): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:996)
12-01 11:48:40.502: E/AndroidRuntime(3621): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5600)
12-01 11:48:40.502: E/AndroidRuntime(3621): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:761)
12-01 11:48:40.502: E/AndroidRuntime(3621): at android.view.Choreographer.doCallbacks(Choreographer.java:574)
12-01 11:48:40.502: E/AndroidRuntime(3621): at android.view.Choreographer.doFrame(Choreographer.java:544)
12-01 11:48:40.502: E/AndroidRuntime(3621): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747)

Please Let me Know how can i fix this.

from draggablepanel.

Fiddl3 avatar Fiddl3 commented on August 19, 2024

draggable_view_top_view_y_scale_factor should be set as float value, not dimesion,

from draggablepanel.

dangalg avatar dangalg commented on August 19, 2024

I have fixed this in my branch but don't know how to share it with you

from draggablepanel.

Fiddl3 avatar Fiddl3 commented on August 19, 2024

I'm working on fullscreen support for ResizeTransformer on this branch: https://github.com/Fiddl3/DraggablePanel/tree/LanscapeMode-feature.
It's synchronized with develop, you can clone this branch and make your changes.

from draggablepanel.

dangalg avatar dangalg commented on August 19, 2024

I fixed the landscape problem... does anyone hear me?? Pedro?

from draggablepanel.

pedrovgs avatar pedrovgs commented on August 19, 2024

Hi @dangalg. If you have fixed the landscape problem, why don't you send me a pull request?

from draggablepanel.

dangalg avatar dangalg commented on August 19, 2024

I don't know how....

On Wed, Dec 10, 2014 at 3:15 PM, Pedro Vicente Gómez Sánchez <
[email protected]> wrote:

Hi @dangalg https://github.com/dangalg. If you have fixed the landscape
problem, why don't you send me a pull request?


Reply to this email directly or view it on GitHub
#22 (comment)
.

from draggablepanel.

pedrovgs avatar pedrovgs commented on August 19, 2024

Maybe you can start reading some articles about how github works http://readwrite.com/2013/09/30/understanding-github-a-journey-for-beginners-part-1

from draggablepanel.

dangalg avatar dangalg commented on August 19, 2024

I work with sourcetree and I am getting these errors when trying to create
a pull request:

git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags
--set-upstream origin dangal:master
Pushing to https://[email protected]/pedrovgs/DraggablePanel.git

remote: Permission to pedrovgs/DraggablePanel.git denied to dangalg.
fatal: unable to access '
https://[email protected]/pedrovgs/DraggablePanel.git/': The requested URL
returned error: 403

Completed with errors, see above.

On Wed, Dec 10, 2014 at 3:19 PM, Pedro Vicente Gómez Sánchez <
[email protected]> wrote:

Maybe you can start reading some articles about how github works
http://readwrite.com/2013/09/30/understanding-github-a-journey-for-beginners-part-1


Reply to this email directly or view it on GitHub
#22 (comment)
.

from draggablepanel.

pedrovgs avatar pedrovgs commented on August 19, 2024

That's normal, you are trying to push to my repository and you don't have permissions to do that. Review some articles about github and how to use it. You have to fork my project and clone your fork, not this repo. Change your repository code and then send me a pull request.

from draggablepanel.

dangalg avatar dangalg commented on August 19, 2024

ok fine, maybe I'll join fiddles branch because he is working on it as well

On Wed, Dec 10, 2014 at 3:36 PM, Pedro Vicente Gómez Sánchez <
[email protected]> wrote:

That's normal, you are trying to push to my repository and you don't have
permissions to do that. Review some articles about github and how to use
it. You have to fork my project and clone your fork, not this repo. Change
your repository code and then send me a pull request.


Reply to this email directly or view it on GitHub
#22 (comment)
.

from draggablepanel.

vuhung3990 avatar vuhung3990 commented on August 19, 2024

hello, i have same problem when landscape it show a half of width. now i can set top fragment width match_parent, do you want something like this?

from draggablepanel.

dangalg avatar dangalg commented on August 19, 2024

Its easy to fix..
בתאריך 18 בדצמ 2014 07:27, מאת "vuhung3990" [email protected]:

hello, i have same problem when landscape it show a half of width. now i
can set top fragment width match_parent, do you want something like this?


Reply to this email directly or view it on GitHub
#22 (comment)
.

from draggablepanel.

vuhung3990 avatar vuhung3990 commented on August 19, 2024

good job @dangalg , i spent much time to fix it

from draggablepanel.

pedrovgs avatar pedrovgs commented on August 19, 2024

Guys? How is this issue. Have you already fixed this? I'm waiting for your PR.

from draggablepanel.

pedrovgs avatar pedrovgs commented on August 19, 2024

@Fiddl3 are you working on this? What's the state of this feature?

from draggablepanel.

Fiddl3 avatar Fiddl3 commented on August 19, 2024

Now I'm working on my engineering degree (Home automation project) and I don't have any time for this. I hope in second half of February this'll change.

from draggablepanel.

pedrovgs avatar pedrovgs commented on August 19, 2024

Ok! Good luck with your personal project!!!

from draggablepanel.

ScottCooper92 avatar ScottCooper92 commented on August 19, 2024

Hey @Fiddl3 did you ever get around to implementing this and sending a pull request?

from draggablepanel.

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.