Questions tagged [android-remoteview]

134 questions
2
votes
0 answers

How to add programatically created layout to Remoteview?

I am trying to add programmatically created layout to remoteview Here is my small demo but it didn't work: LinearLayout parent = new LinearLayout(getAppContext()); parent.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT,…
Rushikesh Talokar
  • 1,515
  • 4
  • 16
  • 32
2
votes
1 answer

update RemoteViews in notification every second

I have a problem with updating custom notification value in my service. I use RemoteView and want to update textview every second and I don't have any true idea for doing this. it's my code: int icon = R.drawable.ic_launcher; long when =…
Meysam
  • 694
  • 6
  • 20
2
votes
0 answers

Can't Update ProgressBar in GridView in an AppWidget

I am working on AppWidget for Android. I have a GridView on AppWidget and in every single item of GridView i Have a ProgressBarr. This ProgressBar should be updated Live(as i want to see it progressing from left to right). Unfortunately my code " a…
Muhammad Adil
  • 4,358
  • 3
  • 32
  • 36
2
votes
5 answers

Custom Notification is not displaying in Android

Hello I am display custom notification in my android application. But issue is that custom notification is not displaying. I saw many threads but did not find any answer related to my issue. I could not find where is the issue. Can you please look…
N Sharma
  • 33,489
  • 95
  • 256
  • 444
2
votes
1 answer

Android AppWidget Vertical Swipe - How

On the Android developers website, in the section discussing AppWidgets, there is a passage that says that the only available gestures for AppWidgets are touch and vertical swipe (link): Because widgets live on the home screen, they have to…
2
votes
2 answers

ListView not showing data in App Widget

I'm trying to implement a simple collection widget for my application, i'm trying to show a ListView inside a widget but the ListView is stuck at Loading... and never finish loading, and i have data in the database and the listview is still stuck…
2
votes
0 answers

How to invalidate RemoteView

I am making custom notification, and in receiver for intents I change text in element in layout of notification itself. When I update Notification nothing happens. Intents are being passed to receiver, I checked in log. Activity that makes…
Dejan
  • 3,046
  • 3
  • 28
  • 43
2
votes
0 answers

marquee scroll in notification via RemoteViews

I am trying to marquee scroll text in notification bar using RemoteViews. Also, I was able to debug the code to see that the TextView$Marquee was infact running the system of marquee scroll but the TextView on the UI wasn't actually scrolling the…
2
votes
1 answer

Android home screen widget textsize dynamically

There are applications that offer the ability to change the font size of a text in a home screen widget. One example is https://play.google.com/store/apps/details?id=org.zooper.zwfree However home screen widgets only can carry RemoteViews so setting…
JoachimR
  • 5,150
  • 7
  • 45
  • 50
2
votes
2 answers

Add programmatically created layout in remoteview for Notification

I'm developing an application in which I have to not use custom layout for notification. Instead I have to use programmatically created layout for RemoteViews. Here is what I'm doing for layout stuff: Notification notify = new…
Anupam
  • 3,742
  • 18
  • 55
  • 87
2
votes
1 answer

How to remove widget from RemoteViews in Android?

I've a remote view which I it's layout is as follows :
SagiLow
  • 5,721
  • 9
  • 60
  • 115
2
votes
2 answers

Unable to load multiple images in a RemoteViewsFactory

I'm creating a simple Android widget that fetches and displays some movie covers from a website. It's simple GridView that displays the images. The widget works fine but the moment I begin scrolling, I get and OutOfMemoryError and Android kills my…
1
vote
0 answers

selected one from a few layouts(as themes) and use in remoteview

I have a multi-layouted widget, and here a few layouts (each as theme) and I need assign selected theme (layout) with desired remoteview. As in topic, I added to manifest 2 receivers and created xml-files for differents layouts(themes). Now I have…
1
vote
0 answers

How to style Button in RemoteViews when create android app widget?

I want to create a simple widget with some Icon Button. As we all know, only some simple view can be used in RemoteViews, so I try to style Button like this:
1
vote
0 answers

Custom Push Notification - Full width background color

I am implementing custom push notifications. I have a custom layout, modified using RemoteViews. I have set color using contentView.setInt(R.id.parentLayout, "setBackgroundColor", Color.parseColor("#4979C5")) …
1 2 3
8 9