Skip to content

Commit 99dd24b

Browse files
authored
Merge pull request #18 from odahcam/master
Released version android-1.1.2
2 parents 8c5a33d + 4ccf170 commit 99dd24b

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

README.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# TiTouchImageView Module
2-
================
32

43
Titanium native module wrapper for TouchImageView: https://github.com/MikeOrtiz/TouchImageView
54

@@ -8,23 +7,25 @@ Do you like pinching and zooming on iOS? Wish it just worked on Android too? Her
87
## Get it [![gitTio](http://gitt.io/badge.png)](http://gitt.io/component/org.iotashan.TiTouchImageView)
98
Download the latest distribution ZIP-file and consult the [Titanium Documentation](http://docs.appcelerator.com/titanium/latest/#!/guide/Using_a_Module) on how install it, or simply use the [gitTio CLI](http://gitt.io/cli):
109

11-
`$ gittio install org.iotashan.TiTouchImageView`
10+
```bash
11+
gittio install org.iotashan.TiTouchImageView
12+
```
1213

1314
## Referencing the module in your Ti mobile application
1415

1516
Simply add the following lines to your `tiapp.xml` file:
1617

17-
```
18-
<modules>
19-
<module platform="android">org.iotashan.titouchimageview</module>
20-
</modules>
18+
```xml
19+
<modules>
20+
<module platform="android">org.iotashan.titouchimageview</module>
21+
</modules>
2122
```
2223

2324
To use your module in code, you will need to require it.
2425

25-
```JavaScript
26-
var TiTouchImageView = require('org.iotashan.TiTouchImageView');
27-
var myView = TiTouchImageView.createView();
26+
```javascript
27+
var TiTouchImageView = require('org.iotashan.TiTouchImageView');
28+
var myView = TiTouchImageView.createView();
2829
```
2930

3031
## API Properties
@@ -55,7 +56,7 @@ Accepts a dictonary of properties. TiTouchImageView extends TiUIView, so you can
5556

5657
Resets the zoom to the default value for the view.
5758

58-
### scrollTo(x,y)
59+
### scrollTo(x, y)
5960

6061
Scrolls the view to the point specified.
6162

@@ -65,4 +66,4 @@ Returns the current zoom level as a float.
6566

6667
### getScrollPosition()
6768

68-
Returns the current scroll position as point co-ordinates (x,y)
69+
Returns the current scroll position as point co-ordinates (x, y)

0 commit comments

Comments
 (0)