android-widget Questions

2

Solved

I'm trying to make a simple widget with a button that start a Service with the OnClickPendingIntent(). I can start it fine but I can't figure out a way to stop it (I know I can do it with a Broadca...
Patience asked 13/12, 2013 at 17:14

9

I am using an ArrayAdapter<CharSequence> to populate the items to list in a android.widget.Spinner. That works all fine. But now I want to keep the list of items dynamic, i.e. I want to be a...
Kurus asked 13/8, 2010 at 12:23

3

Solved

Let's say that my Bottom Sheet has lines of widgets like the following. If I want to show only the first two lines (i.e., the first two LinearLayouts) initially, but not the rest of the widgets bel...
Caecum asked 27/2, 2018 at 17:7

3

What is the difference between EditText.setInputType and setRawInputType. I have a field that should allow for all characters, but I have a mode button that switches between numeric and alpha key...
Churchless asked 29/3, 2012 at 21:8

18

Solved

I made a simple AlertDialog in my Activity: View view = layoutInflater.inflate(R.layout.my_dialog, null); AlertDialog infoDialog = new AlertDialog.Builder(MyActivity.this) .setView(view) .creat...

3

Solved

I noticed that when I swipe my finger from left to right across a home screen widget, in simulator on a AVD, Android switch to the left home screen. I was wondering if its possible to prevent this...
Verada asked 30/1, 2010 at 10:21

2

I want to make a simple widget on my Android Homescreen where I am able to fill in my postalcode or city, and by submitting that data, I would like to be able to update the Widget with data from an...
Michele asked 5/6, 2016 at 11:14

3

Solved

I have a widget that parses xml feed and display its title and image.In this widget I am using a service that periodically changes the contents(ie, title and image).For this I am using timer class....
Bearer asked 21/11, 2012 at 13:58

4

Solved

I want to set the background of the dropdown suggestions of the SearchView in my Theme style. I don't want to do this via layout files, because I want the OS to handle the selection backgrounds the...
Superimpose asked 22/2, 2015 at 19:10

29

I have researched a lot to adjust the layout when softkeyboard is active and I have successfully implemented it but the problem comes when I use android:theme="@android:style/Theme.NoTitleBar.Fulls...
Acquiesce asked 14/9, 2011 at 13:30

3

Solved

I'm trying to make the listrows in my ListView Widget clickable by using the setOnClickFillInIntent method but whenever I click a ListItem nothing happends. Here are some key parts of my code: Int...

6

Solved

I recently ran into a problem again that I already had several times in the last years. LinearLayout is a very convenient layout manager. But what I totally miss is the possibility to add a certa...
Multitudinous asked 17/9, 2012 at 7:38

7

Solved

I have this TextView. Some parts of it is supposed to be aligned to the left and some parts to the right. How would I do this in Java? Basicly I want the first line to align to the left, and the ...
Rockwell asked 25/1, 2013 at 11:24

2

Solved

I wrote an AppWidget for my app that you can choose a name of place you like and it shows you a pic from that place. It has a configuration Activity (I used the same configuration activity of the ...
Theresita asked 14/10, 2011 at 11:12

1

Is it possible to have ripple effect on button which is part of remoteviews?(notification with custom layout or widget) I tried to set button background to drawable notification_material_media_act...

2

Solved

I recently downloaded Android SDK and running Android 4.2 on the emulator. However, I don't see any option to add widget on my home screen. (I can't even add default widget). I remember on Android...
Stalky asked 1/3, 2013 at 0:49

8

Solved

Tested with Android 1.6(4) and 2.3.3(10). I've made a minimalistic test application to demonstrate this, all it does is load the xml with: setContentView(R.layout.main); and the xml is: <?...
Matri asked 18/4, 2012 at 0:7

6

Solved

Is it possible to have a multi-line title in an Android alert dialog? I tried a couple of solutions posted here but none worked for me. I always end up with the title showing 3 dots (...) string fo...
Nataline asked 2/2, 2012 at 4:8

2

Solved

I'm making a widget for my WebView app, and it's got a list of buttons on it. Currently, It's firing an intent whenever their pressed. In that intent, I'm putting some string extra's, but when the ...
Metaphor asked 8/4, 2022 at 10:38

3

Hey guys, I have application widget, and I want to send some data to the intent that is attached to PendingIntent, by clicking the widget. here's my code final int N = appWidgetIds.length; for (in...
Leviathan asked 11/1, 2011 at 22:15

4

Solved

I'm writing an application which should be able to add widgets (just text boxes) to the home screen of the user's phone when the user instructs my app to do so. How can I do such a thing? I know t...
Niobous asked 19/4, 2013 at 8:59

7

Solved

A call to getLocationOnScreen() or getLocationInWindow() both give me a top/Y coordinate that is about ~30px (status/notifications bar's height) too far down. The left/X coordinate is dead on. As...
Overflow asked 14/4, 2010 at 14:47

8

I have a resources.xml file located under direcotry values/ , That's /values/resources.xml <?xml version="1.0" encoding="utf-8"?> <resources> <declare-styleable name="TheMissing...

13

Which is the simplest method to get html code from a webview? I have tried several methods from stackoverflow and google, but can't find an exact method. Please mention an exact way. public class ...
Deferment asked 20/11, 2011 at 10:36

15

Solved

I am developing Android v2.2 app. I have a Fragment. In the onCreateView(...) callback of my fragment class, I inflate an layout to the fragment like below: @Override public View onCreateView(Layou...
Razzledazzle asked 13/3, 2012 at 14:8

© 2022 - 2024 — McMap. All rights reserved.