android-widget Questions

7

Solved

Is there a way to make EditText behaviors like TextView in Android (XML is prefered)? I have tried the following: android:editable="false" android:focusable="false" android:focusableInTouchMode...
Crymotherapy asked 19/3, 2011 at 1:35

8

Solved

How do I assign a different color to text in EditText by extending it?
Traumatism asked 20/4, 2012 at 7:52

7

I've got 2 activites : the first, HomepageActiviy, have a search widget that search data using another activity, SearchActivity. What I want to do is when I go back from SearchActiviy to HomepageA...
Cruiser asked 30/10, 2012 at 15:44

5

I have created an EditText for search, which contains on the left side a search icon and on the right side of icon: <EditText android:id="@+id/Search" android:layout_width="250dp" android:la...

6

I have implemented an android SearchView in ActionBar. When the SearchView gains focus, the close button [x] at the right shows up. I took a look at other android native apps, like Contacts and Gma...
Farant asked 19/9, 2014 at 9:12

11

Solved

I'm trying to use a TextView to define the style of a TabWidget on a tabhost. I just created a selector for bgcolor and works fine, but i want to make a selector for textColor but the text color d...
Reproval asked 2/4, 2012 at 18:57

5

Solved

I have three pages (Fragments) inside a ViewPager, however I only want to display a menu item for two of those pages. The code given in a previous SO answer does not seem to work: @Override publi...
Theretofore asked 2/7, 2012 at 12:2

14

Solved

I have developed an Android Widget, and it was working fine. I added some extra functionality and pushed an update through the Android Market. Now people are complaining that it doesn't work anymor...
Rooseveltroost asked 15/7, 2010 at 8:15

2

Solved

My app widget stops working after upgrading to targetSDk to 28. It is flawlessly working on old targetsdk devices. I am getting the following error: W/BroadcastQueue: Background execution not...

5

It doesn't seem to work. I looked at the solution proposed here: Android emulator 4.2.2 not showing add widget option in lock screen but without success. Using the rev1 image (as the rev2 has a bug...
Lampe asked 21/8, 2013 at 21:58

5

I have to place an double click event on Image view..Whenever I double click on Image ,It sshould be Zoom.But I found that there is no such event like double click in Image Veiw. Can Anyone Tell me...
Mugwump asked 4/3, 2011 at 8:42

8

Solved

In my application when users click or touch on the Edit Text view the focus is sometimes set to the beginning. For example if the existing text is "Hi". Users wants to click on it and change it to ...

6

Solved

I want to design a layout for my login screen, I tried the following codes. Using some hardcoded values I got my center green color layout center for some screen sizes. I know using hardcoded value...
Werby asked 4/1, 2013 at 3:43

3

Solved

i have this problem, i have private ArrayList<CustomItem> items; private ArrayAdapter<CustomItem> arrayAdapter; i show the data present in items, this data i see in listview, now i...
Mcdougall asked 25/7, 2012 at 21:15

3

Solved

I want to capture the onClick event when the user selects a spinner value. I've tried implementing OnClickListener and using the following code: @Override public void onClick(final View view) { ...
Dyspnea asked 18/4, 2012 at 15:42

4

I have a widget with simple button implementation, that whenever we click on a button it flips through a given set of images. Now if I want to flip it every 5 seconds without the button being click...
Ecuador asked 31/5, 2013 at 23:37

12

Solved

I want to set title and subtitile of my action bar before compile time. I got a way to do it like this: ActionBar ab = getActionBar(); ab.setTitle("My Title"); ab.setSubtitle("sub-title"); But I...
Flamenco asked 12/1, 2013 at 19:37

1

Solved

i need to do for inside for loop inside widgets. i create two widgets and i called it form another widget. it says "Not in range 0..6, inclusive:7" Code : List<Widget> ListMyClips(i) { Lis...
Carbine asked 28/5, 2019 at 10:44

3

Solved

I'm developing a simple Widget to my Android app based on the Google StackWidget sample: https://android.googlesource.com/platform/development/+/master/samples/StackWidget/src/com/example/android/s...

3

Solved

Android design pattern guide says widget's content and layout can be dynamically adjusted to the size the user defined through resize operation here: Design guide for widgets Example provided in t...
Wulfe asked 11/1, 2013 at 1:15

3

Solved

I have a webview in my android app, but when someone navigates around the site, it opens in a new window, i want it to stay inside the webview.. is there a way to do this easily? Here is the code i...
Jahvist asked 24/11, 2012 at 16:13

6

I'm using a VideoView component to play videos. I can't seem to clear the VideoView display after I manually invoke stopPlayback(). I would like to reset the VideoView so that the original backgrou...
Chandrachandragupta asked 2/4, 2013 at 15:13

7

Solved

This seems like it should be simple, but I can't figure out a way to do it. I'm needing a tab to have beginning text, but then have that text change after the user selects an item from a list. I kn...
Shae asked 8/9, 2010 at 12:41

16

I have a view made up of TableLayout, TableRow and TextView. I want it to look like a grid. I need to get the height and width of this grid. The methods getHeight() and getWidth() always return 0. ...
Adolpho asked 10/11, 2010 at 7:22

4

I have EditText and icon inside it <EditText android:id="@+id/myedittext" android:layout_width="match_parent" android:layout_height="wrap_content" android:drawableRight="@mipmap/microphone"...
Haslett asked 16/7, 2016 at 13:31

© 2022 - 2024 — McMap. All rights reserved.