[Ssc-dev] my updates to ImageRegion
Shawn Van Every
vanevery at walking-productions.com
Sat Apr 23 14:51:20 EDT 2011
Thanks Nathan,
I am working on it for a bit right now.
I am commenting out the long click within the "move region" since there is a menu item for deleting the region and it is likely to get unintentionally triggered as someone is moving a region around. I did implement the menu item though so the ability is still there.
Also, I cleaned up the ImageEditor long click so that it doesn't willy nilly create regions as you zoom and pan around an image.
With regards to the ImageRegion editing, I got a bit further. First I had to make the "MoveRegion" to occupy the entire space since the onTouch events weren't being generated on the FrameLayout itself. (Strange)
Second, I had to implement onTouchEvent to receive the stream of ACTION_MOVE events as onTouch itself is only getting the first one. It works a bit better.
Third, onTouch, ACTION_DOWN is when we choose what to move (corners or whole thing).
It is getting there but I am still frustrated by it.
If you make any progress tonight, let me know.
-shawn
On Apr 23, 2011, at 7:23 AM, Nathan of Guardian wrote:
> Shawn (mostly),
>
> I've checked a number of changes to ImageRegion, chief of which is that
> instead of inflating the imageregioninner.xml layout and attaching it as
> a subview of the main ImageRegion FrameLayout, I actually attach it to
> the ImageRegion as the root viewgroup.
>
> I think that having a FrameLayout inside of a FrameLayout might have
> been doing bad things.
>
> In addition, I have added the LongClick handler as a way to add/delete
> imageregions, while the click just activates the popup menu.
>
> With all this though, I still haven't been able to improve upon the drag
> resize/move code, though I hope to tonight. I won't be working on
> anything today until at least 9pm, so will keep an eye out for anything
> that gets checked in there.
>
> Otherwise, I will be working to integrate the encryption with Harlo's
> MDH code, as well the full file encryption on save.
>
> Word!
> _______________________________________________
> Ssc-dev mailing list
>
> Post: Ssc-dev at lists.mayfirst.org
> List info: https://lists.mayfirst.org/mailman/listinfo/ssc-dev
>
> To Unsubscribe
> Send email to: Ssc-dev-unsubscribe at lists.mayfirst.org
> Or visit: https://lists.mayfirst.org/mailman/options/ssc-dev/vanevery%40walking-productions.com
>
> You are subscribed as: vanevery at walking-productions.com
Shawn Van Every
vanevery at walking-productions.com
Mobile and Streaming Consulting
http://www.walking-productions.com/notslop
Author: Pro Android Media: http://amzn.to/eYb48C
More information about the Ssc-dev
mailing list