[android-developers] Re: Android circular seek bar

2012-12-13 Thread djhacktor
@ bob thanks for reply can u send me your java implementation because its hard to under stands , from your file i can try to get whats ur code is doing -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to

[android-developers] Re: Android circular seek bar

2012-12-13 Thread bob
Hi Dj. Here is the fragment shader that does the polar coordinates I spoke of: #extension GL_OES_EGL_image_external: require uniform samplerExternalOES tex_sampler_0; precision mediump float; varying vec2 v_texcoord; const float PI = 3.14159265358979323846264; const vec2 texOff = vec2(0.0, 0.0)

[android-developers] Re: Android circular seek bar

2012-12-13 Thread skink
djhacktor wrote: > see this image i want this kinda ui > > > and whats your problem exactly? pskink -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscrib

[android-developers] Re: Android circular seek bar

2012-12-13 Thread djhacktor
see this image i want this kinda ui On Thursday, 13 December 2012 17:53:09 UTC+5:30, skink wrote: > > > > djhacktor wrote: > > @ sink i mean that how can i put image in seek bar progressdrawable ( > > image is a circle ) and same with thumb > > > > > > how to put an image in a drawable? i

[android-developers] Re: Android circular seek bar

2012-12-13 Thread skink
djhacktor wrote: > @ sink i mean that how can i put image in seek bar progressdrawable ( > image is a circle ) and same with thumb > > how to put an image in a drawable? i still dont understand... pskink -- You received this message because you are subscribed to the Google Groups "Android De

[android-developers] Re: Android circular seek bar

2012-12-13 Thread djhacktor
@ sink i mean that how can i put image in seek bar progressdrawable ( image is a circle ) and same with thumb On Thursday, 13 December 2012 17:25:28 UTC+5:30, skink wrote: > > > > djhacktor wrote: > > @sink thank for reply there is problem in my ui i need to have track and > > thumb image , t

[android-developers] Re: Android circular seek bar

2012-12-13 Thread skink
djhacktor wrote: > @sink thank for reply there is problem in my ui i need to have track and > thumb image , track is circular and thumb is dial have seen this > aswell http://blog.publicobject.com/2010/04/shush-ringer-restorer-update.html > but m still struggling to put image in canvas of this vi

[android-developers] Re: Android circular seek bar

2012-12-13 Thread djhacktor
@sink thank for reply there is problem in my ui i need to have track and thumb image , track is circular and thumb is dial have seen this aswell http://blog.publicobject.com/2010/04/shush-ringer-restorer-update.html but m still struggling to put image in canvas of this view On Thursday, Decembe

[android-developers] Re: Android circular seek bar

2012-12-13 Thread skink
On 13 Gru, 10:21, djhacktor wrote: > have nt worked on it  i started today and lots of ui component are left so > it will great help if you can provide right resource this is what i need > Reference > :https://lh4.ggpht.com/9qL2sQi6XQYBY2pvgsPyObYS3UM42kRw64ve-GacU3jqW0X... > > you can start w

[android-developers] Re: Android circular seek bar

2012-12-13 Thread djhacktor
Since there is no resource available so i started with extends seek bar import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.util.AttributeSet; import android.view.MotionEvent; import android.widget.Seek

[android-developers] Re: Android circular seek bar

2012-12-13 Thread djhacktor
have nt worked on it i started today and lots of ui component are left so it will great help if you can provide right resource this is what i need Reference : https://lh4.ggpht.com/9qL2sQi6XQYBY2pvgsPyObYS3UM42kRw64ve-GacU3jqW0XTEhARkdCLpmYzzhRULk0r On Thursday, 13 December 2012 14:24:43

[android-developers] Re: Android circular seek bar

2012-12-13 Thread skink
djhacktor wrote: > @sink can u please give me example or code m stuck and totally confused > > you are stuck? what have you done so far? pskink -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android

[android-developers] Re: Android circular seek bar

2012-12-13 Thread djhacktor
@sink can u please give me example or code m stuck and totally confused On Monday, 3 December 2012 13:42:34 UTC+5:30, skink wrote: > > > > djhacktor wrote: > > Hi can any one tell me how to make seek bar in circular shape ?? is > there > > any example ?? > > if you want a seek bar in a circul

[android-developers] Re: Android circular seek bar

2012-12-12 Thread djhacktor
On Monday, 3 December 2012 11:45:23 UTC+5:30, djhacktor wrote: > > Hi can any one tell me how to make seek bar in circular shape ?? is there > any example ?? Reference : https://lh4.ggpht.com/9qL2sQi6XQYBY2pvgsPyObYS3UM42kRw64ve-GacU3jqW0XTEhARkdCLpmYzzhRULk0r -- You received this message

[android-developers] Re: Android circular seek bar

2012-12-12 Thread djhacktor
hi bob m still struggling in understanding your example what i want is Reference : https://lh4.ggpht.com/9qL2sQi6XQYBY2pvgsPyObYS3UM42kRw64ve-GacU3jqW0XTEhARkdCLpmYzzhRULk0r On Monday, 3 December 2012 11:45:23 UTC+5:30, djhacktor wrote: > > Hi can any one tell me how to make seek bar in circ

[android-developers] Re: Android circular seek bar

2012-12-04 Thread bob
pseudo code iterate over all points on destination image foreach (point) { calculate angle to center point of image (hint: use atan2 and subtraction) calculate distance to center point of image (hint: pythagorean theorem and 2d distance formula) Call the angle theta Call the di

[android-developers] Re: Android circular seek bar

2012-12-04 Thread djhacktor
@bob thank for reply but link you provide is using some external library i want native code help need!! On Tuesday, 4 December 2012 02:08:52 UTC+5:30, bob wrote: > > Okay. I think this shows you how to do it in Java: > > (from http://slick.javaunlimited.net/viewtopic.php?p=28303#p28303) > > > Po

[android-developers] Re: Android circular seek bar

2012-12-04 Thread djhacktor
@sink can u please tell seek bar attribute that need to change in order to make them round in shape !! On Monday, 3 December 2012 13:42:34 UTC+5:30, skink wrote: > > > > djhacktor wrote: > > Hi can any one tell me how to make seek bar in circular shape ?? is > there > > any example ?? > > if

[android-developers] Re: Android circular seek bar

2012-12-03 Thread bob
Okay. I think this shows you how to do it in Java: (from http://slick.javaunlimited.net/viewtopic.php?p=28303#p28303) PolarizeShaderTest.java Code: import org.newdawn.slick.AppGameContainer; import org.newdawn.slick.BasicGame; import org.newdawn.slick.Color; import org.newdawn.slick.GameContaine

[android-developers] Re: Android circular seek bar

2012-12-03 Thread djhacktor
@bob its difficult to understand this logic m short of time can you pls give me android specific project or class file that will be appreciated thanks On Tuesday, 4 December 2012 00:11:18 UTC+5:30, bob wrote: > > You will want to see the source code to the GIMP's polar coordinate filter. > > > H

[android-developers] Re: Android circular seek bar

2012-12-03 Thread bob
You will want to see the source code to the GIMP's polar coordinate filter. Here's a little bit: if (pcvals.polrec) { if (wx >= cen_x) { if (wy > cen_y) { phi = G_PI - atan (((double)(wx - cen_x))/

[android-developers] Re: Android circular seek bar

2012-12-03 Thread skink
djhacktor wrote: > thank for reply can you give me some sample code it will be great help > > no, it´s really not so difficult, try it yourself pskink -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to

[android-developers] Re: Android circular seek bar

2012-12-03 Thread djhacktor
thank for reply can you give me some sample code it will be great help On Monday, 3 December 2012 21:06:28 UTC+5:30, bob wrote: > > Here's a sample of how it might > look: > > > On Monday, Decemb

[android-developers] Re: Android circular seek bar

2012-12-03 Thread bob
Here's a sample of how it might look: On Monday, December 3, 2012 12:15:23 AM UTC-6, djhacktor wrote: > > Hi can any one tell me how to make seek bar in circular shape ?? is there > any examp

[android-developers] Re: Android circular seek bar

2012-12-03 Thread bob
You can do this by taking a regular seek bar and drawing it using polar coordinates. Also, be sure to convert the touches from polar coordinates so they can be processed normally. On Monday, December 3, 2012 12:15:23 AM UTC-6, djhacktor wrote: > > Hi can any one tell me how to make seek b

[android-developers] Re: Android circular seek bar

2012-12-03 Thread skink
djhacktor wrote: > Hi can any one tell me how to make seek bar in circular shape ?? is there > any example ?? if you want a seek bar in a circular shape create circular drawable and use custom thumb drawable to adjust thumb to that drawable pskink -- You received this message because you are