fdonzello / android-zoom-view Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/android-zoom-view
Automatically exported from code.google.com/p/android-zoom-view
What steps will reproduce the problem?
1. Include the ZoomView in an existing layout, for example as a FrameLayout
child.
2. Run the application.
3. Crash.
What is the expected output? What do you see instead?
I expect the ZoomView to be placed inside it's parent view. Exception thrown
instead:
java.lang.RuntimeException: Unable to start activity ComponentInfo
-> Caused by: android.view.InflateException: Binary XML file line #7: Error inflating class pl.polidea.view.ZoomView
-> Caused by: java.lang.NoSuchMethodException: <init> [class android.content.Context, interface android.util.AttributeSet]
The problem is that ZoomView does not provide alternative constructors that
accept layout parameters. I fixed adding these two:
public ZoomView(Context context, AttributeSet attrs) {
this(context, attrs, 0);
}
public ZoomView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
}
Now it look to work well.
Original issue reported on code.google.com by [email protected]
on 19 Feb 2013 at 9:14
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 [email protected]
on 3 Apr 2013 at 8:13
My question is quite simple, how to ue ZoomView ?
I have put the jar in my buildpath, but after ?
When I tried this into myview.xml:
<ZoomView>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginBottom="5dip"
android:src="@drawable/plan" />
</ZoomView>
It crashes.
Original issue reported on code.google.com by [email protected]
on 29 Jan 2013 at 9:40
1. Set max zoom factor to 4
2. Double click the image to enlarge to maximum
3. Scroll the image inside the videw
Scrolling should be limited to the physical view bounds of the image, so for
example, if the top of the enlarged image reaches the physical view top zooming
should stop.
I tried various options, however I could not get any of these solutions working
with your implementation. Could you provide me with a solution?
http://stackoverflow.com/questions/7532128/how-to-keep-an-image-inside-the-scree
n-limits-while-using-pinch-zoom-and-drag-ge
http://stackoverflow.com/questions/4227451/android-imageview-setting-drag-and-pi
nch-zoom-parameters
Original issue reported on code.google.com by [email protected]
on 4 Sep 2013 at 8:46
What steps will reproduce the problem?
1.Create Zoomable View
2.Add new view dynamically from code.
3.Observe the screen
What is the expected output? What do you see instead?
>Subviews added dynamically should be displayed
What version of the product are you using? On what operating system?
>>I am using code from zip provided.
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 10 Apr 2014 at 11:46
Thanks for your jar.
I am fetching one issue when I will zoom or move, Child objects get blur for
some milliseconds.
May you help me on that pls?
Original issue reported on code.google.com by [email protected]
on 20 Nov 2013 at 9:45
First of all..Thank you for this amazing and efficient library.
I have attached ZoomView class with little modification.
I wanted to catch all the methods from listener and existing implementation was
returning them but sometimes zoom ended was not detected.So i have merged
single and double touch events in one and now it is working like a charm..
The only problem is not every time but most of the time view changes its little
position on zoom ended time.
Can you help me with this?
Original issue reported on code.google.com by [email protected]
on 12 Jun 2013 at 12:35
Attachments:
How difficult would it be to add zoom reduction < 1.0f?
Currently my initial view is about 3 times screen width and I'd like to be able
to zoom out from initial zoom
Many thanks in adance
Original issue reported on code.google.com by [email protected]
on 10 Feb 2014 at 3:13
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.