[Q] Android M App-Opening/Closing Anim - Android Q&A, Help & Troubleshooting

I'm trying to port the app opening/closing transition from Android M to Lollipop, but I haven't been very successful. I do know that these animations are usually held in the `framework.res`, but the only thing I could really find that MAY be related to it is something labelled `com.android.internal.transition.EpicenterTranslateClipReveal`.
example of the animation: https://www.youtube.com/watch?v=Og4n1hwWt0k&feature=youtu.be (video not mine; found on reddit)
I've tried porting all the `anim`s, `animator`s, and `transition`s from Android M's `framework.res` and copying them over to Android L's, but they're more or less the same. I installed the Google Now Launcher from Android M along with its Google App, which I found has an interesting behavior in using the system's default app-opening transition instead of forcing the Android L slide-up on app-open, which other versions of the Google App do even when you replace the system default app-open animation.
I'm guessing the Android M Google App interacts with the launcher in such a way that it tries to call the Android M App-Open transition, and if that transition does not exist, then use the system default one, while regular Google Apps try to call the Android L app-open transition instead of the system-default, and since it exists on my device it will always use it.
Perhaps we have to mess with the Manifest/values xml? I'm not too sure what to look for, maybe someone who knows more than me can help me out.
Thanks. I'll attach the Android M `framework.res`.

The new animation is in the Google Search App. It's weird because I've been trying to do the same thing, doing the same exact things you been doing with the same conclusions. Apparently, the new animation is only targeted to SDK 23. Of course lollipop users are on SDK 22. The app installs necessary support libraries for your device based on your SDK version. So since were on Lollipop SDK 22, the support libraries for Lollipop will be installed at runtime, meaning we still get the slide up animation. I don't know why Google didn't allow the new animation on Lollipop too. The only way I can see getting this working is changing some code defining which support library gets installed on Lollipop, but that could cause some crashes. Another thing is, porting the animation it self to the Framework-res.apk and defining it in Styles.xml

Related

[Q] how to make the stock launcher widgets visible in other launchers

Dear m8s
there's no doubt that Xperis S stock launcher is awesome
but still i want to experience other launchers
for me, i found Nemus launcher is so great
my only problem is that i can't place the stock widgets (timescape) and Accuweather on any of the home screens
as it's not available in Widgets list in any launcher except the stock one only
tried some other launchers to check, and result is still the same
available only in stock launcher widgets list
and not available for any other launcher
My Q is, is there any method i could make the stock launcher widgets list available for all launchers
i'm sorry to place a Q in this forum, but i think my Q is related to this forum only
i'm not trying to break any rules
Thanks in advance.
You can't use Sony widgets with other launchers.
I've wanted this for a while but my research yielded nothing :-(
Sent from my XperiaS via subspace beacon.
Not possible...sorry and actually that is the reason I didn't move to other launchers...
i really can't believe it that Devs can cook a complete ROM
and they r unable to port some widgets only !!
ChIcO*GsM said:
i really can't believe it that Devs can cook a complete ROM
and they r unable to port some widgets only !!
Click to expand...
Click to collapse
You see, when you modify the stock firmware, you don't have sources for anything but the kernel. You can add tweaks and overclocking and init.d without going deeper, but after that it's all decompiling. You probably know a toolchain named smali. If you don't, smali is like assembly for Android. You can't get java code from a built app, just as you can't get C++ from an EXE. Now say we want a part of that app ( widgets ). This is the very moment smali comes in. With smali, you can get some very basic, assembly like code from a prebuilt app. That's the code Android uses to run it. And that's where the interesting things are. To allow using Sony widgets on other launchers, you need to find the code responsible for loading them, displaying them and all the code the previous two depend on. It can be in the launcher or in the frameworks, so it's two huge source trees that you can't even search through. When you get all this code, you need to integrate it into your launcher app. Ironically, Android doesn't support smali code directly, so you have to either rewrite it back into Java ( which is hard) or build your launcher first and then add the code using smali ( which is not easier) .
K900 said:
You see, when you modify the stock firmware, you don't have sources for anything but the kernel. You can add tweaks and overclocking and init.d without going deeper, but after that it's all decompiling. You probably know a toolchain named smali. If you don't, smali is like assembly for Android. You can't get java code from a built app, just as you can't get C++ from an EXE. Now say we want a part of that app ( widgets ). This is the very moment smali comes in. With smali, you can get some very basic, assembly like code from a prebuilt app. That's the code Android uses to run it. And that's where the interesting things are. To allow using Sony widgets on other launchers, you need to find the code responsible for loading them, displaying them and all the code the previous two depend on. It can be in the launcher or in the frameworks, so it's two huge source trees that you can't even search through. When you get all this code, you need to integrate it into your launcher app. Ironically, Android doesn't support smali code directly, so you have to either rewrite it back into Java ( which is hard) or build your launcher first and then add the code using smali ( which is not easier) .
Click to expand...
Click to collapse
in short words
i have to wait till Android support this smali
or to wait for some Dev to wast his time on this
as i dun have any other solution yet
So,Waiting .....

[Q] Implementing a Windows 8 style progress ring animation in Android

Hello everyone,
I've been searching for some more info on the new spinner/preloader animation in the new Windows 8 UI, and I was hoping I might be able to find someone here that might be able to assist me. My first preference is that I would like to add it as a part of my theme chooser theme via the T-Mobile Theme Engine for cm-10.1 or similar Android 4.2 AOSP-based ROMs. I'm thinking that this may not be possible, and if not I would still like to add it to my ROMs that I compile from source (currently I've been using PAC-man as my source, which is a hybrid of cm-10.1, AOKP jb-mr1, and PA 3.1+) . I'm not sure exactly where the file resources for it are located on the Win8 OS, however I *think* it might be in C:\Windows\System32\Windows.UI.Xaml.dll. I did find these guides on the Microsoft Dev Center site, though:
Quickstart: adding progress controls (Windows Store apps using JavaScript and HTML)
How to style progress controls (Windows Store apps using JavaScript and HTML)
which refers to the animation I'm looking for as an Indeterminate Progress Ring. I also found some additional info in the API reference here:
ProgressRing class
ProgressRing constructor
Progress element | Progress object
Here's a crude animated gif of the progress ring animation to give you an idea of what I'm referring to (it's white with a transparent background so you can't see it if I embed it directly here):
http://imgur.com/uOcWPjy
And here's a pretty close representation of it coded in CSS3:
http://codepen.io/jameswyse/pen/uisvk
(note: the animation at that link displays fine when I'm on my Windows partition, but doesn't seem to display correctly with either Firefox or Chrome/Chromium on my Linux partition)
So I guess my question is, how might I be able to incorporate that animation into my ROM to replace the default Activity Circle animation (or spinner animation)? I would assume that it would be better to implement it through java rather than trying to implement it using a gif or a frame animation that would require adding 103 additional images to the source files just for this animation. However, I would consider myself a total n00b when it comes to coding in java for Android. I can kang some code together or modify bits and pieces of existing code without too much trouble, but I've never tried to write anything from scratch.
Any help would be much appreciated. Thanks.

[Q] How to implement animation-list (or similar) in an Android Live Wallpaper

I recently downloaded this Android LWP source code (http://www.codeproject.com/Articles/108390/How-To-Create-Android-Live-Wallpaper) to get started with LWP development. The thing is, I'd like to implement a frame-by-frame animation with a set of predefined images. I've been testing animation-list in a XML file but inside an application itself, not with a LWP.
Does anyone have an idea of how I can achieve that or something similiar?
Thank you in advance, I'd truly appreciate any guidance.
Try to implement it in the same way (actually, a live wallpaper is much like any other android app). You can also use OpenGL to take advantage of the hardware acceleration (using AndEngine, for example).
If you wish more tutorials, take a look here.

Mini-apps

Just had a quick thouht is it possible to add all apps to mini apps because i find them more useful than samsungs muliwindow. And on tbis size screen one can truly multitask.
diamantericos said:
Just had a quick thouht is it possible to add all apps to mini apps because i find them more useful than samsungs muliwindow. And on tbis size screen one can truly multitask.
Click to expand...
Click to collapse
Try the Launcher Lite apk from this thread.
http://forum.xda-developers.com/cro...apps/small-apps-phone-launcher-torch-t2810994
Edit..I had installed this a while ago and had forgot how it worked. After trying it out I can see it is only an app switcher, not a way to use apps in multi window.
diamantericos said:
Just had a quick thouht is it possible to add all apps to mini apps because i find them more useful than samsungs muliwindow. And on tbis size screen one can truly multitask.
Click to expand...
Click to collapse
Unfortunately No, Samsung takes the hacking to the core level to provide their multi window capabilities, hence the 'Powered by Android' logo needs to be pushed into their boot screen by Google. Sony Small Apps on the other hand does not mess around with the core Android system so albeit limited, but it can be safely called Android, just like what Google wants. The downside is that Small App is not an Activity (even though the feature set is similar) so no direct porting between them and plus all the proprietary Views (like what Youtube did with their API) makes it impossible to use their API into Sony Small App Window. The only option is to enrich the Small App ecosystem with a capable small apps that can be taken as a light version of the real app.
This isn't small apps but it may offer some of what you are seeking. Requires root and xposed framework to be installed.
http://forum.xda-developers.com/xposed/modules/mod-xhalofloatingwindow-v2-38-movable-t2419287
Thanks for responses. and i already hqve xhalo installed but blah to it lol its not the same.

"Newbie" looking to create a "standard" android theme. Some starter questions

"Newbie" looking to create a "standard" android theme. Some starter questions
Hello,
I am not new to Android but I have had a tough time finding a "native" way to create themes. I do not want to use a theme launcher or an alternative home app. I just want to use the standard android home app and create a theme for it. I took a brief look at the theme starting page above but none of the links I tried work. I just want to use the standard android theme (it fits my tastes closely enough) and change only a few things (for now). Here is what I want to change:
Wallpaper (so that it changes periodically through a "slide show"... only one shows currently... I have already some of these)
Lock out Wallpaper (so that a different one shows every time like it currently does... I have already created these)
Replace specific icons (I already have the icons I want to use)
Possibly replace colors of one or two apps (such as texting).
Is it possible to do this?
I have done some initial exploring on my own. My phone came with one theme (and the default theme) and that is it. I found it on my phone and decompiled it. It appears a bit more complex than I was hoping though I understand most of it. There are lots of extra icons I do not want to replace so I have a few questions which are number in parenthesis. First, there appears to be some sort of pseudo java code. I know both C++ and C# and have used them extensively. However Java isn't nearly as familiar. It does not however seem to quite fit the Java syntax I have seen and used in the past.
The files that contain this pseudo java code also seem to define the file names to use for each icon followed by a hex code which I am assuming is the activity that the file is associated with. However, I have not found where it defines the lock out wallpaper. (1) If I only specify specific icons, will the default android icon be used or do I need to identify them all? (2) If I need to do them all, is there a location to download the standard theme for Java 6.0.1 (the version on my phone?) (3) Is there a standard format for themes that can be used by the Android Home/Launcher? (4) Is someone going to update the sticky post above with more recent file links?
I found this icon pack generator tool. (5) Does it create "standard" icon packs that can be used without a third party launcher? I still would like to integrate my own wallpapers and lockout wallpapers though.
primem0er said:
Hello,
I am not new to Android but I have had a tough time finding a "native" way to create themes. I do not want to use a theme launcher or an alternative home app. I just want to use the standard android home app and create a theme for it. I took a brief look at the theme starting page above but none of the links I tried work. I just want to use the standard android theme (it fits my tastes closely enough) and change only a few things (for now). Here is what I want to change:
Wallpaper (so that it changes periodically through a "slide show"... only one shows currently... I have already some of these)
Lock out Wallpaper (so that a different one shows every time like it currently does... I have already created these)
Replace specific icons (I already have the icons I want to use)
Possibly replace colors of one or two apps (such as texting).
Is it possible to do this?
I have done some initial exploring on my own. My phone came with one theme (and the default theme) and that is it. I found it on my phone and decompiled it. It appears a bit more complex than I was hoping though I understand most of it. There are lots of extra icons I do not want to replace so I have a few questions which are number in parenthesis. First, there appears to be some sort of pseudo java code. I know both C++ and C# and have used them extensively. However Java isn't nearly as familiar. It does not however seem to quite fit the Java syntax I have seen and used in the past.
The files that contain this pseudo java code also seem to define the file names to use for each icon followed by a hex code which I am assuming is the activity that the file is associated with. However, I have not found where it defines the lock out wallpaper. (1) If I only specify specific icons, will the default android icon be used or do I need to identify them all? (2) If I need to do them all, is there a location to download the standard theme for Java 6.0.1 (the version on my phone?) (3) Is there a standard format for themes that can be used by the Android Home/Launcher? (4) Is someone going to update the sticky post above with more recent file links?
I found this icon pack generator tool. (5) Does it create "standard" icon packs that can be used without a third party launcher? I still would like to integrate my own wallpapers and lockout wallpapers though.
Click to expand...
Click to collapse
I've moved your thread to Q&A as I think it is more appropriate. So you want to keep the standard android launcher, depending on your device you could install a rom that has substratum support. This will allow you to keep your normal launcher but theme every aspect of your rom
sawdoctor said:
I've moved your thread to Q&A as I think it is more appropriate. So you want to keep the standard android launcher, depending on your device you could install a rom that has substratum support. This will allow you to keep your normal launcher but theme every aspect of your rom
Click to expand...
Click to collapse
What about my device would it depend on? If I even understand this question, my first guess would be my OEM. since...
I really don't know what you are talking about. Wouldn't the rom depend on the OEM? What if my OEM doesn't provide substratum report (not that I know what that is).

Categories

Resources