widget

Rounded corners on dynamicly set ImageView in widget?

守給你的承諾、 提交于 2020-01-01 19:28:10
问题 I have a widget with a config activity, where the user can select a color for the background of the widget from a color picker. I am using the method below where I have an ImageView and create a Bitmap which I dynamically set on the ImageView. http://konsentia.com/2011/03/dynamically-changing-the-background-color-in-android-widgets/ public static Bitmap getBackground (int bgcolor) { try { Bitmap.Config config = Bitmap.Config.ARGB_8888; // Bitmap.Config.ARGB_8888 Bitmap.Config.ARGB_4444 to be

Android ICS spelling error correction causes PopupWindow to crash

久未见 提交于 2020-01-01 14:51:14
问题 In our application we have a custom popupwindow. It works perfect on 2.2 -> 4.0.3 no hitches. If you misspell a word in ICS in the edit text within the popupwindow and click on it to have android attempt to correct it, the application instantly crashes every time with this exception: E/AndroidRuntime(13275): android.view.WindowManager$BadTokenException: Unable to add window -- token android.view.ViewRootImpl$W@42929b28 is not valid; is your activity running? E/AndroidRuntime(13275): at

Unable to get height/width of a widget - gtkmm

五迷三道 提交于 2020-01-01 10:54:07
问题 I'm writing an application using gtkmm. I wrote a simple widget class, that I want to display in the application's main window only in some cases. Otherwise, I would like a Label "disabled" to be visible. To achieve that I packed both the widget and the label into one VBox, and I show() and hide() them in order to swap them. However, the custom widget is far larger than the label, so I need to resize the label a bit . I know I can use label.set_size_request(x,y), and it works, when I type the

Android Widget stops working randomly

随声附和 提交于 2020-01-01 10:06:52
问题 I have been working with this problem for three days now and I've looked at every single question on here for an answer. I have a widget with a button on it and all I would like it to do is start a service everytime it is clicked. The problem is that the button stops working randomly. I can't recreate it at all and I have no idea what causes it. My service calls stopSelf(); but I have had this problem with a broadcast receiver also so I believe the problem to be in the widget and not in the

Today Extension Not Positioned Correctly

梦想的初衷 提交于 2020-01-01 07:20:37
问题 I'm developing a Bitcoin Today Extension and for some reason, the control has an offset. Here's what it currently looks like: http://i.imgur.com/KxeXePS.png As you can see, the button is barely on the screen, and the label isn't on the left side. My storyboard looks like: http://i.imgur.com/6vtfNGJ.png I've tried settings multiple kinds of constraints, and none of them seem to fix the issue. I'm not sure what other information I can add, but if you have any questions about the project, I can

update android widget (using async task) with an image from the internet

不羁岁月 提交于 2020-01-01 03:28:27
问题 I have a simple android widget that I want to update with an image from the internet. I can display static images on the widget no problem. I am told that you need to use an async task for this and I don't have much experience with these. Here is my widget: @Override public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { super.onUpdate(context, appWidgetManager, appWidgetIds); for (int i = 0; i < appWidgetIds.length; i++){ int appWidgetId = appWidgetIds

Recommend a JS calendar widget that handles both date and time? [closed]

巧了我就是萌 提交于 2020-01-01 03:22:06
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I'm working on a Web app where users need to input a date and time. I've used this calendar widget before and it works fine: http://www.dynarch.com/projects/calendar/ However, it hasn't been updated since 2005. I'm wondering if anyone knows of a better one. The calendar in jQuery UI doesn't handle times. Only

Set switchStyle - get error resource not found - why?

☆樱花仙子☆ 提交于 2020-01-01 02:10:06
问题 I ran into a strange Problem: I am creating a style for an app and I set: <item name="android:spinnerStyle">@style/CustomSpinnerAppearance</item> <item name="android:textViewStyle">@style/CustomTextViewAppearance</item> <item name="android:buttonStyle">@style/CustomButton</item> Now I wanted to set: <item name="android:switchStyle">@style/CustomSwitch</item> And I get this error. No resource found that matches the given name: attr 'android:switchStyle'. I have checked in API-Lvl 14 and 15

SSL iframe in and SSL page from a different domain

99封情书 提交于 2019-12-31 14:42:38
问题 Setting up the sandboxes for all these option is not feasible right now. So I am appealing to the community for help. This is a weird one and I just want to know what will work (most importantly in ie) and what wont. Http page with an iframe containing https from the same domain //no idea Http page with an iframe containing https from a different domain //no idea Https page with an iframe containing https from the same domain //no idea Https page with an iframe containing https from a

SSL iframe in and SSL page from a different domain

半城伤御伤魂 提交于 2019-12-31 14:42:14
问题 Setting up the sandboxes for all these option is not feasible right now. So I am appealing to the community for help. This is a weird one and I just want to know what will work (most importantly in ie) and what wont. Http page with an iframe containing https from the same domain //no idea Http page with an iframe containing https from a different domain //no idea Https page with an iframe containing https from the same domain //no idea Https page with an iframe containing https from a