Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Popup does not use full width on Galaxy Nexus #11

Open
corwin42 opened this issue Mar 15, 2012 · 4 comments
Open

Popup does not use full width on Galaxy Nexus #11

corwin42 opened this issue Mar 15, 2012 · 4 comments

Comments

@corwin42
Copy link

See title.

There is a gap to the right on a galaxy nexus. I don't have an idea why. Can somone confirm this?
I have tried in the emulator with tablet sizes and this works well. Just the Galaxy Nexus resolution of 720x1184 320dpi has this strange gap.

@lorensiuswlt
Copy link
Owner

Hi, could you give me the screenshot? thanx.

@corwin42
Copy link
Author

corwin42 commented Apr 4, 2012

Hmm, this is strange. It seems that the example code shows the popup correct.

I did make a version of your library project for Basic4Android and there it doesn't span to the whole width. See this image: http://db.tt/590mGU4u
The layout files are identical to your version.

The strange thing is that the problem only occurs on the Galaxy Nexus. All other screen resolutions I have tested (HVGA, WVGA, Tablet sizes) work as expected.

I don't have an idea where the problem can be.

@lorensiuswlt
Copy link
Owner

I see, i found the problem on galaxy tab 10.1 also. That might be caused by higher screen resolution on Galaxy Nexus.

@jaredliuji
Copy link

modify
PopupWindows mWindow.setWidth(WindowManager.LayoutParams.MATCH_PARENT);
QuickAction mRootView.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT));
quickaction.xml android:layout_width="match_parent" in RelativeLayout root node
could make the popup fill the whole width

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants