Hi,
I have a Website class that has 3 get,set properties ID, Name, URL.
For other hand i have a method that gets from database websites, and return a List
I would like to bind this List into a Spinner.
My questions are two:
Its possible to add these websites list into a Spinner ?
As my website class has the property ID and Name, i...
I was just trying out with table layout to display some data....
The data is a 3 column data and i want that the columns should utilize the whole width available. But it seems that the layout XML code which i had used is just wrapping up the columns according to the content.
Layout XML code
<?xml version="1.0" encoding="utf-8"?>
<Tab...
I want to populate a table, defined in layout xml file through the programmatic way. I have define Table with a single row defining its header, with all the attributes set. Now i want to know a way so that i can just replicate that header row in the table with new content.
I tried using inflator inflate(int,view) method, but at runtime ...
I like to know how can i clone a view object which is already there in the view hierarchy, so that it can be added to the same view hierarchy again.
...
What is more expensive to load in a Gallery, a Bitmap or Drawable???
...
I am having a table defined in XML file, which currently set to Scroll vertically. But i also want it scroll horizontally as required.
Here is the code of XML in use
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:scrollbars="vertical"
android:layout_h...
I am trying out this table layout in which there are three columns, each column utilizing the maximum space as they could (using strechColumn tag). Now when a column gets content which is too long, then table layout jumps of the screen.
How can i set the content of a column to wrap, so that table layout dont jump off the screen.
here i...
where is located the temp folder in the android phones???
...
I loaded some images into a gallery. Now I'm able to scroll but once started scrolling the scrolling won't stop. I would like the gallery to just scroll to the next image and then stop until the user does the scroll gesture again.
this is my code
import android.widget.ImageView;
import android.widget.Toast;
import android.widget.Adapte...
Hello everyone.
In my app I need to draw a widget contents onto Bitmap.
The code(pseudo) is as follows:
AppWidgetHostView widget;
Bitmap bitmap;
...
widget = pickWidget();
...
bitmap = Bitmap.createBitmap(128, 128, Bitmap.Config.RGB_565);
final Canvas canvas = new Canvas(bitmap);
widget.draw(canvas);
I'm sure that pickWidget() works...
I have a GridView that displays images, which are, unfortunately, of different sizes. They are shown in between two lines of text:
text1.1 text1.2
ImageView(IMAGE1) ImageView(IMAGE2)
text2.1 text2.2
text3.1
ImageView(IMAGE3)
text4.1
etc....
If IMAGE1 is the same height as IMAGE2, everything is fine...
Hi Folks,
I am new to android, i am facing one problem which is in my layout i put one button to set the time. when user press that button it would like to call a timepicker widget to set the time. while increment the minutes i want to increment by 15 min by one click not a increment by one. is it a way to handle increment and decrement...
Hi,
I'm beginner developing developing small application. I have 3 textview on screen, when i touch the any one of the view it should navigate to next new screen, how to do this help me
Thanks,
Suhani
...
i m workin on mapview and put the marker when i click the marker it shows a bubble.
if i click that bubble it shows the toast perfectly
i want to start the activity there. then it shows an exception
this my code
@Override
protected boolean onBalloonTap(int index) {
try{
Activity a=new Activity();
a.startActivity(new Intent(a.getBase...
Is there any way to play video in Android App widget.
...
I am having a Table layout which has 3 columns defined. But due to large Text in the second column, the content is going off the screen. So i was trying to place a horizontal Scrollbar. But was unable to do.
I am using Android 1.5 as target.
XML code of the table layout
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android...
I am a noob, and I am stuck on one problem.
I built a soft keyboard, which works fine in portrait orientation, but the GUI never appears in landscape orientation. My class extends InputMethodService. When I put exact same layout xml file in an activity, it displays perfectly well in both orientations. So, I think the problem lies in my...
I'm writing an app that will host widgets. The app has custom view (which probably is the source of issue). I obtain AppWidgetHostView like this
private AppWidgetHostView widget;
...
AppWidgetProviderInfo appWidgetInfo = mAppWidgetManager.getAppWidgetInfo(appWidgetId);
widget = mAppWidgetHost.createView(this, appWidgetId, appWidgetInfo)...
Hi guys,
This is my first time on stack overflow, so I apologize if this question has been asked before, but is there an easy way to implement an RSS reader on the Google Android (API 1.5)?
I'm searched far and wide with the code sources I know of, and I've only found one implementation which takes 6 different classes and doesn't seem ...
Hi,
I have an android application that shows a grid view that shows:
1
2
3
4
GridView gridview=(GridView)findViewById(R.id.GridView_test);
DataBaseHelper dbhelper=new DataBaseHelper(this);
ArrayList<String> test=new ArrayList<String>(5);
backlinksadapter.add("1");
backlinksadapter.add("2");
backlinksadapter.add("3");
backlinksadapt...