remoteview Questions
2
In my AppWidgetProvider, I do following:
@Override
public void onReceive(Context ctx, Intent intent) {
final String action = intent.getAction();
if (action.equals(NEXTPAGE_ACTION)) {
AppWidgetM...
Cur asked 5/2, 2012 at 23:52
1
Background
I need to make a custom, big-style notification that has about 3 images on the bottom, and a title of and image and 2 textviews on the top.
Something like that:
The upper area needs...
Sirdar asked 2/11, 2014 at 13:28
1
I'm working on widget for my application which based on StackView and should display some items. Count of items can vary due to user actions - lets say it is some kind of favorites menu. I have imp...
Kerouac asked 15/10, 2013 at 15:2
3
I have created an Appwidget that displays an image file (test.png) that is provided to it's RemoteViews via Uri.
In onUpdate i run a service that changes the content of the file. I have also set a...
Langbehn asked 20/9, 2014 at 2:33
1
I need to know the code that allow me to set the Weight of a RemoteView.
I tried with this code but this doesn't work:
RemoteViews remoteViews = new RemoteViews(c.getPackageName(), R.layout.notif...
Carolanncarole asked 21/7, 2012 at 21:11
1
Solved
When my StackedWidget view was only a textview, it displayed on the launcher screen, but with a more intricate layout (A RelativeLayout, imageview, textviews) it does not display anything
Is there...
Michelinamicheline asked 19/5, 2014 at 13:57
1
How to control a music player from buttons in notification, and how to listen button action from the notification
Premaxilla asked 19/2, 2014 at 5:40
2
I'd like to get as much information out of a StatusBarNotification-object as possible. Right now, the only "reliable" information that can be accessed is the tickerText-property. I'm using the foll...
Harlan asked 8/8, 2013 at 9:15
3
Solved
I want to programmatically add Text Views controls to my home screen widget. In the following example I populate Linearlayout with TextViews, but how should I use RemoteViews here? It only accepts ...
Aulea asked 13/2, 2012 at 19:30
3
Solved
I am making a widget in which you can specify the text size
controles.setTextViewTextSize(R.id.LblMsg, TypedValue.COMPLEX_UNIT_SP,
textSize);
I am working with android 4.1
android:minSdkVe...
Petronia asked 28/8, 2012 at 11:22
3
Solved
I am trying to set image in image view in widget layout in onUpdate, but image is not updating
@Override
public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetI...
Harelip asked 2/5, 2013 at 16:37
2
Solved
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:
<View
android:id="@+id/line_vertical"
android:layout_width="1...
Galvanize asked 15/5, 2012 at 18:57
2
Solved
I design an android app widget in which two ImageView i want change the image both of the the ImageView when click on the image as well as call a method.
Now i use RemoteView like this
RemoteView...
Cybernetics asked 30/1, 2013 at 6:23
1
Solved
I want to change one of the visual elements of an android widget when the user clicks it. This is in the widget's xml
<ImageView
android:id="@+id/bg"
android:layout_width="wrap_content"
and...
Cailean asked 3/1, 2013 at 4:15
1
I have created a notification method as shown below:
NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
Notification notification;
notificat...
Dacy asked 5/9, 2012 at 15:4
1
Solved
I want to add text views arranged in a linear layout to my widget on runtime. I do following:
LinearLayout l = new LinearLayout(context);
for (int i = 0; i < 10; i++) {
TextView t = new TextVi...
Appose asked 15/2, 2012 at 16:42
3
Within my widget, i'm using the following to dynamically add items (R.layout.widget_item) to a LinearLayout defined within my main widget layout:
//-- Main widget layout
RemoteViews views = new Re...
Amalee asked 10/9, 2011 at 17:49
2
Solved
hey all when installing my app to the emulator I get this:
ERROR/AndroidRuntime(465): java.lang.RuntimeException: Unable to start receiver com.myPackage.Widget.MYWidget: java.lang.SecurityExcept...
Misdeem asked 29/9, 2011 at 19:35
1
Solved
int mColor = 0xff00ff00;
remoteView.setInt(R.id.framelayout1, "setBackgroundResource", android.R.color.white);
how do i set the color using mColor ?
Endo asked 21/9, 2011 at 8:45
1
Solved
Under RemoteViewsService.RemoteViewsFactory
public RemoteViews getViewAt(int position) {
final int itemId = (position % 2 == 0 ? R.layout.light_widget_item
: R.layout.dark_widget_item);
RemoteV...
Nancynandor asked 17/7, 2011 at 2:44
1
Solved
I have an app widget and I'd like to add Views (TextView, etc.,) to the RemoteView but it never shows up.
Here goes the code:
RemoteViews views = new RemoteViews(context.getPackageName(), R.layou...
Gauge asked 2/11, 2010 at 13:20
© 2022 - 2024 — McMap. All rights reserved.