android-widget Questions
5
I just start a widget and its xml show the imageview in the emulator on AS, but whatever i put the imageview at what position the image is not show. Here is my xml layout of widget
<RelativeLay...
Lulita asked 26/2, 2017 at 14:3
4
I changed the locale of my application programmatically, like following:
Resources res = context.getResources();
DisplayMetrics dm = res.getDisplayMetrics();
android.content.res.Configuration c...
Steelman asked 27/3, 2012 at 12:2
5
I added a native Android home screen widget to my Flutter application.
In my AppWidgetProvider implementation, I'd like to call dart code in my onUpdate() method using a platform channel.
Is this...
Colure asked 27/12, 2018 at 6:0
3
Solved
I want to show unread notification count on my app icon when app is not opened.
this post seems to be close but it is 3 years old. Has there been any change on this or I should go with solutions pr...
Stanstance asked 22/5, 2016 at 11:53
10
Solved
I know it's possible, but I can't figure out a way to trigger an update of my widget from the main activity. Isn't there some general intent I can broadcast?
Misgive asked 11/8, 2010 at 3:43
2
I have an ImaveView on a RemoteView for which I have to apply a filter. When not in the RemoteView this is what I do and it works well:
Drawable icon = getResources().getDrawable(R.drawable.icon)...
Waiwaif asked 1/7, 2015 at 18:23
3
I'm new to android java and I don't really knows how to make the button appear on my VIEW after a long time researching online. I can see my button in the layout but not on my view when I debug it....
Desireah asked 12/12, 2012 at 4:19
1
I try to display up to three elements in my Home Widget according to how many rows a user expanded the widget to. (1-3 should be allowed)
So the height of each element should be the height of one r...
Kelula asked 14/5, 2021 at 8:45
3
Solved
I have a edittext in which some text are selected . I want to get only selected text from edittext on click of button .
Please suggest me usable link or sample code.
Equivalency asked 9/4, 2012 at 8:33
7
Solved
I need to completely remove dividers from ExpandableListView. As for parent items it's a setDividerHeight method where I can pass a zero value. But there's no similar method for child divider. Is t...
Clockmaker asked 14/7, 2010 at 10:27
5
Solved
I'm looking to use enums for a list inside of a spinner widget on android. I have my enums setup as follows:
public enum States{
AL("Alabama"),
AK("Alaska"),
AR("Arkansas"),
AZ("Arizona"),
CA...
Wersh asked 24/8, 2011 at 22:0
13
I am building a small Android app where the user will enter an IP address or a hostname into an EditText widget. 90% of the time they will be entering an IP address, the rest of the time - a hostna...
Automata asked 28/12, 2011 at 22:15
4
Solved
Is it possible to Highlight text in a TextView or WebView?
I see it is possible in a EditText
Highligh text in a EditText
I'd like to do the same in TextView or WebView.
Thats Possible?
Hebdomad asked 22/1, 2010 at 19:51
2
I've created a custom view which should change it's background image when pressed, highlighted or disabled. The app runs but the button doesn't change it's background.
here's my code:
public clas...
Miletus asked 2/5, 2012 at 0:49
6
Solved
Any way of adding ListView's bounce effect to regular scrollview?
By bounce I mean the rubber band like effect when you hit the bottom of the list.
Enterprising asked 26/8, 2011 at 8:24
5
When we click the widget at that time I need to open an activity screen (or application). How to do this?
Atrip asked 28/8, 2010 at 6:31
3
I have a custom built circular progress bar used for a seconds counter on a clock, which I'd like to flip, so that the clock is counting counter-clockwise.
Searching here for a solution, I found t...
Sigismond asked 24/12, 2012 at 13:57
0
I'm building a progressive Web application.
Is there a way to create an Android desktop widget?
Sis asked 18/12, 2020 at 8:10
9
Solved
I have my layout xml file:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_...
Downpipe asked 23/4, 2013 at 18:7
2
When I use findViewById() I get an error.
What method should I use, instead of findViewById() in my app widget?
P.S.: I want to do something like:
Button a = (Button) findViewById(R.id.button);
...
Valerivaleria asked 16/6, 2017 at 11:25
5
Solved
I'm trying to use the Android PreferenceScreen as a convenient way to layout my user settings, but I don't want to save the preferences to the device shared preferences. Is this possible, or should...
Stately asked 31/1, 2013 at 19:12
1
Solved
I created an analog clock widget in java, and for some reason I get "Problem loading widget" all the time, the only things I get from the logcat when I try to place the widget are:
2020-1...
Triplicity asked 18/11, 2020 at 17:31
8
Solved
I want to know, How to write Multiline Text on Button
<Button
android:id="@+id/button1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentT...
Capping asked 31/10, 2013 at 6:28
15
Solved
How can I set an ImageView's width and height programmatically?
Habitable asked 29/6, 2010 at 21:36
8
Solved
I'm upgrading my app with widget. It's not the first widget I've done. I was always encountering weird issues, but the widget was shwoing up on the list eventually.
Here is what I've done so far:
...
Nasya asked 11/4, 2013 at 12:22
© 2022 - 2024 — McMap. All rights reserved.