forked from davemorrissey/subsampling-scale-image-view
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9037a85
commit 00cce30
Showing
57 changed files
with
2,442 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
File renamed without changes
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> | ||
<solid android:color="#333333" /> | ||
</shape> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> | ||
<solid android:color="#0099CC" /> | ||
</shape> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> | ||
<solid android:color="#770099cc" /> | ||
</shape> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item android:state_focused="true" android:state_pressed="false" | ||
android:drawable="@drawable/button_standout_pressed" /> | ||
<item android:state_focused="true" android:state_pressed="true" | ||
android:drawable="@drawable/button_standout_pressed" /> | ||
<item android:state_focused="false" android:state_pressed="true" | ||
android:drawable="@drawable/button_standout_pressed" /> | ||
<item android:drawable="@drawable/button_standout_inactive"/> | ||
</selector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item android:state_focused="true" android:state_pressed="false" | ||
android:drawable="@drawable/button_transparent_pressed" /> | ||
<item android:state_focused="true" android:state_pressed="true" | ||
android:drawable="@drawable/button_transparent_pressed" /> | ||
<item android:state_focused="false" android:state_pressed="true" | ||
android:drawable="@drawable/button_transparent_pressed" /> | ||
<item android:drawable="@drawable/transparent"/> | ||
</selector> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> | ||
<solid android:color="#00000000" /> | ||
</shape> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:id="@+id/content" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" > | ||
|
||
<RelativeLayout | ||
android:id="@+id/text" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentBottom="true" | ||
android:background="#333"> | ||
<ImageView | ||
android:id="@+id/previous" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentLeft="true" | ||
android:layout_centerVertical="true" | ||
android:background="@drawable/buttonstate_transparent" | ||
android:visibility="invisible" | ||
android:paddingLeft="8dp" | ||
android:paddingRight="8dp" | ||
android:paddingTop="18dp" | ||
android:paddingBottom="18dp" | ||
android:src="@drawable/previous"/> | ||
|
||
<ImageView | ||
android:id="@+id/next" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentRight="true" | ||
android:layout_centerVertical="true" | ||
android:background="@drawable/buttonstate_transparent" | ||
android:paddingLeft="8dp" | ||
android:paddingRight="8dp" | ||
android:paddingTop="18dp" | ||
android:paddingBottom="18dp" | ||
android:src="@drawable/next"/> | ||
|
||
<ImageView | ||
android:id="@+id/play" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_toLeftOf="@id/next" | ||
android:layout_centerVertical="true" | ||
android:background="@drawable/buttonstate_transparent" | ||
android:paddingLeft="8dp" | ||
android:paddingRight="8dp" | ||
android:paddingTop="18dp" | ||
android:paddingBottom="18dp" | ||
android:src="@drawable/play"/> | ||
|
||
<TextView | ||
android:id="@+id/note" | ||
android:layout_height="wrap_content" | ||
android:layout_width="match_parent" | ||
android:layout_toLeftOf="@id/play" | ||
android:layout_toRightOf="@id/previous" | ||
android:layout_centerVertical="true" | ||
android:padding="10dp" | ||
android:textSize="14sp" | ||
android:textColor="#FFFFFF"/> | ||
|
||
</RelativeLayout> | ||
|
||
<com.davemorrissey.labs.subscaleview.sample.extension.views.PinView | ||
android:id="@+id/imageView" | ||
android:layout_alignParentTop="true" | ||
android:layout_above="@+id/text" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"/> | ||
|
||
</RelativeLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:id="@+id/content" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" > | ||
|
||
<FrameLayout android:id="@+id/frame" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"/> | ||
|
||
</RelativeLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:id="@+id/content" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" > | ||
|
||
<RelativeLayout | ||
android:id="@+id/text" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentBottom="true" | ||
android:background="#333"> | ||
<ImageView | ||
android:id="@+id/previous" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentLeft="true" | ||
android:layout_centerVertical="true" | ||
android:background="@drawable/buttonstate_transparent" | ||
android:paddingLeft="8dp" | ||
android:paddingRight="8dp" | ||
android:paddingTop="18dp" | ||
android:paddingBottom="18dp" | ||
android:src="@drawable/previous"/> | ||
|
||
<ImageView | ||
android:id="@+id/next" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentRight="true" | ||
android:layout_centerVertical="true" | ||
android:background="@drawable/buttonstate_transparent" | ||
android:paddingLeft="8dp" | ||
android:paddingRight="8dp" | ||
android:paddingTop="18dp" | ||
android:paddingBottom="18dp" | ||
android:src="@drawable/next"/> | ||
|
||
<TextView | ||
android:id="@+id/note" | ||
android:layout_height="wrap_content" | ||
android:layout_width="match_parent" | ||
android:layout_toLeftOf="@id/next" | ||
android:layout_toRightOf="@id/previous" | ||
android:layout_centerVertical="true" | ||
android:text="A slightly more advanced example, this shows a circle that will move and scale with the image. (Due to a limitation in Android, this circle may disappear when it's larger than 2048px.)" | ||
android:padding="10dp" | ||
android:textSize="14sp" | ||
android:textColor="#FFFFFF"/> | ||
|
||
</RelativeLayout> | ||
|
||
<com.davemorrissey.labs.subscaleview.sample.extension.views.CircleView | ||
android:id="@+id/imageView" | ||
android:layout_alignParentTop="true" | ||
android:layout_above="@+id/text" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"/> | ||
|
||
</RelativeLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:id="@+id/content" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" > | ||
|
||
<RelativeLayout | ||
android:id="@+id/text" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentBottom="true" | ||
android:background="#333"> | ||
<ImageView | ||
android:id="@+id/previous" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentLeft="true" | ||
android:layout_centerVertical="true" | ||
android:background="@drawable/buttonstate_transparent" | ||
android:paddingLeft="8dp" | ||
android:paddingRight="8dp" | ||
android:paddingTop="18dp" | ||
android:paddingBottom="18dp" | ||
android:src="@drawable/previous"/> | ||
|
||
<ImageView | ||
android:id="@+id/next" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentRight="true" | ||
android:layout_centerVertical="true" | ||
android:background="@drawable/buttonstate_transparent" | ||
android:visibility="invisible" | ||
android:paddingLeft="8dp" | ||
android:paddingRight="8dp" | ||
android:paddingTop="18dp" | ||
android:paddingBottom="18dp" | ||
android:src="@drawable/next"/> | ||
|
||
<ImageView | ||
android:id="@+id/reset" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_toLeftOf="@id/next" | ||
android:layout_centerVertical="true" | ||
android:background="@drawable/buttonstate_transparent" | ||
android:paddingLeft="8dp" | ||
android:paddingRight="8dp" | ||
android:paddingTop="18dp" | ||
android:paddingBottom="18dp" | ||
android:src="@drawable/reset"/> | ||
|
||
<TextView | ||
android:id="@+id/note" | ||
android:layout_height="wrap_content" | ||
android:layout_width="match_parent" | ||
android:layout_toLeftOf="@id/reset" | ||
android:layout_toRightOf="@id/previous" | ||
android:layout_centerVertical="true" | ||
android:text="This subclass adds event detection. Draw a freehand line; it will move with the image. (Due to a limitation in Android, your drawing may disappear when it's larger than 2048px.)" | ||
android:padding="10dp" | ||
android:textSize="14sp" | ||
android:textColor="#FFFFFF"/> | ||
|
||
</RelativeLayout> | ||
|
||
<com.davemorrissey.labs.subscaleview.sample.extension.views.FreehandView | ||
android:id="@+id/imageView" | ||
android:layout_alignParentTop="true" | ||
android:layout_above="@+id/text" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"/> | ||
|
||
</RelativeLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:id="@+id/content" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" > | ||
|
||
<RelativeLayout | ||
android:id="@+id/text" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentBottom="true" | ||
android:background="#333"> | ||
<ImageView | ||
android:id="@+id/previous" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentLeft="true" | ||
android:layout_centerVertical="true" | ||
android:background="@drawable/buttonstate_transparent" | ||
android:visibility="invisible" | ||
android:paddingLeft="8dp" | ||
android:paddingRight="8dp" | ||
android:paddingTop="18dp" | ||
android:paddingBottom="18dp" | ||
android:src="@drawable/previous"/> | ||
|
||
<ImageView | ||
android:id="@+id/next" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentRight="true" | ||
android:layout_centerVertical="true" | ||
android:background="@drawable/buttonstate_transparent" | ||
android:paddingLeft="8dp" | ||
android:paddingRight="8dp" | ||
android:paddingTop="18dp" | ||
android:paddingBottom="18dp" | ||
android:src="@drawable/next"/> | ||
|
||
<TextView | ||
android:id="@+id/note" | ||
android:layout_height="wrap_content" | ||
android:layout_width="match_parent" | ||
android:layout_toLeftOf="@id/next" | ||
android:layout_toRightOf="@id/previous" | ||
android:layout_centerVertical="true" | ||
android:text="This view class extends the image view, and adds a pin anchored to a point on the image." | ||
android:padding="10dp" | ||
android:textSize="14sp" | ||
android:textColor="#FFFFFF"/> | ||
|
||
</RelativeLayout> | ||
|
||
<com.davemorrissey.labs.subscaleview.sample.extension.views.PinView | ||
android:id="@+id/imageView" | ||
android:layout_alignParentTop="true" | ||
android:layout_above="@+id/text" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"/> | ||
|
||
</RelativeLayout> |
Oops, something went wrong.