Change background gradient while sliding across the screen - Java for Android App Development

Hello xda,
I have an pager adapter with multiple pages. My question is simple: is there any way to animate the background layout change while i'm sliding from one page to another? More like i need a way to figure out how long i've swiped and how to set the background based on this.
Thanks!

alex-p690 said:
Hello xda,
I have an pager adapter with multiple pages. My question is simple: is there any way to animate the background layout change while i'm sliding from one page to another? More like i need a way to figure out how long i've swiped and how to set the background based on this.
Thanks!
Click to expand...
Click to collapse
Here's your color changing part, you can easily connect it to a ViewPager or set it to listen for touch events I think.

SimplicityApks said:
Here's your color changing part, you can easily connect it to a ViewPager or set it to listen for touch events I think.
Click to expand...
Click to collapse
Thanks for your answer. I will try to implement it this morning!
Sent from my Nexus 5 using XDA Free mobile app

Related

Touchwiz 4.0 improvements

I have many questions regarding any upgrades to touchwiz. Here they are:
Can you change the default homescreen to something other than the 4th one?
Is the music player changed? Can you resume from last application exit or does it erase the playlist? Is editing playlists easier?
Can you change the bottom 3 icons?
Can you customize the app list screen into your own sorting system? Can you change views?
Can folders sort alphabetically?
Are there additional widgets compared to Touchwiz 3.0?
Is the lock screen improved? Does it still have music player controls?
Are any other samsung custom apps changed i.e. calendar, alarms, etc.?
Thanks for any answers to these questions.
invinciblegod said:
I have many questions regarding any upgrades to touchwiz. Here they are:
Can you change the default homescreen to something other than the 4th one?
Is the music player changed? Can you resume from last application exit or does it erase the playlist? Is editing playlists easier?
Can you change the bottom 3 icons?
Can you customize the app list screen into your own sorting system? Can you change views?
Can folders sort alphabetically?
Are there additional widgets compared to Touchwiz 3.0?
Is the lock screen improved? Does it still have music player controls?
Are any other samsung custom apps changed i.e. calendar, alarms, etc.?
Thanks for any answers to these questions.
Click to expand...
Click to collapse
Not sure about the answers to all your questions, however i do know the answer to the first one.
Can you change the default homescreen to something other than the 4th one?- The default homescreen is the first homescreen in touchwiz, not the 4th, and as of now, there are no settings discovered which can change the defaults.
Our community can definitely fix that.
Will try to find out the other answers
ndnesh said:
Not sure about the answers to all your questions, however i do know the answer to the first one.
Can you change the default homescreen to something other than the 4th one?- The default homescreen is the first homescreen in touchwiz, not the 4th, and as of now, there are no settings discovered which can change the defaults.
Our community can definitely fix that.
Will try to find out the other answers
Click to expand...
Click to collapse
On TW4 the default is the fourth screen.
Furry Atom said:
On TW4 the default is the fourth screen.
Click to expand...
Click to collapse
No it is the first. You don't have to have all 7 screens enabled. For example I only have 4 so having it set to the fourth wouldn't always work
You can change the default homescreen.
ryude said:
You can change the default homescreen.
Click to expand...
Click to collapse
How? I haven't found that option yet. You can move homescreens around but you couldn't, say start the homescreen on the 4th one and move left and right from there.
Yes!!! How? I will be very happy to know how i could i set the default home screem to the panel number 04. Tks
Nobody can help us?
No one has found a way to change the default homescreen?????
why_999 said:
No one has found a way to change the default homescreen?????
Click to expand...
Click to collapse
Its a bit early most devs have not got sgs2 YET .
jje
JJEgan said:
Its a bit early most devs have not got sgs2 YET .
jje
Click to expand...
Click to collapse
Fair enough...
I don't have yet the phone but I saw a youtube vid showing the user changing the arrangement of the screen.
So just switch your desired home screen to the current default panel. I think what he did was he zoomed out until all the screens are displayed, then tap, hold, then drag.
The default homescreen is homescreen 1, the far left one.
Not really sure why the default homescreen matters though? It will stay on the one you last used until you switch to a different one anyway. Moving your homescreens around is pretty easy also with menu->edit.
why_999 said:
No one has found a way to change the default homescreen?????
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1080774

[Q] App to lock individual home screen

I have one homescreen that has my emails and calendar. I would either like it hidden or with its own look screen. is there an app or a launcher that does that. i apologize in advance if this is the wrong place to post.
I'm a little shaky on understanding what you mean. Are you trying to ask if you could have different wallpapers for each home page? Can you elaborate a bit more?
Protocol 7 said:
I'm a little shaky on understanding what you mean. Are you trying to ask if you could have different wallpapers for each home page? Can you elaborate a bit more?
Click to expand...
Click to collapse
I have 3 homescreens. 2 are general, roughly divided by activities and contain and have no easy access to sensitive information. The third homescreen has my emails, my calendar, office access and has widgets to have the information visible on the homscreen. I don't want everyone who has access to the table to have access to those accounts.
When I am working on my tablet i like these things to be there and easily accesbile to me. Therefore, I would like to be able to either hide this homescreen - not accessible by casual presses or swipes, or separately lockscreen it. so even if the tablet is unlocked and active, say I hand it to a colleague, if they scroll through the homescreens, this one either wouldn't show, or would have a second lock screen, without showing the content of the real homescreen.
you can password protect individual applications. http://www.android-password.com/
I Know I can do that, but what i want to do is hide one of the homescreens that has widgets to those apps open.
killersnowman said:
you can password protect individual applications. http://www.android-password.com/
Click to expand...
Click to collapse
I think I know what deecee52 is asking for, and I don't think it's possible, But I'd really like to thank you for that link
Not sure if it will help but you can simply install a second launcher and set it up with the widget/app you want to hide and create a invisible shortcut (in the corner of a screen or something).
Sent from my GT-I9000 using XDA App
or use Regina 3D Launcher
- Secret workspaces where you can hide some of your app shortcuts and widgets for your privacy
Click to expand...
Click to collapse
swee08315 said:
I think I know what deecee52 is asking for, and I don't think it's possible, But I'd really like to thank you for that link
Click to expand...
Click to collapse
thats why i gave the link and the alternate idea, because at this time i dont think you can lock an entire home screen without that functionality being built into the launcher itself
Thanks for the suggestions. I like the idea of Regina 3d, although it doesn't seem to be on the market anymore.
I've thought of two browsers and widgetlocker, not sure if it will work. Hoping one of our crack devs might look into this for one of the launchers
Hi,
you might have some luck looking into the hide calls/sms/apps on the market to see if they have a setting that would allow you to do what your looking for. there are several ones that you could try but please read them carefully because i do know that with some if you lock something (say a photo) this way and forget the password you will not be able to access your information/pics/sms files etc you've locked. all of these are avail in the market & range from free-$12 (loky)
extreme call blocker, lock, secrets, horizon, secret phone settings & loky
not sure if any of these will do what you want but what your asking for to my knowledge can only be done with Regina 3d as meantioned already...which is a great app btw​
Also take a look into child protection type apps. I did come across Smart lock 2.0 which seems rather close to what you had described.
tittieslover said:
Not sure if it will help but you can simply install a second launcher and set it up with the widget/app you want to hide and create a invisible shortcut (in the corner of a screen or something).
Sent from my GT-I9000 using XDA App
Click to expand...
Click to collapse
Yeah...! This ll definitely help...
Sent from my GT-S5830 using XDA Premium App
@htccraze
thanks for the child safe approach. As I said the Regina Launcher is very attractive and the separate workspaces get pretty close to what I would like. It does not yet play well on tablets as it is only in portrait mode. I will definitely report back when I have had time to play around with some of these ideas.

App for changing lock screen wallpaper automatically.

Hello
I'm looking for an app which will change the lock screen wallpaper automatically. I tried the "Wallpaper Changer" from market. But it changes the home screen Wallpapers only. Any app there for lock screen? also I want to use the native lock screen itself. Thanx!
Why don't you try Settings>Display>Screen Display>Lock Screen Wallpaper
or you can go to a image the press the edit button and choose set as lock screen.
At least read the damn post!
The guy is asking for something that automatically changes the wallpaper, I would asume at a predefined or even random time.
@OP
I dont know of any app only for home screen wallpapers though, sorry cant be much of a help.
EarlZ said:
At least read the damn post!
The guy is asking for something that automatically changes the wallpaper, I would asume at a predefined or even random time.
@OP
I dont know of any app only for home screen wallpapers though, sorry cant be much of a help.
Click to expand...
Click to collapse
Yes I know how to change it manually. But wanted it auto like every few minutes or whenever I unlock the screen which would have been cool to look at different lock screen Wallpapers everytime u look at the screen
well thanx guys. Hope someone will make an app for this!
I use flikie HD to change my homescreen wallpaper, then I choose the lock screen option to change the picture to my wallpaper.which means it changes as per the schedule i set on flikie
Sent from my GT-I9100 using XDA Premium App
Hi,
You can probably do that with "Tasker" but this is not the cheapest app
Aimixess said:
Hi,
You can probably do that with "Tasker" but this is not the cheapest app
Click to expand...
Click to collapse
You can definitely do this with Tasker. As stated though not the cheapest app if this is the only thing you'll use it for. Steep learning curve too. Still, its an option.
Harsha Raj said:
Hello
I'm looking for an app which will change the lock screen wallpaper automatically. I tried the "Wallpaper Changer" from market. But it changes the home screen Wallpapers only. Any app there for lock screen? also I want to use the native lock screen itself. Thanx!
Click to expand...
Click to collapse
Very nice idea, I am also interested in this.
Aimixess said:
Hi,
You can probably do that with "Tasker" but this is not the cheapest app
Click to expand...
Click to collapse
It will be nice to select the photo automatically from an local album or even better from Picasa.
stoney73 said:
I use flikie HD to change my homescreen wallpaper, then I choose the lock screen option to change the picture to my wallpaper.which means it changes as per the schedule i set on flikie
Sent from my GT-I9100 using XDA Premium App
Click to expand...
Click to collapse
Now this I am not able to make it work. Can u tell me a detailed step by step as to how? Thank you.
And I am not ready to spend that much of bucks on tasker hehe
Use CM locker, its change your wallpaper daily.. Yes daily that's my problem, I need an app that change my lockscreen wallpaper every hour.
Hi guys, try "Hi Locker" from Lockdown Team. You can change it every 1 hour, 2 hours, etc.

[Q] how to set home page screen

Is there any way to set any screen other than 1 as my home screen?
Just move the screen you want to position 1
Sent from my GT-N7000 using XDA App
Sorry I wasn't clear, but I want my homescreen to be page 4, which is in the center. Main reason is because I want the center of my wallpaper to be on my homescreen.
I have read about a solution to that problem in a different xda forum, but since I don't use TW myself I don't remember the details. Google should be able to find it for you though
Evo 4G63 said:
Sorry I wasn't clear, but I want my homescreen to be page 4, which is in the center. Main reason is because I want the center of my wallpaper to be on my homescreen.
Click to expand...
Click to collapse
Just click menu/edit and drag desktop 4 to the top left corner of the screen.
Edit: this will solve your home-screen question but probably won't help with the wallpaper, with ADW you can set the home-screen without re-arranging the desktops.

Is it possible to "show grid" with WidgetLocker application?

I am attempting to make my lock screen appear like the image posted below. This screenshot is actually of the home screen, not the lock screen.
The only lock-screen app I could find that allows widget overlap is "WidgetLocker". If there are others I could play around with, please let me know.
My current strategy is to add both "Dash Clock" and "Circle Battery Widget" to the WidgetLocker (WL) lock screen and attempting to align them via overlap. Unfortunately, it looks like WL only allows overlap via resizing - not by placing one widget on top of another. I think it is still possible, with enough tinkering, but it won't be easy.
One thing that might make this easier would be if I could see the grid when moving widgets on the lock screen. The settings for this app are pretty extensive and I can't find the option if it's there.
Any suggestions that might help me reproduce this lock screen are welcome. Thanks in advance!
EDIT: I guess I don't have the privileges to add an image yet. If you're curious, head to bitly slash 19muwsg
You can't make two threads about the same thing.
Sent from my SAMSUNG-SGH-I337 using xda app-developers app
[email protected] said:
You can't make two threads about the same thing.
Sent from my SAMSUNG-SGH-I337 using xda app-developers app
Click to expand...
Click to collapse
They look similar but are two different questions. Sorry about that, should've been more careful with my wording. :angel:

Categories

Resources