Can the "Buddies Now" widget be implemented with the standard Android launcher? - android

The Samsung Galaxy S includes the custom widget "Buddies Now". This widget implements a carousel that can be rotated with a a press-drag. Here's a description of the widget:
http://www.phonescoop.com/articles/article.php?a=389&p=2830&g=3054&h=25816
This widget exhibits features not commonly seen in other widgets: animated images and interactivity beyond a simple click. Does this widget take advantage of Samsung's custom launcher (TwLauncher), or is it a standard widget? If it is a standard widget, what API does it use for the animation and interactivity?

It's using Samsung's custom launcher to provide those features.
To see what can/can't be done with app widgets currently look here: http://developer.android.com/guide/topics/appwidgets/index.html
Specifically this section:
A RemoteViews object (and,
consequently, an App Widget) can
support the following layout classes:
FrameLayout
LinearLayout
RelativeLayout
And the following
widget classes:
AnalogClock Button Chronometer
ImageButton ImageView ProgressBar
TextView
So you don't have the UI components at your disposal when creating app widgets to design something with that level of interactivity. Not if you are targeting the stock launcher anyway.
However, from what I've seen of the Android 3.0 SDK, I think this level of interactivity will be possible on the stock Android 3.0 (Honeycomb) launcher.

Related

Does elevation not work within Android Home Screen Widgets?

Tried all sorts of different ways to do this but not matter what view I apply an elevation to (such as android:elevation="10dp") it does not render correctly on a Home Screen Widget.
Is this a known limitation, that home screen widgets do not support elevation. I am running this on an Android L device so its should not be a compatibility issue.
If this is impossible I figure I could use 9-patch or layer-list drawable to achieve a similar but not as good effect.
I've played with all widgets I have on my phone (both with Nova Launcher and Nexus 5 stock launcher, which is Google) and none of them have this feature, even Google apps (excluding Google Now!).
I've added app:elevation="10dp" on my widget and I think that it is not possible to have this feature on Widget directly, without playing with code and fantasy.
If you really want a widget that include elevation design, just "copy" the style of Google Now widget.
I suppose that they have a transparent layout (the black parts on image) wich contains another layout (grey) with elevation and grid filled with CardView with elevation too.
Let me know if you want an example code.

How to use new Android UI widgets used in Material Design specifications?

I have recently read over the Material Design specification and do not see any API changes/new classes/etc that relate to some of the UI widgets they use in their examples/pictures.
For example, the floating action button. I have read elsewhere that this is not (at least for the time being) included as a built in class. Is this the case for most of the other controls? Some other examples:
Flat buttons & Editable segmented pulldown buttons
Detached toolbar palette
I'm fairly new to Android development, so are these controls expected in the future? I know the L preview is a preview - so maybe these will be added eventually?

Android Widget Scrollabe Textview

i'm developing a SMS Widget.So came to across messages-widget
When i tried to replicate, the scroll feature is not available to that widget.
when i surfed, results where http://stackoverflow.com/questions/3879748/scrollable-textview-in-android-widget
Note i'm using Android 2.2 API Level 8.
Can anyone tell me how textview is scrollable with that opensource coding.
Is it possible to make a scrollable textview in widget ?
The link you provided is not a scrollable widget. It has buttons to move to the next/previous message.
HTC (and maybe others) have scrollable widgets, but it's their own implementation.
Scrollable widgets (with ListView and GridView) are available in Android 3.0+ (API 11+).

Map in android widget

I m trying to show map in android widget . But as far as i see there is no mapview in android widget. Anybody please tell me is there any possible way to display a map in android widget?
a Mapview is NOT a view that is supported in a widget. As can be noted here:
http://developer.android.com/guide/topics/appwidgets/index.html
Creating the App Widget layout is simple if you're familiar with XML
Layouts. However, you must be aware that App Widget layouts are based
on RemoteViews, which do not support every kind of layout or view
widget.
A RemoteViews object (and, consequently, an App Widget) can support
the following layout classes:
FrameLayout
LinearLayout
RelativeLayout
And the following widget classes:
AnalogClock
Button
Chronometer
ImageButton
ImageView
ProgressBar
TextView
ViewFlipper
ListView
GridView
StackView
AdapterViewFlipper
Descendants of these classes are not supported.
You can use simple ImageView with Static Maps API and draw over returned image from Google Maps. It's not exactly Google Maps, but it's extremely light weight (which is perfect for app widgets).
If you are app developer, there is no way.
If you can modify the framework, you can.

Scrollable App widgets

Scrollable App widgets are included in ICS and honeycomb ...for example the mail widget and bookmark widget
I want to code a custom scrollable widget for me for ICS ...
But I am unable to find any source and references..please suggest
App Widgets can be used with collections: http://developer.android.com/guide/topics/appwidgets/index.html#collections
For example android.widget.ListView and android.widget.GridView

Categories

Resources