How to have ActionBar like Google Play in pre HoneyComb devices ( > 2.2)? - android-actionbar

Firstly, This may look like a duplicate question but trust me I have searched all these questions, but couldn't find a suitable answer, yes it is frustrating. Still if you vote to close as duplicate please post comment so that I can learn, few of the similar questions are:-
1. ActionBar pre HoneyComb
2. Another similar question
What I want ?
In my Application I want to support the ActionBar like Google Play ( with few more buttons ). As shown below,
I want to use all three Action bars 1. Main Action Bar 2. Tab Action Bar and 3. Bottom Action Bar mentioned in this design page.
What I did ? I knew that ActionBar is not supported by default in pre-HoneyComb devices. so I started with searching for Alternatives, so I did following things:-
Downloaded the v4 support library and tried to get a working example, but couldn't.
Downloaded ActionBarShelock and created an example for that.
Downloaded this popular library (here on SO) from gitHub.
I have working examples of 2 and 3, but even they are far from what I desire. However I will prefer not using any prebuild library. Since it is a big Application which requires a lot of dynamic customization.
Please help me by providing any step by step guide to implement ActionBar using support library.

After considering that I decided using ActionBarSherlock, It is really easy to implement and to extend as well...

Related

UWP Listview with expandable items

I have searched a lot on internet about how to build a ListView with grouped items in it(header and subitems) but i did not manage to find a good documentation.
Found something here or here but something goes wrong...So the question is: is there a best practice for building that kind of ListView? Any official guidelines? I see, Windows 10 makes use of that control. Any thoughts of providing it with the SDK?
You can also choose to use some third-party libraries. E.g, How to Use Expandable List Items in Windows Store Apps
You will see its source code on GitHub as described in that blog.

BB10 Core Native SDK: Programmatically adjust screen brightness?

Is it possible? If so please provide a working example.
I have come across this function which can use the SCREEN_PROPERTY_BRIGHTNESS to apparently change a windows brightness. However, I have had no success using this as there are no noticeable differences. In the comments below, see two other people who have had a similar issue (posted on the BlackBerry Support Forums). According to one user, the SCREEN_PROPERTY_BRIGHTNESS property does not work. Can anyone verify that or provide an alternative solution?
Your first link is to a page that does not exist. On the page from the second link there are to things. The property you want is probably SCREEN_PROPERTY_INTENSITY, but the documentation goes on to say
Full read/write access to Screen API object properties is product
dependent.

what is the Alternative Way of TabActivity?

Hi I want to use Tab Activity(My Tab View must be at bottom) and android version 4.0 or later told that tabactivity is deprecated. so it must be a better way than it. but I could not find properly. some tutorials gave me advise to use Fragments but really I don't know anything about it. so please suggest me best tutorial or sample code for Fragments Or other best alternative way.
Thanks!
One suggestion is to use the Sherlock ActionBar. Inside the package there are good sample projects about Fragments, ActionBar, Navigation with tabs! I recommend ActionBarSherlock!
It also is 2.x compatible!!!
here is a link from android developer site,
http://developer.android.com/reference/android/app/TabActivity.html
and a tutorial,
http://maxalley.wordpress.com/2013/05/18/android-creating-a-tab-layout-with-fragmenttabhost-and-fragments/
Just by following above links you can create i easily.

Getting d3.js to work with raphael.js

I have recently implemented some data visualisation using d3.js, I'm now trying to get this to work for Internet Explorer browser versions 7 and above. The common suggestion to get this to work, is to combine d3.js with raphael.js, which is a cross browser graphics library.
There already seem to be some implementations of such libraries such as
r2d3.js :
d34raphael.js :
I'm trying to understand if these existing implementation already have d3's capability of data binding and the physics implementation of the force layout to implement something as simple as this d3 example : http://bl.ocks.org/1095795
I have been looking into this too and a number of options came up.
Chrome Frame - A browser plug-in that actually uses chrome underneath, meaning SVG just works. This is great if you're able to deploy plugins to the browser, for a real commercial environment however this may not be possible.
SVG Web - The aim is it bring SVG to all browsers. It looks like a fairly large project, one that's had Google's input. This doesn't however work out of the box with D3 though I don't know much about the issues.
D34Raphael - You've mentioned this one, I found again it doesn't work out of the box. Check the project out on GitHub, there hasn't been any commit activity in months and there's some pull requests "first pass on trying to get support for .on() required for event binding". If it doesn't support events, is that an issue to you? I'd generally keep away from this one.
R2D3 - Again another one you mentioned. I took the Sankey example from the D3 website and had to make a few changes to get it working. The main things I couldn't get working (Drag Events, Groups - though can use an alternative). It took about a day of effort to get the example working in IE8 and I believe is in a useable state. The project on GitHub is also much more active, the developer is committing, pulling work in and is very active on discussions etc. This gets my vote.

Building dashboards in django

I have a django app and I would like to display some graphical data visualization to my users. I am looking for an easy-to-use package that would allow me to add graphs and widgets.
The kind of widget I want to build is a kind of speedometer dial that is red at one end and green at the other. As a user completes their job over the day, the graphic/widget adjusts itself. The dial moves from red to green.
I also want an S-curve graphic that shows the cumulative amount of work accomplished against planned. That is kind of an x/y line plot.
My question are: How easy is this to implement? Are there any add-ins libraries or packages that do this already? I am trying to keep my entire application open-source. I've seen a couple subscription services that do this type of thing, but I can't stomach the cost.
I don't mind using ajax or jquery to implement such a thing, but I would like the most elegant and maintainable solution.
Any advice or examples on how to tackle this project?
There are lots of good javascript libraries these days, but all require some effort to learn how to use. I have not found one that really is easy to use, I guess because everyone wants something different. My general experience has been the more effort you put into learning them, the more you get out.
Google has gauges: http://code.google.com/apis/chart/interactive/docs/gallery/gauge.html
Also
http://www.flotcharts.org/
http://philogb.github.com/jit/
http://www.highcharts.com/
http://www.jqplot.com/
Or really take control:
http://mbostock.github.com/protovis/
As first, see the following grid (https://www.djangopackages.com/grids/g/dashboard-applications/) on djangopackages.
Not sure if that's exactly what's asked for, but you might take a look at django-dash (https://pypi.python.org/pypi/django-dash).
It allows each user to make his own dashboard (from plugins available). Those dashboards can be made public.
Some screenshots (http://pythonhosted.org/django-dash/#screenshots).
It's modular and plugin based, so you need to make a plugin and widgets for every specific feature (in this particular case - the speedometer plugin and widgets for it). Each plugin/widget can include own JS/CSS when being rendered.
See the following chart usage examples:
D3.js integration examples (https://github.com/barseghyanartur/django-dash/tree/master/example/example/d3_samples).
Polychart2.js integration example (https://github.com/barseghyanartur/django-dash/blob/master/example/example/bar/).
protovis is no longer under active development, but they started a new poject: http://d3js.org/
You may choose from these packages:
https://www.djangopackages.com/search/?q=dash