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
0
votes
2 answers

How to change font of textview in Home screen widget?

I want to change the font of textview in Home screen widget? RemoteViews remoteViews = new RemoteViews(context.getPackageName(), R.layout.time_widget_layout); remoteViews.setTextViewText(R.id.tvTime,…
M.ArslanKhan
  • 3,640
  • 8
  • 34
  • 56
0
votes
1 answer

Picasso fetch() and get() with OkHttpDownloader

I am using Picasso library (2.5.2) with OkHttpDownloader (2.4.0) as downloader OkHttpClient myOkHttpClient = new OkHttpClient(); myPicassoInstance = new Picasso.Builder(context).downloader(new…
GPack
  • 2,494
  • 4
  • 19
  • 50
0
votes
1 answer

Get value from shared preference in remoteview

I am having a widget and i want to set some value from settings activity. I have saved values to shared pref using this code: MainActivity.editor.putInt("selected_theme", 1); MainActivity.editor.commit(); And in remoteview class i have…
kiturk3
  • 549
  • 10
  • 30
0
votes
2 answers

Recall remoteView instead of creating new one?

I have a Flashlight widget that stops responding after the launcher is restarted, for example when date is changed in system, the launcher resets on my phone. According to this thread on SO: Link, I need to update the remoteView instead of creating…
Muhammad Ali
  • 3,478
  • 5
  • 19
  • 30
0
votes
1 answer

Creating custom android notification without RemoteView

I am trying to create custom notification with custom view inside. I have to set custom array of custom objects into view. But RemoteView doesn't provide getView function. So I am asking, how to create custom android notification with custom view…
Megaxela
  • 97
  • 8
0
votes
1 answer

How do I draw a circle with a margin surrounding a containing image?

I only have a RemoteViews object that contains my individual views. I have the following layout for this RemoteViews object:
MarcusH
  • 1,693
  • 2
  • 15
  • 20
0
votes
1 answer

Updating single row in android widget remote listview

as the title states, is there any way to update one single row in a remote listview? I have got an application with a listview widget. When the user clicks a list view item, a service is started (via pending intent). This service updates model data…
Quark
  • 402
  • 4
  • 15
0
votes
1 answer

Notification size when not showing first

I'm using local notification like clock alarm with buttons to control it. My problem is that the Notification view isn't wrapping my content. So after searching around I found out that there is a workaround to achieve this by setting the view after…
Jesus Dimrix
  • 4,378
  • 4
  • 28
  • 62
0
votes
1 answer

setRotation of TextView in RemoteViews (app widget)

I have a widget whose xml layout is simple: an ImageView and a TextView. I can hardcode the rotation of the TextView in the xml by using android:rotation. However I want to be able to set the rotation of the TextView programmatically. It seems that…
drmrbrewer
  • 11,491
  • 21
  • 85
  • 181
0
votes
1 answer

Convert View to remoteview in Android

is it possible to convert inflated view to remoteview? View to RemoteViews I wish to create View and add to notification that accepts only RemoteViews
Dim
  • 4,527
  • 15
  • 80
  • 139
0
votes
1 answer

Saving run-time generated NinePatch on external memory

I'm following this post to create nine patch drawable at run-time. I need to save the 9patch image on the internal/external memory, so that i can easily retrieve it's URI and assign it to an ImageView for example. Does anybody know how can I achieve…
Ashkan Sarlak
  • 7,124
  • 6
  • 39
  • 51
0
votes
1 answer

How to recreate app widget in android

I'm writting "Time table app" which have to show today lessons as a listView in app widget. The all data (for all week days) are stored in one file called Data. The app widget get Data onCreate and then fillter them to get data for current day.…
Kaszub
  • 1
0
votes
1 answer

Clickable buttons in notification using RemoteViews and service

I'm trying to make a music player that works on api level 8 but has the same notification feature as the standard music player i.e. 3 buttons which control the player. This is my code, i know it isn't really finished but for now i just want to…
0
votes
2 answers

Custom notification layout: Bad notification posted from package Couldn't expand RemoteViews

I'm getting that disgusting exception when trying to use some custom layout for my notifications. I've cropped the notification to image and 2 TextViews to ease solution finding, but it still won't work. All advices from similar questions didn't…
Den Drobiazko
  • 1,077
  • 1
  • 13
  • 33
0
votes
1 answer

Android Notification icon on the left

Here's an odd question: How can I get the "styled" notification icon in the navigation drawer? Android (on my Nexus 5 at least) adds a little blue background to that icon, apparently. I would like to get that styled icon with its background. What…
Eric Cochran
  • 8,414
  • 5
  • 50
  • 91