Animating Clickable Image in Android - Java for Android App Development

I want to create an application where an image is moving towards whole screen. So, it means I have to change its position dynamic. I have used "TranslateAnimation" method but then I couldn't get its on touch or on click event. So is there any way so I can move image by giving dynamic positions and also get its on touch or on click event.

[email protected] said:
I want to create an application where an image is moving towards whole screen. So, it means I have to change its position dynamic. I have used "TranslateAnimation" method but then I couldn't get its on touch or on click event. So is there any way so I can move image by giving dynamic positions and also get its on touch or on click event.
Click to expand...
Click to collapse
Try to animate on margins

[email protected] said:
I want to create an application where an image is moving towards whole screen. So, it means I have to change its position dynamic. I have used "TranslateAnimation" method but then I couldn't get its on touch or on click event. So is there any way so I can move image by giving dynamic positions and also get its on touch or on click event.
Click to expand...
Click to collapse
You can use Animation class to do this. You can find good tuts in the following link which show you how to use many animation with views:
http://www.androidhive.info/2013/06/android-working-with-xml-animations/

How it can be done? Can you please elaborate

[email protected] said:
How it can be done? Can you please elaborate
Click to expand...
Click to collapse
The link in my reply has good explanation for it and it is provided also with code snippets. Just follow it step-by-step and i think you will get it :good:

Related

Today screen...Picture transparency?

When you choose a photo/picture to use on your today screen the picture is very washed-out. Is there any way the transparency can be altered to make the photo clear? Thank-you
neildunne said:
When you choose a photo/picture to use on your today screen the picture is very washed-out. Is there any way the transparency can be altered to make the photo clear? Thank-you
Click to expand...
Click to collapse
Yes. Go to the picture and video application, then from there, browse to the directory containing your image. Then pick up the image, and from menu, say that you want to use this for your desktop.
The next screen that appear will have the ability for you to adjust how wash out you want the picture to be.
Thanks for your help buddy, worked perfect.
neildunne said:
Thanks for your help buddy, worked perfect.
Click to expand...
Click to collapse
You're welcome!
eaglesteve said:
You're welcome!
Click to expand...
Click to collapse
Check out Resco Photo Viewer 6. It is not freeware but well worth a look at the trial. It does all that you want and much more. Additionally, it displays your photos sharper than the buit-in Photo & Video app.

Touch Settings OFFICIAL THREAD

making this now this is for Touch Settings updates.
THanks Carlos!
ambush276 said:
making this now this is for Touch Settings updates.
THanks Carlos!
Click to expand...
Click to collapse
Where is the file for the " Touch Settings " ? You should start by attaching the settings file since this will be the main thread for Touch Settings
i posted detailed instructions as to how to get the "Touch Settings" program to work correctly on the Sprint Touch a few days ago. I'll re-post it over in the Vogue forum shortly
utexascg said:
i posted detailed instructions as to how to get the "Touch Settings" program to work correctly on the Sprint Touch a few days ago. I'll re-post it over in the Vogue forum shortly
Click to expand...
Click to collapse
Please don't re-post this information, as I have now built a new version of the program that should work on the Sprint Touch without any special instructions required. It's been tested by Sprint users and seems to be working well so far.
You can download the beta (v1.29d) from www.fatattitude.com/software
For installation instructions please see: http://forum.xda-developers.com/showthread.php?t=324556
Best,
Carlos
Works great on HTC Touch! WooHoo!
Very Nice job. Very Nice, indeed.
Personally, I wanted the photo to launch the HTC Camera Album.lnk the way you can scroll with your finger & zoom, etc.
So, I created the Photos button in MediaHub to be:
\WindowsHTCAlbum.exe
Params: -mode:camera -type:image
when i try and install the settings app i get a error messsage about
"Installation was unsuccessful. The program or settings cannot be installed because it does not have sufficient system permissions"
how do i chang it so i can install and run this.. thanks
whipple16 said:
when i try and install the settings app i get a error messsage about
"Installation was unsuccessful. The program or settings cannot be installed because it does not have sufficient system permissions"
how do i chang it so i can install and run this.. thanks
Click to expand...
Click to collapse
If you look at the post at the top of this page by Carlos, you'll see he says, "For installation instructions please see: http://forum.xda-developers.com/showthread.php?t=324556."
He also gives these suggestions:
- If you're installing to Storage Card, try installing to the Device instead.
- If you still get the error, try resetting your device and installing again - this honestly worked for me!
- Check there is enough free storage space on your device.
- Try a manual installation (zip file coming to first post shortly)
There are many posts about this in other threads, so you should be able to find the info you need.
Carlos,
Any reason to upgrade to 1.29e if d is working well?
Secondly, if we do upgrade - do you have to uninstall first? or can you overwrite the program?
I don't seem to be able to see a changes history. I'll keep looking.
carlos said there is a new touch settings version comming out soon where it will help implement animations and custom icons will show when the cube turns. WOOT. and we wont have to install the updated Exe, it will be updated for us.,.]
THANKS CARLOS!
ambush276 said:
carlos said there is a new touch settings version comming out soon where it will help implement animations and custom icons will show when the cube turns. WOOT. and we wont have to install the updated Exe, it will be updated for us.,.]
THANKS CARLOS!
Click to expand...
Click to collapse
I've been absent for a few days and WOW...things are shaping up! Thanks Carlos! You are awesome! (Enough exclamation points?)
ambush276 said:
making this now this is for Touch Settings updates.
THanks Carlos!
Click to expand...
Click to collapse
I have spent a good deal of time getting my Sprint Touch to display my local weather by using N2A's "patched" HtcHome.dll which points at a server that does support my local weather (unlike the Htc's accuweather server). Now I would like to use 'Touch Settings' to easily customize what apps get launched from my 3x2 app launcher and the media hub buttons, but I'm not sure if I dare do this yet since I haven't seen anyone explain how 'Touch Settings' accomplishes displaying local weather.
Can anyone tell me how it does this? My concern is that it may conflict with the patched home plugin I already have working.
SprintTouchGuy said:
I have spent a good deal of time getting my Sprint Touch to display my local weather by using N2A's "patched" HtcHome.dll which points at a server that does support my local weather (unlike the Htc's accuweather server). Now I would like to use 'Touch Settings' to easily customize what apps get launched from my 3x2 app launcher and the media hub buttons, but I'm not sure if I dare do this yet since I haven't seen anyone explain how 'Touch Settings' accomplishes displaying local weather.
Click to expand...
Click to collapse
Hi SprintTouchGuy
Touch Settings updates the registry keys at \HKLM\Software\HTC\HomePlug\Weather\Settings
I don't think this should change your server settings etc, and it certainly won't change which .dll file your weather is pulled from.
Why not do a registry backup of that key, try out Touch Settings and if there are any problems, just restore your registry? I think you'll be OK with it.
Hi all
I have a new beta of Touch Settings v2.0 that I'd really like a couple of people to test for me, in particular people with Vogues and Touch Duals, especially pp18 and that other kind person who volunteered.
I have posted it in:
http://forum.xda-developers.com/showthread.php?t=324556&page=20
....if you could keep feedback in that thread for now please? Feels like we have too many threads going at once otherwise and gets confusing!
Thanks,
Carlos
carlosp_uk said:
Hi SprintTouchGuy
Touch Settings updates the registry keys at \HKLM\Software\HTC\HomePlug\Weather\Settings
I don't think this should change your server settings etc, and it certainly won't change which .dll file your weather is pulled from.
Why not do a registry backup of that key, try out Touch Settings and if there are any problems, just restore your registry? I think you'll be OK with it.
Click to expand...
Click to collapse
Works great...thanks Carlos!
One thing I noticed would be interested in finding out if other Sprint Touch users are seeing: after updating my "On Demand" app launcher's button to open a different app in the mediahub, the "Demand" in the text "On Demand" is now half cut-off. I assume this text (which I would like to change anyway) is stored in the registry somewhere and is not editable via Touch Settings yet. I can spend some time researching which settings to manually change in the registry, but if you are going to add this feature soon to the app, then I won't spend the time.
Thanks again, regardless...
SprintTouchGuy said:
Works great...thanks Carlos!
I assume this text (which I would like to change anyway) is stored in the registry somewhere and is not editable via Touch Settings yet.
Click to expand...
Click to collapse
Hi SprintTouchGuy
Glad it's working for you! If you run Touch Settings, you should be able to click in the grey box where it says "On Demand" and change the text to anything you like... ...let me know if it doesn't work for any reason.
C
carlosp_uk said:
Hi SprintTouchGuy
Glad it's working for you! If you run Touch Settings, you should be able to click in the grey box where it says "On Demand" and change the text to anything you like... ...let me know if it doesn't work for any reason.
C
Click to expand...
Click to collapse
Thanks Carlos...I can't believe I didn't think to at least try tapping in there! (Oh me of little faith...)
Next minor issue:
I made my bottom mediahub button say "Voice Recorder", and the word "Recorder" wrapped to a second line which is half-way cut off. I see that text wraps on the middle button as well, and although it doesn't get cut off it does look off-center vertically. I don't know if there is any way to adjust the text vertically with the magic that you do, so for now I'll try to come up with one word labels for the buttons to avoid the issue.
I also am curous what parameter to use to get the HtcAlbum.exe to launch the Camera Album to display just videos, like the 2nd-row 3rd button in does in the 9 button app launcher that comes on the 3rd tab of the HTC Home plugin. Does anybody know what I need to supply? I believe there is a mode: option, but when trying "mode:video" it still only comes up displaying pictures, and it does so in portrait view, not in landscape view like it does from the app launcher (which I prefer). My apologies if this has been discussed already...thanks!
carlosp_uk said:
Hi SprintTouchGuy
Glad it's working for you! If you run Touch Settings, you should be able to click in the grey box where it says "On Demand" and change the text to anything you like... ...let me know if it doesn't work for any reason.
C
Click to expand...
Click to collapse
Carlos - this is kind of a QA issue with the interface. Can I make the suggestion that you change the color of that box from gray to something like yellow? The first few times I opened the app I thought it was the typical "grayed out" box -- meaning I couldn't edit it. Whereas when I see a yellow box it grabs my attention and suggests I should be doing something with it...

Beta of my EzPanel

Hi, just beggining to code for the Xperia.
This is just the beggining for a fast alternative for the other panels.
128x128 icons with vibrate touch response.
Not added like a panel and for the moment only works in portrait mode.
Be easy on me, just begun for 1 week ago programming.
Give me som suggestions for more icons (shortcuts)
Best regards
A.M
UPDATED 090115
V 0.1
* Optimized code
* Removed minor bugs
* Added more icons
Could you post some screenshots? More people would try it out if they could see it - get a better picture of what's it about.
Draqula said:
Could you post some screenshots? More people would try it out if they could see it - get a better picture of what's it about.
Click to expand...
Click to collapse
For now there isn't much more than a clock and 2 rows of icons but i will post screenshot..
Simple... and kinda elegant. I like where this is headed. Hope to see the full version soon.
BTW - just a thought, but an elegant/classical looking (not too fancy or colored) analog clock at the top would go better than the digital one.
Screenshot attached for all.
I believe, from feedback i have read across the interweb, that if you could set this up, to emulate the SE feature phone interface, there would be quite a lot of interest.
Better still if you could make SMS work as easily as the feature phones, but that is asking too much of you.
Best of luck with this. I will follow it with some interest.
John
Hmm, im not sure of what u mean here, plz explain to me.
Do u mean ordinary Se phones ??
Thanx for interest.
And thanx to Msalmank for the screenshot and ur positiv feedback.
I will try to make a analog clock or maybee a possibility to change between the twos.
astral1 said:
I believe, from feedback i have read across the interweb, that if you could set this up, to emulate the SE feature phone interface, there would be quite a lot of interest.
Better still if you could make SMS work as easily as the feature phones, but that is asking too much of you.
Best of luck with this. I will follow it with some interest.
John
Click to expand...
Click to collapse
Nice work.
Looks nice (but a little empty)
Do you think you can add an "options page" accessed through left or right softbutton just as in the SE panels?
In this options page we could 15 empty spaces and we can choose to add an application directly or add a new page to an empty space with an additional 15 empty spaces.
This way we can add more applications/pages or contacts ourselves. We would also need a "back button" so we can go back to the previous page.
Good luck with it, looking forward to a final version.
Update 090115
Updated 090115
first of all: nice work.
i would be happy to help you in all forms of design (i.e. backgrounds, buttons and so on ...).
from my point of view (designer) it would be nice if the panel could be configured via an external xml file to place the bitmaps (with coordinates) and to configure the button-links to the applications.
regards,
- quadword
Tanks for your comment and i will gladly accept all the help i can get concerning the design. I will get back to you soon.
Now it's 3 days of "ordinary" work waiting.
QuadWord said:
first of all: nice work.
i would be happy to help you in all forms of design (i.e. backgrounds, buttons and so on ...).
from my point of view (designer) it would be nice if the panel could be configured via an external xml file to place the bitmaps (with coordinates) and to configure the button-links to the applications.
regards,
- quadword
Click to expand...
Click to collapse

FolioWidget

0.4
it's a widget : add it to your deskop
tap on the clock the open the control menu
Resize this widget to something like 4*1
What's up ?
- VM heapsize tuning for better performances in big applications
- Wifi network SSID shows on the widget
- Change LCD density ( select new one and folio reboot with the new one, the trick is not permanent )
Like ever if you like click Thanks
I do this on top of my job so there's few chances i respond to personnal mp.
I'm sorry for the inconveniences but i'll try to read yours comments.
very good !
thank you !
any news for my requested app ? (shortcut to Account Sync)
Great!
Great job!
Thank you!
One question. How do I resize the widget?
Thanks.
Resize is only possible with some home like ADW. Launcher Pro require the paid version and with zeam you have to reinstall the widget
Widget resize
Hi,
All clear,
Thank you!
How can I change the color/layout, there most be any software I can use to extract the picture then save them? Tried winrar but that only gave me a ccorrupted apk. Help please?
statsminister said:
How can I change the color/layout, there most be any software I can use to extract the picture then save them? Tried winrar but that only gave me a ccorrupted apk. Help please?
Click to expand...
Click to collapse
yeah. a color/layout option would be nice.. transparency too, but i'm nitpicking =)
julio77 said:
any news for my requested app ? (shortcut to Account Sync)
Click to expand...
Click to collapse
that is much easier for you to do.
Shortcut -> activities -> Settings -> accounts? i think
Dexter_nlb said:
that is much easier for you to do.
Shortcut -> activities -> Settings -> accounts? i think
Click to expand...
Click to collapse
hum...
I already know this method, I am the author.
I am looking for a program to do that because I'd like to have the shortcut in the appdrawer.
Hi all,
another question :
is it a way completly disable sensitive button at the right of the screen ?
I'm using TNTMod and I don't need these buttons because there already at the top of the screen.
julio77 said:
Hi all,
another question :
is it a way completly disable sensitive button at the right of the screen ?
I'm using TNTMod and I don't need these buttons because there already at the top of the screen.
Click to expand...
Click to collapse
would a value of 255 (ff) not do it? at least make then incredible unresonsive or?
i will check the kernel registers if we got some other bit's to modify so we can disable them..
btw,
looks like Malata actually took Honeycomb 3.0 solutions into account here buttonwise.
Dexter_nlb said:
would a value of 255 (ff) not do it? at least make then incredible unresonsive or?
i will check the kernel registers if we got some other bit's to modify so we can disable them..
btw,
looks like Malata actually took Honeycomb 3.0 solutions into account here buttonwise.
Click to expand...
Click to collapse
Thank you, i will try this.
i've tried 0x0000000 and 0xfffffff and no effect..
maybe I need to reboot ?
is it a value to disable buttons ?
nobody has found a way to disable the Folio 100 sensitive buttons ?
Would it be possible to make the battery in the widget, give some animation?
disable hardware(soft) buttons completely hack
julio77 said:
is it a value to disable buttons ?
Click to expand...
Click to collapse
here is your fix , you asked for:
here is the command to disable light buttons completely (will enable after a poweroff)
DISABLE BUTTONS
Code:
echo regctrl=0x8800 >/sys/devices/virtual/input/input7/tegra_capsensor
ENABLE BUTTONS
Code:
echo regctrl=0x8801 >/sys/devices/virtual/input/input7/tegra_capsensor
Requested by user, not my idea here. but probably very handy with AndroidOS 3.0 when its out. (good for TntMod as they got buttons on screen)
thank you Dexter
Sol Ido, is it possible to add this trick in your next release ?
Any questions
HI,
I try to use FolioWidget with Official TOSHIBA ROM.
I install the widget, but :
when i tap on hour, Window of parameters open.
- where is the choice to set size of Widget to 4x1 ?
I select Light Enabled, but the Four keys are not on.
- what is the wrong ?
Sorry for py poor english.
CSE
cse34 said:
I try to use FolioWidget with Official TOSHIBA ROM.
Click to expand...
Click to collapse
app require "root", so no go for you...

Font key to get better screen in all apps(works on almost every device)

Hey guys today am going to share a registry key that could help you to get better screen resolution in all apps. I tested it on my device and it is giving good result
PATH: SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\Theme
KEY: FontScale
VALUE: any value b/w 10 to 100 (recommended 50)
I hope it helps you
Click thanks if you like
Got any comparison pics?
Looks neat to me, using the UserPreferenceWidth did the same but for some apps only, i thought we could add the fifth button in action center with this too.
Any key for that?
you did not get a better screen, you just made the text smaller
under ease of access you can do this , Text size
ceesheim said:
under ease of access you can do this , Text size
Click to expand...
Click to collapse
No in ease of access you dont get as low as he has mentioned.
Use UserPreferenceWidth=75
that too gives lower font size
matgras said:
you did not get a better screen, you just made the text smaller
Click to expand...
Click to collapse
yes no change in screen resolution
but using way we can get the font and tiles even smaller than the system's default
surya467 said:
Looks neat to me, using the UserPreferenceWidth did the same but for some apps only, i thought we could add the fifth button in action center with this too.
Any key for that?
Click to expand...
Click to collapse
surya467 said:
No in ease of access you dont get as low as he has mentioned.
Use UserPreferenceWidth=75
that too gives lower font size
Click to expand...
Click to collapse
thanks for confirming
yes, i tried that UserPreferenceWidth option but that key is not working on Lumia devices.
I also tried to add the fifth action center tile but no luck till now.
thanks for confirming
yes, i tried that UserPreferenceWidth option but that key is not working on Lumia devices.
I also tried to add the fifth action center tile but no luck till now.
Click to expand...
Click to collapse
weird, it worked for me on Lumia 525, u need to restart the phone once u edit the registry, atleast that was what I had to do to get it to work. Remember to pin the Preview for developers app to the start screen before u restart the phone or else it disappears from the app list.
i.e if you use the PfD reg tool hack
That on my Lumia 525, pretty sweet, no much use though
Any key to change font?
This is a lot better to add this key insteed change font scale!!
Code:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\Theme]
"UserPreferenceWidth"=DWORD:0x0000004B
& for 5 actions button:
Code:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Settings\QuickSettingElements\Pinned]
"AllowedQuickSettingsElements"=DWORD:00000005
xboxmod said:
This is a lot better to add this key insteed change font scale!!
..
& for 5 actions button:
Code:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Settings\QuickSettingElements\Pinned]
"AllowedQuickSettingsElements"=DWORD:00000005
Click to expand...
Click to collapse
Code:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Settings\QuickSettingElements\Pinned]
"AllowedQuickSettingsElements"=DWORD:00000006
With AllowedQuickSettingsElements=6 I have 6 actions button or my phone doesn't boot in your opinion?
Or nothing change?

Categories

Resources