-
-
Notifications
You must be signed in to change notification settings - Fork 255
Need zoom feature and Download vector graphics from server feature #45
Comments
I like your suggestions, I will be more than happy if you created a pull
request for each feature.
…On Tue, 5 Mar 2019, 6:53 PM Anish Kumar, ***@***.***> wrote:
Hi Tarek,
I like your library. I have very useful and powerful. But two features are
missing in your library.
1. Zoom feature. It will help to fill the path tiny places.
2. If we have put graphic xml file on the server or in the sdcard.
then it should be load by your library.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#45>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIN3WIGL3_dC4UeyV2n6-EvZ0aENMjSWks5vTlqqgaJpZM4bebuE>
.
|
Hi Tarek. I happy you replied about my query. |
I have created the pull requests |
please how about the zoom ? |
Zoom functionality like we have in photo library. And we can change path
color in zoom mode too.
…On Thu, Jan 30, 2020, 00:04 Amine LAHRIM ***@***.***> wrote:
please how about the zoom ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#45?email_source=notifications&email_token=ACEW7ZZT6MS7PXN3QK6ZZPTRAHK4XA5CNFSM4G3ZXOCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKIIRTQ#issuecomment-579897550>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACEW7Z65QHO6DQ2JMKT3KQLRAHK4XANCNFSM4G3ZXOCA>
.
|
Hi, @AmineLAHRIM could you explain more about your use case? |
Yes i need zoon path level too. So we can event this path is clicked in
zoom mode. I tried to implement this but fail.
…On Thu, Jan 30, 2020, 09:34 Ahmed Tarek ***@***.***> wrote:
Hi,
@anishkumar11 <https://github.com/anishkumar11> where is that pull
request?
@AmineLAHRIM <https://github.com/AmineLAHRIM> could you explain more
about your use case?
do you need to zoom at the level of the path or the view?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#45?email_source=notifications&email_token=ACEW7ZY4QDMXFTZ7HHBKCRLRAJGUVA5CNFSM4G3ZXOCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKJTQGQ#issuecomment-580073498>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACEW7ZZOJ5FQ5JH77V2UFV3RAJGUVANCNFSM4G3ZXOCA>
.
|
just in view i try with TouchImageView.java and extends from RichPathView the Zoom not working but if the class extends from the SVGImageView that from the library of AndroidSVG it works but the problem that i need to work on your library because of having some great functionality and thank you so much Tarek. for your reply TouchImageView.java => the right problem is in RichPathDrawale because if i make set imageDrawable(A_SIMPLE_DRAWABLE) the zoom work but if I make imageDrawable(richPathDrawable) the zoom didn't work because of extendes methods like draw() ononBoundsChange() ... but finally we need that richPathDrawable because is part of the library. |
Yes correct these problems were arise when i try to modifed your library.
…On Thu, Jan 30, 2020, 17:45 Amine LAHRIM ***@***.***> wrote:
the right problem is in RichPathDrawale because if i make set
imageDrawable(A_SIMPLE_DRAWABLE) the zoom work but if I make
imageDrawable(richPathDrawable) the zoom didn't work because of extendes
methods like draw() ononBoundsChange() ...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#45?email_source=notifications&email_token=ACEW7Z6HTV4GYG4RRYTU7N3RALHGDA5CNFSM4G3ZXOCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKKYUMY#issuecomment-580225587>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACEW7Z7RTORDRJQKWRLR7JDRALHGDANCNFSM4G3ZXOCA>
.
|
sI
…On Thu, Jan 30, 2020, 09:34 Ahmed Tarek ***@***.***> wrote:
Hi,
@anishkumar11 <https://github.com/anishkumar11> where is that pull
request?
@AmineLAHRIM <https://github.com/AmineLAHRIM> could you explain more
about your use case?
do you need to zoom at the level of the path or the view?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#45?email_source=notifications&email_token=ACEW7ZY4QDMXFTZ7HHBKCRLRAJGUVA5CNFSM4G3ZXOCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKJTQGQ#issuecomment-580073498>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACEW7ZZOJ5FQ5JH77V2UFV3RAJGUVANCNFSM4G3ZXOCA>
.
|
@AmineLAHRIM cool, you have figured where the problem with a zoom view, are you able to fix that in RichPathDrawabl? What exactly is going wrong in RichPathDrawabl? |
@tarek360 we cloud not fix it i try so hard about everyday with no result could you please help us |
@AmineLAHRIM I checked it and I found that TouchImageView.java is an ImageView but in your case, you need a ViewGroup, you need a layout to wrap the RichPathView to be able to zoom. There are many many samples on the internet for zoom layout, I found one of them here here is an example I tested and the zoom works: <com.shopgun.android.zoomlayout.ZoomLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/touchImageView"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.richpath.RichPathView
android:id="@+id/ic_command"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
app:vector="@drawable/ic_command" />
</com.shopgun.android.zoomlayout.ZoomLayout> |
Oh my god Thank you for your simple solution that I never think about it.
…On Sat, Feb 1, 2020, 3:41 AM Ahmed Tarek ***@***.***> wrote:
@AmineLAHRIM <https://github.com/AmineLAHRIM> I checked it and I found
that TouchImageView.java
<https://gist.github.com/Antarix/65cfc180c05524ce616f> is an ImageView
but in your case, you need a ViewGroup, you need a layout to wrap the
RichPathView to be able to zoom.
There are many many samples on the internet for zoom layout, I found one
of them here <https://github.com/shopgun/zoomlayout>
here is an example I tested and the zoom works:
<com.shopgun.android.zoomlayout.ZoomLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/touchImageView"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.richpath.RichPathView
android:id="@+id/ic_command"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
***@***.***/ic_command" />
</com.shopgun.android.zoomlayout.ZoomLayout>
[image: zoom]
<https://user-images.githubusercontent.com/8615768/73585700-420c1680-44d6-11ea-8fbe-748f0032049a.gif>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#45?email_source=notifications&email_token=AJRGIMBBJ6QCNMO4G7XYAJTRATOM3A5CNFSM4G3ZXOCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKQRPBQ#issuecomment-580982662>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJRGIMAUNSVT32HQU7S6W2TRATOM3ANCNFSM4G3ZXOCA>
.
|
but there is a single problem when you zoom you can't apply any click listener effect in RichPathView:
|
i hight recommend to download the zoomlayout source code and edit it like the following instructions:
|
So it works now? |
Yeap with two-finger zoom and one finger drag and one-click coloring. |
special thanks to you tarek. |
Are you doing a coloring book app? |
Yes am trying 😃
…On Sat, Feb 1, 2020, 3:19 PM Ahmed Tarek ***@***.***> wrote:
Are you doing a coloring book app?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#45?email_source=notifications&email_token=AJRGIMCONT75JT5A5VDHS6DRAWAGBA5CNFSM4G3ZXOCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKQ6EAA#issuecomment-581034496>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJRGIMG3ZDSSD5D7DVROCJDRAWAGBANCNFSM4G3ZXOCA>
.
|
Remembering what @tarek360 said about the ZoomLayout, I found that this ZoomLayout works fine and allows images to still have their click listener in the RichPathView as long as it has hasClickableChildren set to true. |
Hi Tarek,
I like your library. I have very useful and powerful. But two features are missing in your library.
The text was updated successfully, but these errors were encountered: