[android-developers] Rotate GalleryView Vertically
Hi, Is there any way to rotate gallery view vertically instead of horizontal. thanks in advance. Yash -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Rotate GalleryView Vertically
I know its not supported by default. but i was thinking that if there is way to extend the galleryview and rotate on draw. Yash On Mon, Dec 7, 2009 at 1:38 PM, Romain Guy romain...@android.com wrote: Hi, Unfortunately this is not supported. On Mon, Dec 7, 2009 at 10:26 AM, Yash Patel yashjpa...@gmail.com wrote: Hi, Is there any way to rotate gallery view vertically instead of horizontal. thanks in advance. Yash -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Gallery in Preference Screen
Hi, I want to have gallery widget in preference screen. I have created custom preference with Gallery. I am able to display images but there is couple of problem with it. 1. I want to scale the image which is selected in gallery. i used setOnItemselected listener and it does scale the image but when i selected other item it doesn't go back to original size. 2. In the preference setUnselectedAlpha is also not working. it works on initial load but not after that. Here is the my preference Code. *I would really appreciate if you can help me. * Thanks Yash Patel *Preference Code* package com.MarbleBoard; import android.content.Context; import android.preference.Preference; import android.util.AttributeSet; import android.util.Log; import android.view.View; import android.view.ViewGroup; import android.widget.AdapterView; import android.widget.BaseAdapter; import android.widget.Gallery; import android.widget.ImageView; import android.widget.Toast; import android.widget.AdapterView.OnItemSelectedListener; public class marlleGalleryPreference extends Preference { public marlleGalleryPreference(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); Initliazed(); } public marlleGalleryPreference(Context context, AttributeSet attrs) { super(context, attrs); Initliazed(); } public marlleGalleryPreference(Context context) { super(context); Initliazed(); } private void Initliazed() { setPersistent(true); //setDialogLayoutResource(R.layout.pref_marble_list); setLayoutResource(R.layout.marble_gallery); //setDialogTitle(Dialog Title Marble Select); //setDialogMessage(Thanks for choosing my custom dialog preference); setEnabled(true); setSelectable(true); } @Override protected void onBindView(View view) { // TODO Auto-generated method stub super.onBindView(view); Gallery g = (Gallery) view.findViewById(R.id.gallery); g.setFocusable(true); g.setFocusableInTouchMode(true); g.setUnselectedAlpha(0.5f); g.setAdapter(new ImageAdapter(getContext())); g.setSpacing(2); } // *Image Adapter code* private class ImageAdapter extends BaseAdapter { int mGalleryItemBackground; public ImageAdapter(Context c) { mContext = c; } public int getCount() { return mImageIds.length; } public Object getItem(int position) { return position; } public long getItemId(int position) { return position; } public View getView(int position, View convertView, ViewGroup parent) { ImageView i = new ImageView(mContext); i.setImageResource(mImageIds[position]); i.setScaleType(ImageView.ScaleType.FIT_CENTER); i.setLayoutParams(new Gallery.LayoutParams(80, 60)); //i.setFocusableInTouchMode(true); // The preferred Gallery item background //i.setBackgroundResource(mGalleryItemBackground); return i; } private Context mContext; private Integer[] mImageIds = { R.drawable.marble_blue, R.drawable.marble_green, R.drawable.marble_lgreen, R.drawable.marble_purple, R.drawable.marble_red }; } } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Problem with multi select listview with default selected List Items.
HI, I want to create multi select listview with checkbox. and also make checked = true for some of the item based on some business rule. I can get the list view with multiple choice option working but I am not able to load some of the item as default checked when list view first loaded. I tried using custom list adpater with following code, but its not working at all. if (convertView == null) { convertView = mInflater.inflate(android.R.layout.simple_list_item_multiple_choice, null); holder = new ViewHolder(); holder.checkbox = (CheckedTextView) convertView.findViewById(android.R.id.text1); convertView.setTag(holder); } else { holder = (ViewHolder) convertView.getTag(); } //holder.checkbox.setChecked(true); String mvalue = ((Item)lv.get(position)).getValue(); holder.checkbox.setText(mvalue); if(mSelectedValues != null mSelectedValues.length 0) { boolean blnSetChecked = false; for(String s : mSelectedValues) { if(s.equalsIgnoreCase(mvalue)) { blnSetChecked = true; break; } } holder.checkbox.setChecked(blnSetChecked); } else holder.checkbox.setChecked(false); return convertView; I have also set follwoign property for listview after setting custom adapter. lvList.setItemsCanFocus(false); lvList.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); Please help me to get this working. Thanks in Advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] iPhone like Tab Widget
Hi, Please anyone know how to create iphone like Tab widget (in the bottom of the screen). Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Google voice recognition on Emulator
HI, does any one know How to turn on Voice Recognition on Emulator. or is it required to have phone or dev phone to test voice recognition application? I would appreciate if you can reply. thanks Yash Patel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Google voice recognition on Emulator
I mean to say Speech Recognization. I tried to create one small application but it gives me error. Thanks Yash Patel On Fri, May 1, 2009 at 4:54 PM, Dave Sparks davidspa...@android.com wrote: Voice recognition is a technology. You need an application to make use of it, for example the voice dialer. On May 1, 11:17 am, Yash Patel yashjpa...@gmail.com wrote: HI, does any one know How to turn on Voice Recognition on Emulator. or is it required to have phone or dev phone to test voice recognition application? I would appreciate if you can reply. thanks Yash Patel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: call WebService
Thank you very much for you response. On Thu, Oct 2, 2008 at 8:51 PM, Charlie Collins [EMAIL PROTECTED]wrote: If you search this forum you find a lot of info on this topic. It depends what you mean by webservice, but if you mean SOAP over HTTP, the typical path is to use kSOAP on Android. Anddev.org has some good samples, including a kSOAP one: http://www.anddev.org/webservice_soap_with_complex_data_type_and_ksoap_client-t2195.html . Though, I would also still argue that you should not use SOAP on a small embedded platform device like a mobile phone. I know, I know, relax - people do it all the time, and many people disagree - I realize that. But still the stuff that makes SOAP useful, transactions, types, orchestration, etc, are all overkill in my opinion on an embedded device. You can avoid all that overhead (and even the envelope), and STILL use your existing SOAP service, by making a SOAP proxy using something that takes more of a plain HTTP and XML appoach (POX), or even REST, and have that proxy make the required SOAP calls. Put all the SOAP horsepower on the server, if you have to use SOAP, and make the Android client ultra simple via some kind of a proxy. On Oct 2, 12:15 pm, Yash Patel [EMAIL PROTECTED] wrote: Hi Guys, Can anyone please let me know how how do we call webserivce from Android App. If you can provide sample code, i would really appreciate. thanks for you help. Yash Patel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---