[Q] Implementing a Windows 8 style progress ring animation in Android - Android Q&A, Help & Troubleshooting

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.

Related

[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.

[C#] Developing DataGridView (Excel style)

hi I am new in programming for android but I have experience with .NET programming so I would like to use Xamarin.
I am trying to find some example of DataGridView (something like Excel table). Fixed header and ability to move data horizontally and vertically.
I am googleing few days and I found just java code or just ListView not like table grid.
I am realy new in it. I am working on my first app for android but I am able to use some working code in my app but I am not able to create my own DataGridView.
So if somebody know some opensource project with DataGridView (like Excel table) written in C# for android let my please know.
Thank you

[Q] Android M App-Opening/Closing Anim

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

"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).

How do I skin my custom ROM?

I'm trying to make a custom ROM (for now, only for x86, because I don't want to flash anything on my actual phone) and I want to modify the default UI throughout the entire system. This includes colors, outlines, corners on buttons, etc. Is there something in the AOSP source that would allow me to make these changes? I'm hoping I don't have to open the source for each individual application to change the look.
MasterPixelDestroyer said:
I'm trying to make a custom ROM (for now, only for x86, because I don't want to flash anything on my actual phone) and I want to modify the default UI throughout the entire system. This includes colors, outlines, corners on buttons, etc. Is there something in the AOSP source that would allow me to make these changes? I'm hoping I don't have to open the source for each individual application to change the look.
Click to expand...
Click to collapse
Sorry to say that but you'll have to mod each and everyone of your apps to have those changes (outlined, colors).
I've heard of a substratum theme that might fit your expectations, but I you want to do it yourself (which is more fun) you'll have to modify each and every apps. When you'll mod systemUI your modification will go "system wide" (quick settings and stuff) but the phone app won't be changed.
Have a good day
@MasterPixelDestroyer
Several XPosed Framework modules exist that do the job.
Study their source code to get an idea how to tweak system UI ( read: home screen ) is done.

Categories

Resources