Detect, Avoid IMSI-Catcher Attacks with Android IMSI-Catcher Detector

Privacy is always an important topic, as well as a delicate one to … more

Materialized LeanDroid Fights Your Poor Battery Life

Battery life has always been one of the biggest problems facing most Android devices. … more

Bump! Workaround for the LG G3 Locked Bootloader – XDA TV

The LG G3 is a power house device. It’s been a favorite of many people. … more

Enable Call Recording on Xperia Z2 and Z3

Call recording, while not legal in every part of the world, is quite handy in certain situations. … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[2nd release]SenseSlider .NET CF Control 0.2

OP LunaticShade

23rd April 2010, 01:04 AM   |  #1  
LunaticShade's Avatar
OP Junior Member
Thanks Meter: 0
 
19 posts
Join Date:Joined: Nov 2007
More
Because the SenseSDK which is available at xda lacks a control for the HTC Slider I tried to create my own.

I finally fixed some bugs and changed a bit of the behavior and here is the first release version of my SenseSlider control.

The 2nd release is ready and stable. See Changelog for further info.

Features:
  • mimics HTC Slider
  • fully functional .net Control
  • does not depend on images for the bar background/slider thumb (drawn at runtime) and therefore allows different color-schemes
  • events for SelectedIndexChanged, StartedSliding, StoppedSliding, OnSliding (Gives thes index of the hovered icon)
  • supports vibration (aka haptic feedback)
  • includes a semi-transparent panel for overlay when sliding
  • does not depend on other control collections (SenseSDK only used for demo application; can be used with any other collection) (does not apply for new version, uses SmartDeviceFrameWork)

changes in the 2nd release:
  • uses the IImaging-Implementation of the SmartDevice-Framework and is now stable and more flexible (load the IImages with SDF in any way and add them to the slider)
  • supports an imagefile as slider thumb (see attached screenshot)
  • great speed improvement (fixed a bug which slowed drawing down)
  • made the source code of the demo application a lot more readable and understandable (or at least I hope so )

I uploaded a demo application to show some of the control's features. The source code for the demo is also available.
To use the Slider in your own applications just add the SenseSlider.dll and instantiate LunaticShade.SenseSlider (see the source of the demo application for details). (The new Version needs also the OpenNETCF Assemblies enclosed in the package or an installed version of the SmartDeviceFramework on the target device)
At this time the control cannot be drawn at designtime (due to heavy P/Invokes) but you can set the properties and events with the property editor.

Please report any bugs you may encounter.

If you got questions just ask
Attached Thumbnails
Click image for larger version

Name:	senseslider.jpg
Views:	2721
Size:	26.5 KB
ID:	316193   Click image for larger version

Name:	senseslider2.jpg
Views:	2665
Size:	42.5 KB
ID:	316194   Click image for larger version

Name:	senseslider3.jpg
Views:	2530
Size:	35.0 KB
ID:	316195   Click image for larger version

Name:	CustomThumbScreen.jpg
Views:	634
Size:	50.9 KB
ID:	409014  
Attached Files
File Type: rar SenseSliderDemo_src.rar - [Click for QR Code] (1.41 MB, 690 views)
Last edited by LunaticShade; 12th May 2011 at 06:56 PM. Reason: new version
23rd April 2010, 08:02 AM   |  #2  
Member
Flag Passau
Thanks Meter: 1
 
81 posts
Join Date:Joined: Oct 2007
More
looks quite interesting. I will give it a try as soon as I can integrate in my apps (testing makes no sense - I also have HD2 )

keep on developing!
Obelix
23rd April 2010, 09:32 PM   |  #3  
Wyatt's Avatar
Junior Member
Flag Nantes
Thanks Meter: 0
 
23 posts
Join Date:Joined: Dec 2007
More
Looks cool ! I'll try it as soon as a release is available !
24th April 2010, 02:45 PM   |  #4  
Senior Member
Flag Prague
Thanks Meter: 19
 
247 posts
Join Date:Joined: Jun 2007
More
Looks nice, not exactly like Sense (no vibration, no left-right/right-left gesture, if I tap&hold some icon and then swipe to left or right, the slider doesn't follow my finger), but good. Can't wait to be able to use it in my apps
26th April 2010, 06:56 PM   |  #5  
LunaticShade's Avatar
OP Junior Member
Thanks Meter: 0
 
19 posts
Join Date:Joined: Nov 2007
More
first release,
see first post
27th April 2010, 10:00 PM   |  #6  
Archer's Avatar
Senior Moderator / Recognized Developer - (Un)Recognized Pole Dancer
Flag Northampton
Thanks Meter: 4,107
 
10
13,899 posts
Join Date:Joined: Jul 2008
More
That's VERY nice mate. I'm also particularly pleased that you used the Sense SDK interface in your demo, as I was considering using this slider in one of my apps that uses the Sense SDK heavily. I'm not considering it any more though - I'm all over it

I'm not currently at a dev machine and therefore can't really check out the control, so I do have one question that I may be able to answer if I looked in the IDE. Can you stop it changing page by sliding left and right on the page itself? I'd rather people had to use the slider to change page.

But yeah, very nice - thanks a lot!
27th April 2010, 10:35 PM   |  #7  
LunaticShade's Avatar
OP Junior Member
Thanks Meter: 0
 
19 posts
Join Date:Joined: Nov 2007
More
I'm glad to hear that you like it.

Quote:
Originally Posted by johncmolyneux

Can you stop it changing page by sliding left and right on the page itself? I'd rather people had to use the slider to change page.

Actually it is the WinMo 6.5 TabControl which exposes this behavior. If you slide over a TabPage it changes the tab respectively, the senseslider then only reflects this action. So this is not the default behavior of the Slider (actually you could just set back the SelectedTab if it was not changed by the SenseSlider).
27th April 2010, 10:50 PM   |  #8  
Archer's Avatar
Senior Moderator / Recognized Developer - (Un)Recognized Pole Dancer
Flag Northampton
Thanks Meter: 4,107
 
10
13,899 posts
Join Date:Joined: Jul 2008
More
Ah fair enough. I didn't realise you'd used a tab control, but I guess that makes sense.

Thanks for the reply mate
28th April 2010, 02:29 PM   |  #9  
Senior Member
Flag Athens
Thanks Meter: 108
 
698 posts
Join Date:Joined: Aug 2007
Donate to Me
nice control man.

i got 4-5 times a crash on the program. when i changed the button slider color, and stopped the vibration, then when i moved the slider fast from left to right, etc, an error occured.

overall nice work. i don't know if it is your icons, or the real time drawing, but the icons at the slider have a very bad quality. hope you can make the graphics much more similar to the HTC Slider looks

well done for a 0.1 version.
28th April 2010, 04:29 PM   |  #10  
Senior Member
Flag Athens
Thanks Meter: 108
 
698 posts
Join Date:Joined: Aug 2007
Donate to Me
anyone knows what is wrong with this line?

Dim imageNames = assembly.GetManifestResourceNames().Where(Function (r) r.Contains("_b"))

i can't get the slider to work having a vb code. this slider needs so many things. i guess the reason that my slider is not working right now is because of the above code line, which returns me nothing, even though i have a picture which contains _b in the name

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes