android-widget

Maximum Refresh Rate of A Widget

I know that the default is 30 minutes, however I am looking at making a game in a widget This would require millisecond responses.... has anyone messed with the AlarmClock Timing that is described to use instead to achieve this? does it work well? I haven't finished the Software Arc for the project yet because I see a lot of complaint...

[Android] Show spinner wheel instead of image while downloading the source

I am going to create a gallery view where the user shall switch between different pictures of products. On some of them is going to be a label like "sale" and a short discription. On startup I want to display a loading animation at that place until the product photo is downloaded. Use layer list or state list for one product photo? Co...

overriding a style in android.

Let's say i have a layout with style: <LinearLAyout ... > <TextView ... style=someStyle /> <ImageView ... style=someImageStyle ... /> </LinearLayout> the style will be defined in an xml in my project. How can i override that style with an external xml ? (i'm asking because i've noticed the View does not have applyStyle\setStyl...

Resizable widget android

Hi,.. Is there any way we can make a resizable widget in android according to the space in home screen? For example if the home screen empty, i can make my large widget. If there other icon, i want to resize my widget become smaller according to the space left in home screen. Thanks. ...

Twitter widget android

Is there anyone now how to make widget like twitter? They have 2 layout and user can user one of them after they see the layout. Thank u very much.. ...

Android - getting AppWidget Position

Hi, I'm trying to get my widget button (or the Widget itself) position to pass it to another activity triggered by this button. I've tried like this at the other activity on onCreate() method, and NPE is happening: Button b1 = (Button) findViewById(R.id.ButtonLogin); int[] outLocs; if (b1.getWindowToken() == null) outLoc...

Take use of the native spinner in Android.

I want to rebuild (maybe I don't even have to) the nativ android progress indicator and show it as icon for a list item. I followed this example and endet up with a heavy performance eating animation, which also doesn't match the native spinner. The code has as "LinearInterpolator" which seems to cause those problems. Now I made my own ...

android scrollView not aligning in screen Landscape View

I am having a problem in ScrollView. When i run my application on X10i it works fine but when i change the view to landscape half of the layout at the bottom (RelativeLayout) go down to the screen. Here is my Layout code. please suggest a general solution that will be applicable to all phones not only X10i. <?xml version="1.0" encoding=...

Animation in android widget..

Hi,.. Can we set animation in android widget? For example, i have several buttons if i press button1 they will play animation1, press button2 play animation2 and so on.. Any idea how to do this? Thanks a lot.. ...

How to add listeners to Views inside a listview?

public View getView(int position, View convertView, ViewGroup parent) { ViewHolder holder; if (convertView == null) { convertView = mInflater.inflate(R.layout.listview, null); holder = new ViewHolder(); holder.text = (TextView) convertView .findViewById(R.id.Text...

GridView with images from xml file in the web

Hi!!! I'm trying to show some images which URLs are in an XML file that you can find it on the web. I've tried the gridview and it worked, I've tried to show an image from the XML file and it worked, but when I put both together, it doesn't work!! I don't know the reason. Any help please? The code is: package com.examples.xmlparser; ...

TabHost switching between views, won't display ListView

I've gotten this to work with separate Activities, but don't want the overhead or the difficulty sharing information between tabs. So I've split it into Views as opposed to activities. Problem is, it won't update the list when I create it as the examples I've found online show it. @Override protected void onCreate(Bundle savedInstanceS...

Android Live Wallpaper Interaction with Widgets And Tell Wallpaper where widgets are placed

Is there functionality in teh live Wallpaper for the service to know where widgets are placed on the homescreen and the size of the widgets? For instance If I created a Live Wallpaper that changed based on widget position is that possible? Also I want to make a widget with buttons that manipulate the live wallpaper, would I use the Inte...

android : a trouble with scrollview

how to determine a scrollview has been pulled to the buttom? ...

how to have list view with few items disabled and few enabled, along with multiple choice mode?

Hi, I am having problem, where i am not able to keep both disabled and enabled items in a list view with multiple choice mode set to it. I am using simple_list_item_multiple_choice.xml for listitem. From what i could find on the Internet, i guess i have to override areAllItemsEnabled and isEnabled methods of ListAdapter. However, afte...

TextView page scroll

Hi, I want to create a book reader and implement the page effect. I think I can spare text in separated views and make an animation when the user wants to go to the next or previous page. The problem is that I don't find a method to spare the text correctly. I can set the max lines number for a text view, but I don't know how to get the...

textview elipsize position or last visible character position

Hi, How can I get where elipsize occurs in a textview when the text is bigger than the textview dimensions? I want to get the last visible character position from text in a textview with fixed dimensions. Thanks ...

What is android:layout_weight meaning?

I can't understand this attribute. Who can tell about it? ...

How to draw a combination of views

Hello experts, I wanted to have a custom layout where I would have gallery on top, then below it to have a simple widget to show the picture when it is chosen from the gallery. I could not figure out how to compose that main.xml to achieve it, your advice will be greatly appreciated. The gallery layout xml is straight from the google tu...

excell, 2007 How do i know their standard deviation, T-tes and/or anova

I have experimental values in triplicate. How do i know their standard deviation, T-tes and/or anova ...