Is there a way to get the body text of a notification to scroll along the notification?
If this text is too long it just fades out at the border near the time. Is there a way to make it scroll slowly along so that someone could read it while in the notification drop down menu without having to either read it when it ticks along the status bar when it is received, but without going into the app?
I think this would be possible with a custom notification layout that housed XML with scrolling views, but i cannot use a custom layout, the notifications need to be created through the default notification creator.
Anyone know if this is possible?
Edit: im in no way affiliated with Onavo Lite, it was just a image i found to point out the text area i want to manipulate.
No, the default notification layout uses TextViews with a maximum size and no scrolling features.
Related
I want to show notification with big picture(BigPictureStyle) and big text(BigTextStyle). How can I do it?
Setstyle only allows either BigPictureStyle or BigTextStyle. If you need a non-standard notification style, you may have to use a custom notification layout.
See Change Notification Layout and How to make an image fit a custom 256dp Big Picture Notification in Android? on using a custom notification layout. For multi-line long text use android:inputType="textMultiLine" for the TextView. The latter answer contains an example of custom big picture.
I have seen some apps for which push notifications only display the app icon on the left and the message content on the right, with no title nor time. Also the message content takes the entire space and can occupy up to 3 lines.
.
When I don't supply any title nor text, my message still appears below where the title and time should be. It can only occupy one line and ends up showing only the beginning, with some ellipsis at the end.
I already looked at BigView and BigTextStyle, but it doesn't look like it's what I want, as even if I don't supply a title nor time, the notification message doesn't move up. Also I don't want the user to have to expand the notification to see the whole text.
Is there any simple way to achieve what I want? Or do I have to create a custom layout? I'm using Phonegap and have very limited Android knowledge.
Here is the code I'm currently using: https://github.com/phonegap-build/PushPlugin/blob/master/src/android/com/plugin/gcm/GCMIntentService.java (see the createNotification method).
I wasn't able to find any easy way to do that, like tweaking existing objects. I guess it always requires creating a CustomNotification, which I did: I created a RemoteViews to display things exactly the way I wanted.
I want to show an icon on status bar when receive some messages.
The icon represent the number of unread message, so I want to draw some text, such as 2 on the icon.
I tried two solutions but both failed.
set number field (in notification class) as 2 , it seemed this is not supported after android 3.0
set remoteviews on statusbar, using framelayout in remoteViews, but failed.
statusbar only show icon, do not show overlayed text.
How can I implement this feature on android 4.1.2?
thanks in advance.
Use RemoteView in notification. Refer this Link
You should go for BadgeView. It gives you notifications that resemble facebook like numbers
You can't do it generally (as you discovered, support for badging the small icon with a number was dropped in Honeycomb since in most cases it made the underlying icon hard to see and understand).
If you feel you must do this, I'd suggest generating 10 or so images with the number embedded into the graphic. For the last one you'd do something like "*" or "9+" to indicate that there are too many updates to be enumerated in such a tight space :)
Im creating an in app chat and I cant figure out how to keep the listview I have implemented to keep from growing down below the edittext box I set up to take user chat. Whats happening now is that new lines add to the listview just fine but after the list grows large enough it starts to add to itself below the edittext box. I find that pretty annoying and imagine a user would too so my question is:
How can I keep a listview from growing downwards.
Id like for new fields/text to add to the bottom of the listview but be placed ontop of the edittext just like any normal chat would do.
It's very easy, simply set the transcriptMode. If you do it from XML, you have the choice between normal and alwaysScroll:
http://developer.android.com/reference/android/widget/AbsListView.html#attr_android:transcriptMode
This is how the built-in Google Talk and SMS/MMS applications are implemented (they use the normal transcript mode.)
i want to create a home screen application where the applications looks like carousel , and i am able to do it . The problem i am facing is that in my application only the applications icon are getting displayed the text is missing in it , where as my requirement is that i want to both the icon and text to be displayed together.
my application displays same as the above showing image.
i want text to be combined with it as above image.
please help me.
Thanks
datta
So the simplest thing to do would be to create a Compound Control. This compound control would essentially be a LinearLayout with both and ImageView and a TextView in it. Then, where ever you use a CarouselImageView in your code, just use your new compound control instead.