ToanMaster / android-zoom-view

Automatically exported from code.google.com/p/android-zoom-view
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

clipped content #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Place view in zoomview 

What is the expected output? What do you see instead?

I expect to automatically adjust the whole layout but it clipped some part of 
the layout.

This is my sample code.

TableLayout table = new TableLayout(this);

        for (int x = 0; x < 10; x++) {
            TableRow row = new TableRow(this);
            for (int i = 0; i < 10; i++) {
                CheckBox c = new CheckBox(this);
                row.addView(c);
            }
            table.addView(row, new TableLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
        }

        ZoomViewUtility zoomView = new ZoomViewUtility(this);
        zoomView.addView(table);

        LinearLayout main_container = (LinearLayout) findViewById(R.id.main_container);
        main_container.addView(zoomView);

Thanks

Original issue reported on code.google.com by joshmet...@gmail.com on 3 Apr 2013 at 8:13

GoogleCodeExporter commented 9 years ago
hi

it looks like your table created inside ZoomView (in this case it seems like 
you renamed it to ZoomViewUtility) is too big

it wouldn't fit in any layout, you'd probably have to use scroll view

at the moment, ZoomView supports only enlarging content, not shrinking it to 
fit any size.

however, it's a very good feature to consider
thanks a lot! i appreciate this!

Original comment by karooo...@gmail.com on 26 Apr 2013 at 10:02

GoogleCodeExporter commented 9 years ago
I'm facing this issue too!
Are you going to bring zoom < 1.0 support to this widget?

Original comment by hlon...@gmail.com on 25 Mar 2014 at 11:03