android-widget Questions
6
Solved
I have a mp3 file in my android mobile, lets it's a xyz.mp3 somewhere in my sdcard.
How to play it through my application?
Casarez asked 3/9, 2011 at 7:18
2
Solved
I am implementing my first Jetpack Glance powered app widget for a simple todo list app I'm working on. I'm following the guide at https://developer.android.com/jetpack/compose/glance and everythin...
Symposium asked 12/9, 2023 at 10:40
4
Solved
I'm trying to make the pointer color of EditText to become blue.
I'm able to make the underline and the cursor to become blue, but the droplet looking pointer is still grey.
I google a bit, bu...
Tolbert asked 26/11, 2015 at 2:14
6
Solved
I want to use the NumberPicker component-widget but Instead in the default Holo theme I need to replace the blue color with orange since that is the default color in my styling.
How can I replace t...
Paleoasiatic asked 22/2, 2013 at 19:17
6
Solved
To start off, an image says thousand words:
This takes place although getViewAt is called 4 items as my cursor size is.
Here's the code:
public class WidgetService extends RemoteViewsService {...
Jeffryjeffy asked 19/2, 2014 at 19:56
2
Solved
I just got burned by a widget. I could see the cause of the problem, but I could not determine why or its solution. My widget was issuing a search (SearchManager) and the activity launched a search...
Zoogloea asked 16/7, 2010 at 21:25
10
Solved
I have tried to search on HashMap in Android, but getting problem:
Consider this example:
HashMap<String, String> meMap=new HashMap<String, String>();
meMap.put("Color1","Red");
meMap...
Falcate asked 6/8, 2010 at 9:10
4
Solved
is there anyway to use css for android controls, and can we make classes for similar controls.
Thanks
Atif
Syncope asked 27/7, 2011 at 11:53
5
Is there any api to set the limit no. of characters in SearchView ?
Agrapha asked 6/6, 2012 at 12:48
8
Solved
I am using a TableLayout. I need to have both horizontal and vertical scrolling for this layout. By default I am able to get vertical scrolling in the view but horizontal scrolling is not working.
...
Darton asked 9/9, 2009 at 13:11
3
Solved
I hope I can show 3 items in a page of viewpager, but now I only could set viewpager's padding value and margin value, so it only show one item in a page of viewpager. How can I set the item width?...
Nethermost asked 16/4, 2012 at 2:32
5
Solved
I am trying to create a widget for my application. From my reading an android developer site your onclick listeners all need to have an Intent. But what if I just want my button to update data in t...
Cureall asked 22/4, 2014 at 13:15
19
Solved
I've added a RatingBar in a layout:
<RatingBar
android:id="@+id/ratingbar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:numStars="5"
android:stepSize="...
Reck asked 20/5, 2010 at 14:14
3
Solved
Currently i am developing an application whose name is long , so i would like to display name in two line same as "Quick Calendar" and "Search People" in an attached home screen widget:
Please sho...
Gagman asked 3/12, 2010 at 13:21
4
Solved
findViewById is returning null for me on an ImageView widget. There is no error and nothing in logcat that indicates what is going on. The id's match and other image views are being set properly. J...
Oregon asked 9/12, 2011 at 22:46
7
Solved
I have a ToggleButton. I want to have more place for click on this button. If I add layout_width, layout_height etc. the image looks bad. I also tried using android:padding but it did not help me.
...
Pomerania asked 17/10, 2012 at 7:18
9
I want to realize
android:editable="false"
But it told me editable is deprecated ,you can use inputType instead.
So I don't know how to realize it by using inputType.
Skylark asked 24/1, 2017 at 13:37
16
Solved
My goal is to have an EditText that has no fancy features, just the Text Selection Handler for moving the cursor more easily -- so no context menus or pop-ups.
I've disabled the appearance of the ...
Notepaper asked 9/1, 2015 at 22:3
11
Solved
In my Application I am not having any UI part, so I need to start a Service as soon as the Applicaton gets installed on the Device. I saw many links from which the answer was that its not possible ...
Augur asked 16/12, 2011 at 9:7
11
My EditText configured as follows won't show the hint:
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="right"
android:hint="The hint..."
...
Commune asked 31/8, 2010 at 10:46
4
I am working on Android Widget my widget is like following diagram,
[prev] event name [next]
prev, next are the buttons on the widget.So i want to update the event name on click of next and prev b...
Odaodab asked 26/12, 2011 at 11:56
2
Solved
When defining a global android.widget variable, e.g. TextView, is it preferable to use lateinit or by lazy? I initially thought using by lazy would be preferred as its immutable but I'm not entirel...
Fetial asked 18/5, 2017 at 20:12
1
With the release of Android 10, several widgets (Gmail, Google News, Samsung Email) now update their theme when Dark mode is toggled. I am trying to replicate that behavior. I have a listview widge...
Champagne asked 16/4, 2020 at 12:41
6
Solved
Is it possible to assign a widget width to half the available screen width, and do it using declarative xml?
Connacht asked 5/4, 2010 at 22:8
8
I have strange problem with TextView, it cuts off part of the text at the end. My layout looks like
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
andro...
Trusteeship asked 23/12, 2011 at 13:27
1 Next >
© 2022 - 2024 — McMap. All rights reserved.