Questions tagged [remoteview]

A class specific to Android that describes a view hierarchy that can be displayed in another process. The hierarchy is inflated from a layout resource file, and this class provides some basic operations for modifying the content of the inflated hierarchy.

A RemoteView is a class specific to Android that describes a view hierarchy that can be displayed in another process. The hierarchy is inflated from a layout resource file, and this class provides some basic operations for modifying the content of the inflated hierarchy.

This is specific to Android, this tag should be typed as per the Android Tag Info.

331 questions
4
votes
3 answers

Call setImageDrawable from RemoteViews

I have done this in an Activity and it works perfectly. ImageView myImage = (ImageView) findViewById(R.id.myImageView); ShapeDrawable mDrawable; mDrawable = new ShapeDrawable(new…
Ranhiru Jude Cooray
  • 19,542
  • 20
  • 83
  • 128
4
votes
2 answers

Show GIF with glide in android notification

I have been trying to show a .gif image inside my custom notification using Glide library. I am only able to show static image on the notification panel. RemoteViews collapsedView = new RemoteViews(getPackageName(),…
4
votes
0 answers

Accessing Notification's RemoteView contents

I'm trying to list all active notifications on an Android device, by going through their textual fields and extras. For most notifications, that works fine - but for some apps, all these fields (such as title, subtext and so on) are all empty/null.…
4
votes
2 answers

Get Size of ImageView in RemoteViews

I am writing an Android AppWidget. The layout for the widget contains a LinearLayout and, inside that, a number of ImageViews. In the AppWidgetProvider OnUpdate method, I first create a RemoteViews for the layout ... var rv = new…
Boulder Keith
  • 535
  • 1
  • 5
  • 10
4
votes
1 answer

Is it possible to Inflate RemoteViews in other application?

I am developing two android applications, one being the baseApp and other serving as a pluginApp. The aim is to extend the functionality of the baseApp when its corresponding plugin is installed. The pluginApp will contain XML layout files which…
4
votes
3 answers

Android: spacing around bigContentView in notification

I'm placing custom content in my notification using 'bigContentView', setting it to the same remoteViews as that which I've already established for a widget on the homescreen. The problem I'm having is that the height of the notification content…
drmrbrewer
  • 11,491
  • 21
  • 85
  • 181
4
votes
1 answer

RemoteView not displaying buttons in custom notification

I am implementing custom push notification by integrating RemoteViews.The problem is,the buttons within the remoteview is not displaying.I am not getting what wrong I have done. Code: public class AlarmReceiver extends BroadcastReceiver { Bitmap…
kgandroid
  • 5,507
  • 5
  • 39
  • 69
4
votes
1 answer

Android Custom close button for notification

Hey I would like to create a custom notification I would like it to look like the sound cloud notification more specifically the x on the top right corner for closing also when I scroll from left to right I don't want the notification to be removed.…
user1534409
  • 325
  • 8
  • 21
4
votes
0 answers

Android Listview in notification

Can I have a listview in a notification in Android 3.0+? And if so, maybe a scrollable list? I have seen that this can be done in a widget, but can't seem to find the way to do it for a notification. So far I have a notification with a custom layout…
fcristel
  • 41
  • 3
4
votes
2 answers

RemoteViews (Widget) has fuzzy text when using a Bitmap

To place a custom font on my widget I am creating a bitmap with the font inside of it, and then placing that bitmap into my RemoteViews. However the text on the bitmap is pretty fuzzy, and looks really pixelated compared to how crystal clear it is…
Gatekeeper
  • 6,708
  • 6
  • 27
  • 37
4
votes
0 answers

Where to get Outside Data from RemoteViewsService.RemoteViewsFactory

I need to populate a ListView in a Homescreen Widget. I know I use RemoteViewsService.RemoteViewsFactory as a sort of Adapter. I also know how to populate the rows in getViewAt() method to show this. However, I need to populate an ArrayList of…
TheLettuceMaster
  • 15,594
  • 48
  • 153
  • 259
4
votes
1 answer

How to set custom ListAdapter to list view in appwidget?

I have a listView. I needed a custom view for each list item, so I've created a custom ListAdapter which gives the views, layout for which is given below. But how do I set this listAdapter to the ListView in the widget using RemoteViews ?
Amol
  • 285
  • 1
  • 5
  • 15
4
votes
3 answers

onClickPendingIntent in RemoteViewsFactory

I'm developing an Android Widget for an app, and the problem is I can't set onClickPendingIntent() on a button in a RemoteViewsFactory. I explain: I created an AppWidgetProvider, which calls an extending of RemoteViewsService which calls an…
Kyu_
  • 800
  • 4
  • 10
  • 18
4
votes
2 answers

How to add vertical line to RemoteView for custom Android Notifications?

I'm struggling to add a vertical line to a custom Android Notification. I've tried adding a view like this to my Relative Layout:
Karim Varela
  • 7,562
  • 10
  • 53
  • 78
4
votes
1 answer

Get information from a remoteView?

I am been trying to figure out how to get information from a remoteView. There sees to be plenty of set functions but no get functions. More precisely I would like to get the size of my remote view like this question but for remoteViews.
Nys
  • 556
  • 4
  • 10