ThrottleLauncher Widgets (Sample: S2P Widget) - Windows Mobile Development and Hacking General

Hi!!
I've released a prebeta of 0.9.4 version to public. This version has the posibility to include moveable widgets. I post this thread to show an example on how to build simple but powerfull widgets.
For example I've done in about 20 minutes this S2P widget:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
The code is this one:
Code:
<?xml version="1.0" encoding="utf-8"?>
<panel name="S2PWidget" width="116" height="106">
<icon X="0" Y="0" path="widgets\S2PWidget\back.png"/>
<panel name="Cover" X="3" Y="3" width="70" height="70">
<icon path="widgets\S2PWidget\album.png" exec="#@S2PPath#" height="70" width="70">
<event type="MouseDown"><action execute=":Script" parameters="S2PWidget:Set(MoveLock,true)"/></event>
</icon>
<icon path="#$Registry,HKEY_CURRENT_USER\Software\A_C\S2P\CurrentAlbum#" exec="#@S2PPath#" height="70" width="70">
<event type="MouseDown"><action execute=":Script" parameters="S2PWidget:Set(MoveLock,true)"/></event>
</icon>
</panel>
<icon X="83" Y="5" name="Prev" exec="#$THROTTLE#\Util\S2PControl.exe" params="Previous" path="widgets\S2PWidget\previous.png"/>
<icon X="78" Y="35" name="Play" exec="#$THROTTLE#\Util\S2PControl.exe" params="PlayPause" path="widgets\S2PWidget\#$Registry,HKEY_CURRENT_USER\Software\A_C\S2P\Status,map,[0-pause|default-play]#.png"/>
<icon X="83" Y="75" name="Next" exec="#$THROTTLE#\Util\S2PControl.exe" params="Next" path="widgets\S2PWidget\next.png" />
<text name="Artist" X="3" Y="70" width="70" height="30" alignment="Near" fontcolor="255,255,255" fonttype="7,true" text="#$Registry,HKEY_CURRENT_USER\Software\A_C\S2P\CurrentTitle#" leftmargin="0" textheight="30" textwidth="70" topmargin="2" spacing="0" />
</panel>
As you see it's 16 lines of code for a realtively complex widget that controls S2P .
To install the widget just un compress the zip file to \Program Files\ThrottleLauncher\Widgets and it should now appear when you click the plus button of the widgets page.
If you include Mortscripts in the ecuation.... you can have almost anything done!! .
Hope you'll find this interesting and contribute if you develop cool widgets .
edit: I forgot. You can also include any widget in any page you want by adding <widget name="NAME"/> where name is the folder of the widget. This way you can design module based themes and you can reuse components from one theme to another!
Thanks!!

i'm gonna hardreset and start exploring your new beta.. try to write something of my own as well..
thanks man.

Thanks! I think I'm going to ditch M2D for this

-Arturo- said:
Thanks! I think I'm going to ditch M2D for this
Click to expand...
Click to collapse
nir36 said:
i'm gonna hardreset and start exploring your new beta.. try to write something of my own as well..
thanks man.
Click to expand...
Click to collapse
Thanks to both... . I know it's bad that I'm the one telling it.... but I really thing this is worth a try.

Nice work, keep it up!

made it little bigger and placed buttons under album image and placed on home tab?looks great?tnx

LeAdReW said:
made it little bigger and placed buttons under album image and placed on home tab?looks great?tnx
Click to expand...
Click to collapse
You mean that you've done that?... or is it a request? It's really eassy to do it , hope you've managed to do it...

I just installed the release and I can't find how to get the widgets, sry about the noob question

pgiuoco said:
I just installed the release and I can't find how to get the widgets, sry about the noob question
Click to expand...
Click to collapse
Widgets are in the last tab of the footer. You should see a page with a [+] icon on it... click on the [+] and a dialog must show with the available widgets. Select wichever you want and hit ok, they should appear after a little delay....

nice work mate, keep it up

lol i accidentally installed the old verson off my sdcard, thx again for for your help

Techie87 said:
nice work mate, keep it up
Click to expand...
Click to collapse
Thanks!!

pgiuoco said:
lol i accidentally installed the old verson off my sdcard, thx again for for your help
Click to expand...
Click to collapse
Hehehe, you have scared me for a moment . Glad it was such a simple thing .

!!!
Posted More Plz Thx And New Ideas

Gosh
Will you ever stop improving your software ?
Amazing job, this app just gets better with every release
I will try some tweaks myself asap
Thx for your job !

i have done it,its really easy to customize,tnx,now i delete album art to make it less in height,only track info and buttons

AP, can you describe some more Event types? I cant seem to find the documentation on that. Also can you describe the scripts as well that are mentioned in this line of code:
execute=":Script" parameters="S2PWidget:Set(MoveLock,true)

jdiperla said:
AP, can you describe some more Event types? I cant seem to find the documentation on that. Also can you describe the scripts as well that are mentioned in this line of code:
execute=":Script" parameters="S2PWidget:Set(MoveLock,true)
Click to expand...
Click to collapse
Sorry... I know this is not documented still... that's what the wiki on my web is for .
This is what I can give you right now....
You can specify event's inside Elements and inside pages. Inside each event you can specify as much actions as you want. Here you have an example you can place inside a Page to make it lauch an app:
Code:
<event type="PageShow">
<action execute="#$THROTTLE#\Util\PruebaMAPI\Message2Reg.e xe" parameters="#@SMSAccount# Refresh"/>
</event>
Possible events are:
- For pages: PageLoad,PageUnload,PageShow,PageHide,UpDownGesture,DownUpGesture,LeftRightGesture,RightLeftGesture,ChangeToLandscape,ChangeToPortraitvalid for pages.
- For elements: Click,ElementUpdate
- For elements inside rows with advancedevents="true" (like the widgets page): MouseDown,MouseOver,MouseUp.
Possible actions are (the same that for icons and texts)
- Any executable file with params
- age (parameter is the page name to load)
- :Exit
- :Apps2Cat (parameter is the category to assign)
- :Reload
- :OthersPage (parameter is the page number)
- :Minimize
- :Config
- :ConfigSetup
- :Script: this is the most complicated. execute=":Script" and the param must match this pattern XXXXXX:YYYY(args). for example: <action execute=":Script" parameters="Battery:Refresh()"/>
XXXXXX is the name of the element to change
YYYY is the method to call. Methods supported are:
o Set: Set(Property,value) will set the property to the target value. Valid properties are Name,X,Y,Width,Height,Visible. LocketState is also valid, if set to true the element will follow the finger arround the screen and inside it's containing row until it's released.
o Refresh: supports:
+ (). Will update the whole XXXXXX element
+ (num) will update the XXXXX and the num pixels arround it.
+ (numX,numY) numX means margin in X and numY means margin Y.
+ (x,Y,Width,Height) all the numbers represent margin. To update an especific area watch the next command.
o RefreshRectangle: suports (X,Y,Width,Height)
o Add. Supports (Property,number) will set the property to the property value plus number. Only valid for numeric properties.
o Complement. Supports (property). Only valid for boolean properties (Visible). Will complement it.

WOW!
This totally makes ThrottleLauncher very customizable, especially with MortScript!
Thanks for the help.

jdiperla said:
WOW!
This totally makes ThrottleLauncher very customizable, especially with MortScript!
Thanks for the help.
Click to expand...
Click to collapse
That's the target .
Thank you for your interest!

Related

[Dev] rlToday

I've made a new small Today Plugin, which makes of XML Files like this
Code:
<?xml version="1.0" ?>
<today height="100">
<AnalogClock x="0" y="0" clockface="blueclockface100.bmp" />
<AnalogClock x="200" y="0" clockface="blueclockface40.bmp" />
<Text x="210" y="40" text="Korea">
<Font size="8" />
</Text>
<AnalogClock x="200" y="50" clockface="blueclockface40.bmp" />
<Text x="210" y="90" text="Mexiko">
<Font size="8" />
</Text>
<DigitalClock x="160" y="120" format="hh:mm" />
<Image x="110" y="3" source="ical.png" />
<Date x="130" y="23" format="d">
<Font size="20" weight="bold" font="Tahoma" />
</Date>
<Text x="90" y="85" text="(c) by Andre Adrian" />
</today>
a screen like this (the part with the analog clocks):
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I would like to here your ideas for such a thing.
sincerely,
Andre
Download Page at rotlaus.de
good work ! thanks
Fixed some Bugs, runs a lot more stable now. Skin is choosable in the INI File in the Program Directory. Settings Dialog is prepared.
I've put the actual Version in the First Post.
Very nice! For some reason it does not load for me, gotta play with it when I wake up today.
This plugin is what i have been looking for. And it is very customizeable too.
Thanks a lot Rotlaus.
EDIT: my xda mini's display hangs after a few minutes when i use the plugin.
oldsap said:
EDIT: my xda mini's display hangs after a few minutes when i use the plugin.
Click to expand...
Click to collapse
Yeah, should be fixed in the new version.
New:
Tap&Hold Menu with 2 choices:
- Options Dialog (Nothin there yet)
- Reload Skinfile (usefule while skinning)
Attachementt in the first post actualized.
Version 0.1.3 now available
Neu:
Transparency color can be freely choosen::
Code:
<today height="100" transparent="RGB(255,0,255)">
DigitalClock, Date and Text Elements can have their own color:
Code:
<DigitalClock x="160" y="20" format="hh:mm" color="RGB(0, 255 ,0)" />
<Date x="130" y="23" format="d.M.yyyy" color="RGB(128, 255 ,0)">
<Text x="90" y="85" text="(c) by Andre Adrian" color="RGB(0, 255 ,0)" />
The Hands of the AnalogClock can be coloured individually and can be switched on or off:
Code:
<AnalogClock x="0" y="0" clockface="blueclockface100.bmp">
<Hourhand color="RGB(255, 255 ,0)" />
<Minutehand color="RGB(255, 255 ,0)" />
<Secondhand show="false" />
</AnalogClock>
All these Parameters are optional.
Thanks for the new version Rotlaus
ive posted it on my blog
http://oldsap.blogspot.com/2006/06/rltoday-freeware-pocketpc.html
Thanks rotlaus, takes me back to my ms smartphone days = when I used to design my home screen through xml!! I still love my spv c500 . I will enjoy fiddling with this and getting it set up the way I like it - cheers!
EDIT This is what i managed to do :wink:
EDIT 2 It would be good if when you clicked on the plugin that one of the options be the clock\alarm settings screen - thanks
meschle said:
Thanks rotlaus, takes me back to my ms smartphone days = when I used to design my home screen through xml!! I still love my spv c500 .
Click to expand...
Click to collapse
Hi meschle & Rotlaus,
Will it work in VGA (Universal).
rmercado said:
meschle said:
Thanks rotlaus, takes me back to my ms smartphone days = when I used to design my home screen through xml!! I still love my spv c500 .
Click to expand...
Click to collapse
Hi meschle & Rotlaus,
Will it work in VGA (Universal).
Click to expand...
Click to collapse
I am pretty sure it will - you will probably have to edit the xml file so that the position of the clock etc.. is to your liking.
meschle said:
I am pretty sure it will - you will probably have to edit the xml file so that the position of the clock etc.. is to your liking.
Click to expand...
Click to collapse
meschle,
Thanks, it is working in VGA, the problem is the resedue of the pink background retains at the edge of the images. Unlike your attached image it is clear. Also I tried to reduce the font size (size=6) and it seems not working.
One more, Can I reduce the size of the Clock (let say 20), I am woried about the arm of the clock, it may not fit to the clock face.
Thanks,
rmercado said:
meschle said:
I am pretty sure it will - you will probably have to edit the xml file so that the position of the clock etc.. is to your liking.
Click to expand...
Click to collapse
meschle,
Thanks, it is working in VGA, the problem is the resedue of the pink background retains at the edge of the images. Unlike your attached image it is clear. Also I tried to reduce the font size (size=6) and it seems not working.
One more, Can I reduce the size of the Clock (let say 20), I am woried about the arm of the clock, it may not fit to the clock face.
Thanks,
Click to expand...
Click to collapse
Hi - I have edited the images to get rid of the purple\pink effect :wink:
I think size 6 font is a little small for the screen, try 7 or 8 - clock size 20 probably too small - the one on the left of the screen is 16 and wont allow the arms to show.
I have images 60, 40 and 16 which are all edited to remove the pink\purple effect - find them attached in the zip below.
Wow, it is clear now (how did you do that?). I still cant change the font size. I hve to do more reading I suppose.
Anyway thanks for your help, at least I have a descent clock now in may jasjar...
Oppps...! one more problem... the plug-in background is blur. it is supposed to be transparent like the others.
General comment: a litle bit enhancement and this software is great...
Cheers,
rmercado said:
Wow, it is clear now (how did you do that?). I still cant change the font size. I hve to do more reading I suppose.
Anyway thanks for your help, at least I have a descent clock now in may jasjar...
Oppps...! one more problem... the plug-in background is blur. it is supposed to be transparent like the others.
General comment: a litle bit enhancement and this software is great...
Cheers,
Click to expand...
Click to collapse
I edited bmp in photo editing software.
In mine its fully transparent.
Try my skin.xml - you may find it easier to edit as its simplified - attached
Sorry for the delay, i was very busy the last days.
New Version in the first Post.
Changes:
- no fiddling with the transparent color (pink), i support now real PNG Transparency
- also Alpha Blending is supported
- For the analog clock hands you can now use graphics (See the swiss skin attached to this post). This will look like this:
But beware, this graphic clockhands are very memory hungry...
cu,
Andre
Thanks rotlaus - will update my skin and images as necessary - cheers!
EDIT the dll for this has gone from 78kb to 429kb - how comes such a large increase??
meschle said:
EDIT the dll for this has gone from 78kb to 429kb - how comes such a large increase??
Click to expand...
Click to collapse
This is cause of the new graphics library which enables real transparency, alpha blending and the graphical clock hands.
Filesize has grown too big in my oppinion. I don`t want to waste huge amounts of space for something as simple as a today plugin. If you could reduce filesize or make a "light" version or something it'd be great.
Anyways, besides from the size, great work, thank you!
yoda_143 said:
Filesize has grown too big in my oppinion. I don`t want to waste huge amounts of space for something as simple as a today plugin. If you could reduce filesize or make a "light" version or something it'd be great.
Anyways, besides from the size, great work, thank you!
Click to expand...
Click to collapse
I could drop JPEG Support. I don't need it. Then the dll would get around 350Kb. But still big. It'll grow anyway cause of future features that i'm currently developing.
@all: Do you need JPEG Support?

[APP][06/02/09] Diamond ActionScreen 0.03

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
A replacement for HTCs ActionScreen.
Coded in Win32 C++ for speed.
Applications can be configured via the registry.
HKCU\Software\l3v5y\ActionScreen\App_X
Path changes the path, Parm changes the parameters, and Text changes the text
Timeout (how long before the application minimizes) can be changed at:
HKCU\Software\l3v5y\ActionScreen\Timeout time is in milliseconds
The size of the text can be configured:
HKCU\Software\l3v5y\ActionScreen\FontSize
Font colour
HKCU\Software\l3v5y\ActionScreen\Font Red/Green/Blue (0-255)
The text at the top of the page can be configured
HKCU\Software\l3v5y\ActionScreen\Text
If
HKCU\Software\l3v5y\ActionScreen\Exit
is 0, the app will minimize, if it's 1, the app will close after timeout or action.
Changelog:
0.03 now allows the application to close rather than staying resident in memory.
0.02 Adds configurable text, clicking on the top most bar minimizes the application.
0.01 Initial Release
reserved for updates
try this one,thx!
Update to 0.02, see first post for more...
looks cool and works well!
7 items, Why no 14?
Hi l3v5y,
It's a great tool but we already have an action 9. If you split the screen in two parts, you can put 14 items (maybe a new entry in regitry to change from 7 to 14) . Another idea is to create a new tab in manila. In any case this application looks fine and I'll test it. Thanks!!.
Regards,
elparra72 said:
Hi l3v5y,
It's a great tool but we already have an action 9. If you split the screen in two parts, you can put 14 items (maybe a new entry in regitry to change from 7 to 14) . Another idea is to create a new tab in manila. In any case this application looks fine and I'll test it. Thanks!!.
Regards,
Click to expand...
Click to collapse
Currently, this is just a rewrite of the ActionScreen as it comes. I'll take suggestions on what to do, and having 14 items sounds interesting!
Also, for anyone with a blackstone, if you edit the skin file and add two more App_X keys which match those of the other keys, you can get 9 applications.
Nice! i tryed it but some things are not working.
When i click at the top it doesnt minimise, it gives an error saying that it couldnt open file "".
Also tryed to change the text at the top but it didnt change, new sms and new mms arent working (nothing is opened)
maybe the problem is that my rom language is not wwe?
the rest works good, thanks!
Hi l3v5y, as above, but not tried mms, i don't use it but nothing happens when I press new sms. I have a feeling you will fix it!
What version does it say in the bottom right? (yes, I kow it's ridiculously small, but any larger and it gets in the way) I may have uploaded the wrong cab!
version 0.01
makeveral said:
version 0.01
Click to expand...
Click to collapse
Then I am not good at uploading things!
I'll update the first post with the correct cab!
Where is the cab?
oldhouse said:
Where is the cab?
Click to expand...
Click to collapse
It's there now!
(or at leas, I think it is :S)
yes, now it works!
Just one thing, once you open the program and lauch something it doesnt exit, it stays minimised.
Could you add a reg entry or change it so it closes instead of minimise and wasting ram?
thanks
makeveral said:
yes, now it works!
Just one thing, once you open the program and lauch something it doesnt exit, it stays minimised.
Could you add a reg entry or change it so it closes instead of minimise and wasting ram?
thanks
Click to expand...
Click to collapse
That seems a good idea.
I didn't do it, because the RAM usage on my Prophet (QVGA) wasn't as bad.
l3v5y said:
That seems a good idea.
I didn't do it, because the RAM usage on my Prophet (QVGA) wasn't as bad.
Click to expand...
Click to collapse
Closing is now implemented!
This may seem like a very dumb question, but where exactly do I go to find the "action Screen" on my Diamond? I've had it for about 2 months now and I've never seen an action screen. Is it after market? I ask because i understood this to be a rewrite of a current default setting that comes preinstalled on the diamond... Maybe i'm just have the biggest brain fart ever.
powe6563 said:
This may seem like a very dumb question, but where exactly do I go to find the "action Screen" on my Diamond? I've had it for about 2 months now and I've never seen an action screen. Is it after market? I ask because i understood this to be a rewrite of a current default setting that comes preinstalled on the diamond... Maybe thati'm just have the biggest brain fart ever.
Click to expand...
Click to collapse
Could be the fact that I wasn't hugely specific. This is a rewrite of something the Touch Dual had, not the Diamond.
When are you going to prepare a 14 buttons version?
Hi l3v5y,
Are you developing a 14 buttons version?. Thnks in advance.
Regards,
ElParra72

50 WM 6.5 Widgets

Sorry but I'm not going through the entire list again but there are 50 WM 6.5 widgets ready to go. There are screenshots and an entire list of them here: http://www.fuzemobility.com/wm-65-widget-mania/
They're all simple chromeless web widgets ranging from mobile sites to entertainment sites.
The download link is here: http://mobilitydigest.com/files/Fuze_Mobility_Widgets.zip
Enjoy
** Windows Mobile 6.5 Required **
Some Screen Shots
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
More Screenshots
Here are some images and screenshots
A bunch of bookmarks? *cough..opera*
Jacobxx said:
A bunch of bookmarks? *cough..opera*
Click to expand...
Click to collapse
By the time you're getting past the splash screen of Opera these would be fully loaded
Great work David!!!
i love the twitter widgets now i can stalk NRG and Matt whenever i want without opening a browser and going to my bookmarks and crap. i just hit start and hit my widget. Thats two taps on the screen compared to however many to open my browser and open my bookmarks and stuff
bugsykoosh said:
By the time you're getting past the splash screen of Opera these would be fully loaded
Click to expand...
Click to collapse
very nice work.. =) keep it up..
bugsykoosh said:
By the time you're getting past the splash screen of Opera these would be fully loaded
Click to expand...
Click to collapse
completely agree
Can we pick and choose which widgets to install or is this all in one big pack? Thanks by the way
jmckeejr said:
Can we pick and choose which widgets to install or is this all in one big pack? Thanks by the way
Click to expand...
Click to collapse
You can pick and choose. When you extract the file you will see all the widgets in there 50 of them you will also a see a cab called "enable widgets" or something you have to install that before you can install any of the widgets.
jmckeejr said:
Can we pick and choose which widgets to install or is this all in one big pack? Thanks by the way
Click to expand...
Click to collapse
You can install just the ones you want. Unzip the widget pack and copy over the .wgt files that you desire. Be sure to install the "Enable Widgets WM6.5" CAB file first, then install the .wgt files just like a CAB.
ptyindian beet me to it... Enjoy!
Pardon my stupidity but I have HTC vogue and I tried to install it. It says "succesfully installed" but I do not see any widgets in my program folder. So it will only work on fuze/VGA/6.5? device? I do have opera installed BTW.
i am assuming you have 6.5 on the vogue. did you install the "enable widgets wm6.5" cab before installing the widgets? This should work on any device as long as you are running 6.5
I am running 6.1. I should have figured that out. Thanks for the quick reply.
I wish we could zoom on the widgets and stuff so reading the text can be easier maybe someone can figure out how to add zooming to the widgets.
ptyindian said:
I wish we could zoom on the widgets and stuff so reading the text can be easier maybe someone can figure out how to add zooming to the widgets.
Click to expand...
Click to collapse
Check out the css file in the widget, should be able to change it there
B4PJS said:
Check out the css file in the widget, should be able to change it there
Click to expand...
Click to collapse
I used the simplest code possible so the config file looks like this:
<?xml version="1.0" encoding="utf-8" ?>
<widget version="1.0"
xmlns="http://www.w3.org/ns/widgets"
id="">
<name>Dragon Steel Mods</name>
<content src="widget.htm" type="text/html" />
<access network="true" />
<icon src="icon.png"/>
<description>
Drago Steel Mods Widget for Windows Mobile.
Provides chromeless wrapper for Mobile Site.
http://dragonsteelmods.com
</description>
</widget>
and the html looks like this:
<html>
<head>
<title>Dragon Steel Mods</title>
</head>
<body bgcolor="#000000">
<iframe src="http://dragonsteelmods.com" width="100%" height="100%" style="background-color: white;">
<p>An error has occured.</p>
</iframe>
</body>
</html>
Changing the width and height just change how much is shown on the screen and not the font size (so zooming out just means there's dead space but the fonts don't change accordingly). Any ideas on how to zoom or how to add to the soft keys would be appreciated. Thanks
yeah i tried playing with the xml file and the htm file and changing the zoom in the htm but that did not really work.

[SOLVED] CommManager Button height

Hi everyone
I want to reduce the height of CommManager buttons in my Leo ROM so that I can use up to 9 buttns without scrolling! Any chance in reducing this hieght?
Which registry entries are responsible for that?
I never had this idea before, sounds... interesting but impossible too.
I am assuming it is hardcoded in dll!
Hmmm, that's in some way a little bit stupid but I have to live with it! Thanks anyway!
There are no stupid questions, just stupid answers!
keep it up... due to not interest in this idea, this will be closed.
* Mod EDIT *
Re-opened in case someone actually does come up with a 'workaround' in the future; also reduces creation of new threads regarding same topic.
in my comm manager i use these settings for leo:
Code:
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\HTC\CommManager]
"IsEnableHTCLoadImage"=dword:00000001
"TextSizeSetting"=hex:11,0c,0a,09
"IsEnableUISettings"=dword:00000001
"IsRetryAllConnectionWhenFail"=dword:00000001
"ScrollBarColorSetting"=hex:aa,aa,aa,00
"BackgroundColorSetting"=hex:ea,ea,ea,00
"IsDisableActiveSyncAPI"=dword:00000001
"IsEnableHTCScroll"=dword:00000001
"EmptyMenuBar"=dword:00000002
"CustomizationFontFileName"="tahoma.ttf"
"CustomizationFontName"="Helvetica Neue OTS"
"BluetoothPlatformType"=dword:00000001
"LandscapeXExtension"=dword:000000a0
"SupportedFunctions"=dword:00000008
"DisableButtonText"=dword:00000003
"UseMSFlightMode"=dword:00000001
"CommManagerUIStyle"=dword:00000004
"TextColorSetting"=hex:33,33,33,00,00,00,00,00,ff,ff,ff,00,a5,a5,a5,00,33,33,33,00,ff,ff,ff,00,a5,a5,a5,00,4c,4c,4c,00,ff,ff,ff,00,a5,a5,a5,00
"DelayWLANButtonTimes"=dword:00000000
"DelayFlightModeButtonTimes"=dword:00000000
[HKEY_LOCAL_MACHINE\Software\HTC\CommManager\UIStrings]
"COMMUNICATIONS"="Wireless controls"
[HKEY_LOCAL_MACHINE\Software\HTC\CommManager\0]
"ExecuteCommand"=""
"Execute"=""
@="FlightMode"
[HKEY_LOCAL_MACHINE\Software\HTC\CommManager\1]
"ExecuteCommand"=""
"Execute"="\\Windows\\CMPhone.exe"
@="Phone"
[HKEY_LOCAL_MACHINE\Software\HTC\CommManager\3]
"ExecuteCommand"=""
"Execute"="\\Windows\\WiFiNetwork.exe"
@="WLAN"
[HKEY_LOCAL_MACHINE\Software\HTC\CommManager\4]
"ExecuteCommand"="//remote"
"Execute"="\\Windows\\repllog.exe"
@="AUTD"
[HKEY_LOCAL_MACHINE\Software\HTC\CommManager\5]
"Execute"="\\Windows\\ConnectionSetup.exe"
"ExecuteCommand"=""
@="DataDisconnection"
[HKEY_LOCAL_MACHINE\Software\HTC\CommManager\6]
"ExecuteCommand"=""
"Execute"=""
@="MobileWifiRouter"
[HKEY_LOCAL_MACHINE\Software\HTC\CommManager\7]
@="3G"
[HKEY_LOCAL_MACHINE\Software\HTC\CommManager\WLAN]
"DeviceName"="{98C5250D-C29A-4985-AE5F-AFE5367E5006}\BCMSDDHD1"
[HKEY_LOCAL_MACHINE\Software\HTC\CommManager\DataDisconnection]
@="DataDisconnect.exe"
[HKEY_LOCAL_MACHINE\Software\HTC\CommManager\UISettings]
"list_left_padding"=dword:0000000f
"list_right_padding"=dword:0000000f
"list_icon_left_margin"=dword:0000000a
"list_inputfield_left_margin"=dword:0000000f
"list_inputfield_right_margin"=dword:0000000f
"list_combobox_left_margin"=dword:0000000b
"list_combobox_right_margin"=dword:0000000b
"list_content_top_padding"=dword:0000000e
"list_checkbox_right_margin"=dword:0000000f
"list_switch_right_margin"=dword:0000000e
"list_slider_right_margin"=dword:0000000f
"list_signal_right_margin"=dword:0000000a
"list_combobox_top_margin"=dword:0000000f
"list_icon_right_margin"=dword:0000000a
"list_combobox_left_padding"=dword:0000000f
"list_combobox_right_padding"=dword:0000000f
"list_radiobtn_right_margin"=dword:00000019
"msgbox_left_margin"=dword:00000014
"msgbox_right_margin"=dword:00000014
"msgbox_left_padding"=dword:0000001c
"msgbox_right_padding"=dword:0000001c
"msgbox_top_padding"=dword:0000001e
"msgbox_bottom_padding"=dword:0000001e
"msgbox_btn_left_margin"=dword:0000001c
"msgbox_btn_right_margin"=dword:0000001c
"msgbox_btn_top_margin"=dword:00000014
"msgbox_btn_bottom_margin"=dword:00000016
"msgbox_btn_middle_padding"=dword:00000030
"msgbox_left_margin_L"=dword:000000b4
"msgbox_right_margin_L"=dword:000000b4
"list_checkbox_del_right_margin"=dword:0000000f
"list_icon_top_margin"=dword:00000003
"list_sub_content_top_padding"=dword:00000001
[HKEY_LOCAL_MACHINE\Software\HTC\CommManager\2]
"ExecuteCommand"=""
@="Bluetooth"
"Execute"="\\Windows\\BTWizard.exe"
[HKEY_LOCAL_MACHINE\Software\OEM\UMTS]
"PrefDomain"=dword:00000002
"PrefRAT"=dword:00000001
Could one just simply adjust the text size setting above in the registry to fit more?
animelover said:
Hi everyone
I want to reduce the height of CommManager buttons in my Leo ROM so that I can use up to 9 buttns without scrolling! Any chance in reducing this hieght?
Which registry entries are responsible for that?
Click to expand...
Click to collapse
It's simple.
Step 1: Resize these images to reduce the buttons height:
Code:
CM_Btn_Detail_Down_P.png
CM_Btn_Detail_Up_P.png
P_Button_Down.png
P_Button_Focus.png
Step 2: Modify this reg to adjust the function icons position, if your mod button height is too small, you must resize those icons:
Code:
[HKEY_LOCAL_MACHINE\Software\HTC\CommManager\UISettings]
"list_icon_top_margin"=dword:3
I've done the modification just like what you need long time ago (9 buttons). Here's the right value for that:
- CM_Btn_Detail_Down_P.png, CM_Btn_Detail_Up_P.png --> 357x57
- P_Button_Down.png, P_Button_Focus.png --> 480x70
and "list_icon_top_margin"=dword:5
And the result:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Cloudyfa said:
It's simple.
Step 1: Resize these images to reduce the buttons height:
Code:
CM_Btn_Detail_Down_P.png
CM_Btn_Detail_Up_P.png
P_Button_Down.png
P_Button_Focus.png
Step 2: Modify this reg to adjust the function icons position, if your mod button height is too small, you must resize those icons:
Code:
[HKEY_LOCAL_MACHINE\Software\HTC\CommManager\UISettings]
"list_icon_top_margin"=dword:3
I've done the modification just like what you need long time ago (9 buttons). Here's the right value for that:
- CM_Btn_Detail_Down_P.png, CM_Btn_Detail_Up_P.png --> 357x57
- P_Button_Down.png, P_Button_Focus.png --> 480x70
and "list_icon_top_margin"=dword:5
And the result:
Click to expand...
Click to collapse
good work man, I may use this in my rom (maybe) would you be willing to share if I gave credit?
[★] said:
good work man, I may use this in my rom (maybe) would you be willing to share if I gave credit?
Click to expand...
Click to collapse
You're welcome!
Big thanks to you, Cloudyfa! You're my hero right again!
oh very good! i never see something like this before... stickied into main thread for chef central tips and tricks
Cloudyfa said:
You're welcome!
Click to expand...
Click to collapse
Why thankyou very much
+ Que PPC said:
oh very good! i never see something like this before... stickied into main thread for chef central tips and tricks
Click to expand...
Click to collapse
And you wanted to close this thread, huh?
yes is true.. in fact i did it jiji
Nice work indeed. I tried and happy...
Thanks a lot...
I've changed thread title to SOLVED, big thanks to Cloudyfa, awsom job.
Added it to the solved issue list as well in the stickie.
{{Chef Central}} Guides | Tutorials | Tips & Tricks | Fixes | Stickies [READ FIRST!!]
http://forum.xda-developers.com/showpost.php?p=6283929&postcount=7
Great stuff Cloudyfa! I made a package for the Kitchen (tested and working for me) perhaps useful for others
9 Button
Can anyone point where to find the 9 button comma manager with 3G for rhodium please. Unless there isnt one because of the beam option?

[Library] Floating Action Button from Android L on Kitkat and below

FABulous
So, Material Design is here and its beautiful. But wait. Its not here yet. And its not for everyone either. So while Google does its thing and squashes bugs and whatnot, why not give your pre-L apps a Material look? Making the ActionBar 56dp high is the most obvious way to go. But why not take it a step further and add the floating action button like the one that the Google+ app has? Too complicated? This library has got you covered. With just a few lines of code, FABulous allows you to add the button and customize its color and drawable too.
Download
https://github.com/FaizMalkani/FloatingActionButton
Instructions:
Place the FAB in a FrameLayout and add your layouts above the FAB view. For best results, keep the FAB height and width at 72dp and in the bottom right of the FrameLayout
Code:
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<!--
Your layouts here. Do not put anything below the FAB layout
-->
<com.faizmalkani.floatingactionbutton.sample.Fab
android:id="@+id/fabbutton"
android:layout_width="72dp"
android:layout_height="72dp"
android:layout_gravity="bottom|right"
android:layout_marginBottom="16dp"
android:layout_marginRight="16dp" />
</FrameLayout>
Initialize your FAB in your activity's onCreate()
Code:
Fab mFab = (Fab)findViewById(R.id.fabbutton);
Initialize your FAB in your activity's onCreate()
Fab mFab = (Fab)findViewById(R.id.fabbutton);
If needed, call the other methods of the FAB
Code:
mFab.hideFab();
mFab.showFab();
mFab.setAlpha();
mFab.setOnClickListener();
Nice one, what's holding this back from being used on pre jb devices?
Can Sherlock be used to solve some of the comparability dependencies?
Hi @Faiz Malkani
I managed to backport this to 2.1+, sources are here:
https://github.com/Quinny898/FloatingActionButton-Compat
Here's what the sample project looks like (not included, it's the same + AppCompat, which is complicated to add):
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Thanks Faiz!
One question: it auto-hides while scrolling the page? (the sample app doesn't let me be sure of that)
Jeeko said:
Thanks Faiz!
One question: it auto-hides while scrolling the page? (the sample app doesn't let me be sure of that)
Click to expand...
Click to collapse
You can do something like this, with a scrollview or a list view if you like:
http://android-ed.blogspot.co.uk/2013/09/hiding-bottom-actionbar-during-scrolling.html
Replace the setVisibility calls with show and hide though
This app had it before them https://play.google.com/store/apps/details?id=ee.ioc.phon.android.arvutaja
Laur3nt1u said:
I don't know how Google came with this button but this app had it before them https://play.google.com/store/apps/details?id=ee.ioc.phon.android.arvutaja
Click to expand...
Click to collapse
tho that button looks bad XD, google does copy a lot of stuff from different sources so dont worry bout it
this is probably a dumb question, but could somebody give me a easier tutorial on how to do this? i would really like to try it but i dont really understand how it should be done. im all new to android again after som years with crapple.
thanks in advanced
Thanks for the library, the sample apk looks great.
Importing in Android Studio (I tried many ways) I always have this error, looks like corrupted .png's
Someone else?
h**p://i.gyazo.com/2d17ddabae4e5502bd6fed109e788d68.png
Try copying the FAB Class to your projects src.
Alternatively, if you can wait a few days, I'll be merging a pull request that adds Gradle support
Quinny899 said:
Hi @Faiz Malkani
I managed to backport this to 2.1+, sources are here:
https://github.com/Quinny898/FloatingActionButton-Compat
Here's what the sample project looks like (not included, it's the same + AppCompat, which is complicated to add):
Click to expand...
Click to collapse
great work
looks FABULOUS :laugh: using it in my next app .. thanks :good:
Idea
Hey, thank you for your effort. The FAB looks really good.
To further follow the new design guideline I would suggest that you extend your
Code:
setFabDrawable(Drawable fabDrawable)
method by one line.
Code:
public void setFabDrawable(Drawable fabDrawable)
{
Drawable myDrawable = fabDrawable;
mBitmap = ((BitmapDrawable) myDrawable).getBitmap();
[COLOR="Red"]mBitmap = Bitmap.createScaledBitmap(mBitmap, dpToPx(24), dpToPx(24), true);[/COLOR]
invalidate();
}
This makes the fabIcon as big as it should be regardless the source.
Thanks anyways.
Thanks
For some reason I keep getting this error, although I think all files are in the right place..
"Rendering Problems The following classes could not be found:
-*com.faizmalkani.floatingactionbutton.Fab (Fix Build Path, Create Class)
Tip: Try to build the project. "
What could I do to fix this?
Thanks for your contribution.
But can you teach me how to import the class?
I have imported the jar but I can't use the Fab in .XML file.
There is no mistake but log told me that 1. com.faizmalkani.floatingactionbutton.FloatingActionButton failed to instantiate
and 2. Paint.setShadowLayer is not supported...
So I need a hand. Can anyone help me?
I can test an apk if its ready. drop me a load don't be shy
ywwynm said:
Thanks for your contribution.
But can you teach me how to import the class?
I have imported the jar but I can't use the Fab in .XML file.
There is no mistake but log told me that 1. com.faizmalkani.floatingactionbutton.FloatingActionButton failed to instantiate
and 2. Paint.setShadowLayer is not supported...
So I need a hand. Can anyone help me?
Click to expand...
Click to collapse
It's working, it just doesn't render in the XML builder
Sent from my Nexus 7 using Tapatalk
Faiz Malkani said:
FABulous
So, Material Design is here and its beautiful. But wait. Its not here yet. And its not for everyone either. So while Google does its thing and squashes bugs and whatnot, why not give your pre-L apps a Material look? Making the ActionBar 56dp high is the most obvious way to go. But why not take it a step further and add the floating action button like the one that the Google+ app has? Too complicated? This library has got you covered. With just a few lines of code, FABulous allows you to add the button and customize its color and drawable too.
Click to expand...
Click to collapse
It seems you completely miss to recycle the typed array with a try finally block in the constructor of your custom view.
Problem with Android Studio
Hey, thank you very much for this library, on eclipse all works fine, but in android studio, the little image in the floating action button doesn't display, this is a part of my xml layout file:
Code:
<com.faizmalkani.floatingactionbutton.FloatingActionButton
android:id="@+id/fabbutton"
android:layout_width="72dp"
android:layout_height="72dp"
android:layout_gravity="bottom|end"
android:layout_marginBottom="16dp"
android:layout_marginEnd="16dp"
android:layout_marginRight="16dp"
android:onClick="fabClicked"
android:drawable="@drawable/ic_action_new"/>
All this is at the end of a framelayout, where is the error? Thank you in advance
Sorry for my bad english

Categories

Resources