Questions tagged as 'android-widget'

2
answers

How do I create events in a widget?

I intend to create a widget that would consist of a simple button that, when pressed, executes an action. I've been watching tutorials like this " Widgets SGOliver " , I understand a lot of what they explain there but my problem comes in the...
asked by 20.10.2016 / 00:27
3
answers

Change icon and return to it on an Android onClick

I am developing an android app. One of the images is a button that redirects to a certain task. I would like that when I click, for a second, it takes effect that it is pressed and returns to its normal state. I have already prepared the icon...
asked by 02.06.2016 / 12:36
1
answer

How to create a widget from an activity?

I already have the widget, add it in the manifest, the interface and the functionality of it What I want is that through a button in an activty, the widget is put, this so that the user can put and / or remove the widget from an activity...
asked by 06.04.2018 / 00:39
1
answer

ListView on Widget

I'm trying to learn how to make Widgets and I want to make one with a listView. In the normal Activity of the app I do the typical of: ListView lv = (ListView) findViewById(R.id.lv); AdapterLV adapter = new AdapterLV(getContext(),R.layout....
asked by 09.06.2017 / 11:21
1
answer

My ListView is not displayed in Widget

First of all, it is the first time I do a Widget . I'm probably doing the process wrong, so I ask for help, having said that, I'm going with my problem. In my main class, MainActivity I have a ListView that I'm filling wit...
asked by 22.03.2017 / 00:44
0
answers

How to Create a Widget From Java Code?

I asked myself and I was working on another test with the widgets and I was wondering if I could create a widget from code. An idea of what I'm saying: create an app that when you place text in an EditTex and select an image, create a new widget...
asked by 27.10.2016 / 01:58