android-widget

ListView with clickable/editable widget

Is it possible to use a OnItemClickListener on a ListView when the Items layout has a clickable/editable widget (RadioButton,EditText, or CheckBox)? ...

In an android ListView, how can I iterate/manipulte all the child views, not just the visible ones?

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 < listView.getChildCount(); i++) { View v = listView.getChildAt(i); TextView tx = (TextView) v.findViewById(R.id.mytext); tx.setTextSize...

Put any View over a VideoView in Android

It is possible to put any view over a VideoView? (I.e. put the control buttons over the video, like in vimeo). I'm trying to do it using FrameLayout, but I have not found the way, and I'm still not sure if what I'm trying to do something that's is simply not possible. ...

Highlight Text in TextView or WebView

Hi is possible to Highlight text in a TextView or WebView???? I see is possible in a EditText HIghligh text in a EditText I'd like to do the same in TextView or WebView thats Possible??? Alexi ...

Android : launching diff activities under TabWidget

hiii I am trying to launch activities under each tab. I hav tried with following code public class Tab_Proj1 extends TabActivity { TabHost mTabHost ; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); final Context context = getApplicationContext(); //mTabHost = (T...

Android Widget Text Background

I have an app with a widget but I am having some difficulty with the layout of the widget. The basic idea if the widget should look like an icon and have a little text tag under it like any other icon on the desktop. I found one example which uses an android:background for the TextView and uses a drawable XML: <shape xmlns:android="ht...

How to set OnSeekBarChangedListener for SeekBar used in AlertDialog via LayoutInflater

I am trying to access a SeekBar in a AlertDialog. I need to either setOnSeekBarChangeListener(), or access the SeekBar.getProgress() to get its value. Where do I do this? Is it possible? The dialog is shown using showDialog(id) from onOptionsItemSelected. The following code is used in onCreateDialog to create the AlertDialog with cus...

android, cannot align icons on the right in listview's row

Hello, I am currently working on my first android app. In a listview, I need to have the following organisation in each row: On the left: one main icon on which takes the whole height of the row On the middle: 2 texts, one below the other On the right: 2 icons, one below the other I end up with a row.xml file like this, but that does...

ExpandableListView centains a link does not expand

hello, I have an ExpandableListView contains a link, it does not expand when has a link, and i want the link is clickable. code like this: <ExpandableListView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/list" android:layout_width="fill_parent" android:layout_height="fill_parent" android:groupIndic...

About developing rich text edit widget.

I'm considering to develop rich text edit widget, so I'd like to get some useful information. The requirement of widget is RTF support. I don't mean supporting MS RTF format exactly, just supporting style like RTF is enough for me. So, anything about its development, such as kind of styles, how to design edit widget, is welcome. Thanks i...

AutoCompleteTextView displays 'android.database.sqlite.SQLiteCursor@'... after making selection

I am using the following code to set the adapter (SimpleCursorAdapter) for an AutoCompleteTextView mComment = (AutoCompleteTextView) findViewById(R.id.comment); Cursor cComments = myAdapter.getDistinctComments(); scaComments = new SimpleCursorAdapter(this,R.layout.auto_complete_item,cComments,new String[] {DBAdapter.KEY_LOG_COM...

Is there any example about Spanned and Spannable text.

I'm struggling with using EditText and Spannable text object, These days, I've read API documents around ten times, even I'm not certain that I understand correctly. So I'm looking for a kind of example which show me how to utilize EditText and Spannable. ...

Android question - how to prep 100 images to be shown via Fling/Swipe?

I'm totally new to this, been tinkering around for a week. Came up with a simple image viewer app for 2 images. Feature: Left and right swipes will switch the images. Dead simple. What i'd like to do: Have up to 100 images. note: All my images are in my res/drawable folder. They're named image1.png to image100.png I obviously don'...

Android - Is It possible to disable the click of home button

I have an application, when it launches I have to disable all the buttons, I successeded in disabling end call and other i need to disable home buttom if I click it, It should not produce any action. Any suggestions highly appreciated Cheers Vinayak ...

Are Android app widgets (for home screen) allowed gestures?

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 behavior and allow home screen gadgets to listen and react to finger gestures (like swipe)? Its very critical for my widget UI design. Thank...

Is this a standard android component?

The "Top paid", "Top Free", "Just In" buttons (with green selection indicators) in the picture below...Are these standard components that I can use in my Android application? I can't seem to find them within the SDK and yet I've seen them here (in the market) and within the Seesmic Twitter Android app. I would like to use such and effe...

What's the proper way to implement an Android widget with dynamically drawn content?

For my first and most awesomest Android project, I want to create a home screen widget which displays one of those Arc Clocks that all the kids are raving about these days. Based on the limitations of RemoteViews, it looks to me that the appropriate way to get it actually drawn on the screen is to use an ImageView in the actual layout, ...

Implementing a listview inside a sliding drawer with a listview already present

I have an app whose main class extends ListActivity: public class GUIPrototype extends ListActivity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); final Cursor c = managedQuery(People.CONTENT_URI, null, null, null, null); ...

Changing ImageView content causes OutOfMemoryError

Hello, I have a very simple application with one ImageView and a Button. The first Drawable resource loaded by my ImageView is specified with the "android:src" tag in the XML Layout, however at runtime i want to change the picture displayed by it. To do so i start an Activity for result to pick an image from the sd card (intent sent t...

Coloring Default Buttons - color filter only on unfocused state

Hi All, I want to buttons of different colors, but I want to do so while using the default button background resource in order to preserve the onfocus and onclick states. This is because I want to use the default highlight color of the OS for my app, which is NOT always orange (HTC Sense makes it green). I found that adding a color fi...