android-widget Questions

4

Solved

Is there any solution for Android devices similar to the iOS 6 smart app banner? Here is the code for smart app banner <meta name="apple-itunes-app" content="app-id=311507490, affiliate-data=p...
Selfregard asked 31/10, 2012 at 23:4

1

Solved

I have home screen widget, which has a simple AppWidgetProvider and JobIntentService, where I do all the work. Problem is - it works kind of randomly. Sometimes it does, sometimes it doesnt - weird...

7

Solved

I'm trying to make a general framework function that makes any Drawable become highlighted when pressed/focused/selected/etc. My function takes a Drawable and returns a StateListDrawable, where th...
Georgiegeorgina asked 2/11, 2011 at 11:17

5

Solved

Is there possibility in android to provide TextView some text in Java code with setText(text) function with basic tags like and to make marked words underlined ?
Allan asked 19/12, 2011 at 7:17

2

Solved

I have an app on Google Play market and I added android:installLocation="preferExternal" to manifest.xml file and released long time ago. Now I would like to add Android home screen widget, so I ne...
Dainedainty asked 25/3, 2013 at 16:32

11

Solved

I'm trying to deactivate the soft keyboard when using a NumberPicker to enter numerical values (for aesthetic reasons). This is my layout-xml-code: <?xml version="1.0" encoding="utf-8"?> &lt...

4

Solved

I am using this API demo of the Developer site, THIS DEMO. But i am wonder that how to save that image in to My Andrtoid Device. Is please anyone give the Code to save that drawn image to the Andr...

3

How to add testview when touching a letter on right alphabet panel as shown in images? Could you please help me? Below is my code. In details, I am looking for an example exactly like below image...

1

Solved

I'm trying to build a widget for my Android app and I'm running into the problem that while the ListView does find data (through the debugger I can see the getViewAt method in my RemoteViewFactory ...
Realistic asked 3/5, 2020 at 17:55

9

Solved

Im using an action bar and adding a searchView to it. I have implemented the searchView.onCLoseListener but this does not seem to be getting invoked. Any suggestions ? My code looks something like...
Spank asked 17/12, 2012 at 19:39

11

Solved

I keep getting a runtime error when launching my activity and it says android.widget.textview cannot be cast to android.widget.button? XML: <?xml version="1.0" encoding="utf-8"?> <Relati...
Besetting asked 17/9, 2012 at 19:1

6

Solved

I want to make this kind of button [same background & text] colors by using XML Styles that's just for an example, i want to write some other texts, like: About Me Still i am using button c...
Mark asked 29/8, 2013 at 9:38

2

Solved

I have a widget app that works with no problem Android Lollipop or lower OS. When I upgraded my nexus 5 into Marshmallow (android 6.0), I realize that my widget has a problem on loading custom row ...

4

I asked a similar question before but I was too vague in my request. The code below draws a nice stylized button. When you click on the button, you can input a number and based on the number, chang...
Rolf asked 21/11, 2012 at 20:23

1

I'm using my own version of https://github.com/mdg-iitr/RotatingText in order to show a rotating text widget. A video is available in this GitHub, allowing you to see the animation. The idea is to ...

7

How can i remove default search icon which appears as a hint in SearchView widget(not in actionbar)?Through styles i can change the icon but i can't find a way to remove it?
Resurrectionism asked 9/4, 2015 at 5:50

11

Solved

I am newbie to the programming world and my knowledge is limited. Please excuse me if i ask any blunder. My question is that. I am creating an Activity which has START & STOP button. when user...
Brennan asked 23/3, 2012 at 12:0

6

Solved

Consider this preferences.xml file: <?xml version="1.0" encoding="utf-8"?> <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" android:title="@string/preference...
Phuongphycology asked 5/3, 2011 at 8:57

5

Solved

How to create below Image type of Progress ring in my Android app. I Want to show it 10 second before my whole app is loading on device. and also I want to rotate it. like window device rotate. Any...
Protoplast asked 27/1, 2016 at 4:42

4

Solved

The code below does NOT change the text of all of a ListView's rows because getChildCount() does not get all of a ListView's rows, but just the rows that are visible. for (int i = 0; i < listV...
Magdala asked 22/1, 2010 at 1:37

4

Solved

I am trying to update a Widget more frequently than the 30 minute restriction imposed by the 1.6docs. After reading nearly every post in SO, and the developer docs, and various other sources, I tho...
Melancholy asked 29/3, 2011 at 18:0

5

Solved

I am using a ListView. But the top-most and bottom-most horizontal bar does not show up. Why? I am using this: android:divider="@android:drawable/divider_horizontal_bright"
Barytes asked 30/3, 2010 at 2:19

12

I want to determine the width and the height of the WebView. I have already tried it using: webView.getWidth(); webView.getHeight(); but the resulting log always shows them to be 0.
Until asked 23/10, 2009 at 10:39

3

Need to know what actually difference between TextInputEditText and TextInputLayout, When should we use one of them.

6

Solved

I want to take input, a URL or just a website name like, www.google.com from EditText in Android and on user click on the Button to submit or when the EditText looses the focus the URL should be va...
Flivver asked 11/4, 2011 at 6:51

© 2022 - 2024 — McMap. All rights reserved.