Android Widget Scrollabe Textview - android

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

Related

Listview, scrollToItem does not work properly in android in appcelerator

I am trying to implement a screen in Appcelerator, where there are tabs in one view and the other view contains a listview with list sections. On the click of every tab, the respective section and section heading should scroll up. Say, I click on the third widget, the third list section and its section heading should scroll up. I have used the scrollToItem property for this. It works fine on iOS, but doesn't align properly when executing on the android devices. Any suggestions?
It's a bug in Android 4.x, this method would not scroll to correct position when you are running the app on Android 4.x. You can have a look at the Appcelerator docs : http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.ListView-method-scrollToItem
So if it is an appcelerator bug then, thumbs down we will need to look for some other options or work around to solve the problem (Maybe a Widget or Module if you want to go specifically with the listView).
Or else, you could use the TableView, as it also has a method scrollToIndex, only thing you cannot add animation in android in this.
Good Luck & Cheers

Normal view Android Notification with Buttons

I read that we can add buttons to the Big view of notifications that is available from 4.1. I want the same layout with buttons in 4.0. I want to know if I use custom view for notification containing the buttons, Will that work in 4.0 ?
Thanks.
The notifications before 4.1 were limited which is why Big View notifications were introduced in 4.1
It isn't possible to have custom views before 4.1 unfortunately
One of the reasons for this is the height of the notification, its is limited so it doesn't fill up the screen.

GirdView with a large first item

i wonder if there is a way to implement a GridView which first item is for example twize as large as the rest of the items.
I think this screenshot of an iPad App describes best what i want to achieve:
It depends on for what android versions you want to develop for:
Android versions prior 3.0 (Honeycomb) doesnt support column or row spans in GridViews,
so you have to implement your own ViewGroup (You can extend the very basic FrameLayout).
Started with Android 3.0 you can use the GridLayout class to do that.

android button widget with a dropdown list, what is the name of this particular widget?

Im learning android layouts and Ive noticed a particular button widget in some android apps that I would like to add to my own apps, Im just not entirely sure what its called, In some cases this button widget even will include a dropdown list here are a few examples of what Im talking about.
in the first image you will notice that the checkmark, the camera and the pencil are all sitting inside of the button widget i'm after, and in the youtube app you will notice the thumbs up, thumbs down and more buttons
That's ActionBar. Native support for 3.0+ devices, and some work to do in pre 3.0-devices. You can find example in new api 14 samples(called "ActionBarCompat").
Please see my answer here which gives some good links on how to implement the "dashboard" pattern, and use the "quickaction" bar. I think this should put you on the right path. Also there is a link on how to implement the "action bar."
EDIT: According to Mighter, if you use API 1.6 - 2.3 there should be official Google samples for this now. Please see this.

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

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.

Categories

Resources