[android-developers] ImageView animated movement from one FrameLayout (parent) to another FrameLayout (should be the new parent)

2016-12-18 Thread Christian Thomas
Hi, actually I've got some problems, getting an animation running. Please have a look to following sketch: - I have a GridLayout 3x3, that contains a

[android-developers] ImageView con forma

2016-11-11 Thread Juangra Sánchez
Buenas todos!!! Estoy empezando con Android y me dispongo a hacer una práctica del juego simon dice. Mi duda es como puedo poner las imágenes de cada uno de los botones de la forma semicircular que tiene, vamos tengo la imagen en png con la forma, pero al ponerle un evento a la imagen me

[android-developers] Imageview to Zooming Effect problem.

2016-06-24 Thread chinnarao . ch
How to apply the imageview zooming effect using seekbar and apply pinch functionalitys also -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [android-developers] ImageView not showing

2016-03-01 Thread Elijah Smith
I apologize for being a noob, but how would I go about accessing that layout that was defined in an xml file? As simple as it probably is, I can't find a method after a few searches. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To

Re: [android-developers] ImageView not showing

2016-02-29 Thread sardar khan
so you add this imageview to the parent view.Like if you have linear layout.So linearLayout.addview(d1); On Tue, Mar 1, 2016 at 6:19 AM, Elijah Smith wrote: > I'm trying to set an imageview totally programatically. This is all I am > doing: > > ImageView d1 =

[android-developers] ImageView not showing

2016-02-29 Thread Elijah Smith
I'm trying to set an imageview totally programatically. This is all I am doing: ImageView d1 = new ImageView(getApplicationContext()); d1.setImageResource(R.drawable.diamond); d1.setPadding(50, 50, 0, 0); d1.setPadding(100, 50, 0, 0); d1.setVisibility(View.VISIBLE); But the image doesn't seem

[android-developers] Imageview not Showing Image on Android 2.2 and not on Android 4.0

2013-03-05 Thread Brad Stintson
I wrote following code in xml file but Imageview (shown in bold) not Showing Image on Android 2.2 and not on Android 4.0 Please help out. LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; xmlns:tools=http://schemas.android.com/tools;

Re: [android-developers] Imageview not Showing Image on Android 2.2 and not on Android 4.0

2013-03-05 Thread Belhouchet Ines
Try with diffrent size Le 5 mars 2013 17:50, Brad Stintson geek.bin...@gmail.com a écrit : I wrote following code in xml file but Imageview (shown in bold) not Showing Image on Android 2.2 and not on Android 4.0 Please help out. LinearLayout

Re: [android-developers] Imageview not Showing Image on Android 2.2 and not on Android 4.0

2013-03-05 Thread Brad Stintson
I tried on 3 different devices with android 4.0. But it is not showing. A white screen is shown, with scroll bar of height equivalent to height of image, which means that image is loaded. I am not able to understand why it is not showing then. On Tue, Mar 5, 2013 at 10:24 PM, Belhouchet Ines

Re: [android-developers] Imageview not Showing Image on Android 2.2 and not on Android 4.0

2013-03-05 Thread TreKing
On Tue, Mar 5, 2013 at 10:46 AM, Brad Stintson geek.bin...@gmail.comwrote: I wrote following code in xml file but Imageview (shown in bold) not Showing Image on Android 2.2 and not on Android 4.0 You need to provide a little more info then that. Maybe post a screenshot to show the problem

Re: [android-developers] ImageView with progress spinner

2012-06-13 Thread Jonathan Koren
Why not stick your custom imageview and spinner inside a ViewSwitcher? While your imageview is loading show the spinner... When it finished loading show the imageview. Because of the custom background (or I guess you could think of it as a photo frame), I want the spinner to appear

[android-developers] ImageView with progress spinner

2012-06-12 Thread Karakuri Dev
*Short version*: Can I use the indeterminate progress spinner as the source image for an ImageView? *Long version*: I have an ImageView with a custom background (it's actually a custom widget that extends ImageView and implements extra drawing in onDraw). While the source image is loading, I

Re: [android-developers] ImageView with progress spinner

2012-06-12 Thread Justin Anderson
Why not stick your custom imageview and spinner inside a ViewSwitcher? While your imageview is loading show the spinner... When it finished loading show the imageview. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jun 12, 2012 at 1:04 AM,

[android-developers] ImageView with a XML gradient background and a image ontop.

2012-04-09 Thread MarkG123
Anyone know it's it's possible to have a XML gradient *AND* an image in a single ImageView? I have an expandable listview, and I want to overlay an expand and collapse arrow over to match the gradient TextView next to it. I have been playing with layer-list and not had much luck. Is this even

Re: [android-developers] ImageView with a XML gradient background and a image ontop.

2012-04-09 Thread Justin Anderson
Use the following attributes on ImageView: android:background android:src Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Apr 9, 2012 at 8:47 AM, MarkG123 mark.gilles...@gmail.com wrote: Anyone know it's it's possible to have a XML gradient

Re: [android-developers] ImageView with a XML gradient background and a image ontop.

2012-04-09 Thread Justin Anderson
Or, depending on how things are set up, you could put your gradient on the background of the layout for the item, rather than the individual items in the layout... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Apr 9, 2012 at 9:50 AM, Justin

Re: [android-developers] ImageView with a XML gradient background and a image ontop.

2012-04-09 Thread MarkG123
Many thanks, this worked a treat. Slightly annoyed with myself that I didn't come up with this obvious solution... On Monday, 9 April 2012 16:52:15 UTC+1, MagouyaWare wrote: Or, depending on how things are set up, you could put your gradient on the background of the layout for the item,

Re: [android-developers] ImageView with a XML gradient background and a image ontop.

2012-04-09 Thread Justin Anderson
Many thanks, this worked a treat. No problem, glad you got it working Slightly annoyed with myself that I didn't come up with this obvious solution... Happens to the best of us! Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Apr 9, 2012 at

[android-developers] imageview changing

2012-02-04 Thread Salih Selametoglu
package sample.deneme; import java.util.Timer; import java.util.TimerTask; import android.content.Context; import android.widget.ImageView; public class imageS extends ImageView  { private Timer _destroy; public imageS(Context context) { super(context);

Re: [android-developers] imageview changing

2012-02-04 Thread Farhan Tariq
why do you need write a whole new class just to change image on an imageView? If this is all that you need to do, just set imageView's background drawable... something like this while(true){ imageView.setBackgroundDrawable(R.drawable.something); Thead.sleep(5000); } 2012/2/4 Salih

[android-developers] ImageView memory use versus displayed Bitmap size

2012-01-18 Thread Dusk Jockeys Android Apps
This is a a backend SDK framework question. Say I have an ImageView that is set to, say, 100*100px, and I set it to show a 50 * 50px Bitmap which I have first loaded, so that it stretches the bitmap to fit its larger size. (Note I mean px rather than dip, I am trying to keep things simple to

Re: [android-developers] ImageView memory use versus displayed Bitmap size

2012-01-18 Thread Romain Guy
ImageView does not create a 100x100 Bitmap in this case, the memory usage cost will be 50x50xbit depth of your original Bitmap. This behavior is the same for View's background property. Note that stretching Bitmaps at runtime is very expensive when hardware acceleration is off. On Wed, Jan 18,

[android-developers] ImageView

2012-01-10 Thread abhijeet tomar
I have define a imageview in main.xml and a image store in drawable and set the path.Image is displaying properly on the screen but i want, image working as a resizeable like map.when we using map then we have stretch the map or zoom in map easily .How is it possible with image view. Thanks i

[android-developers] ImageView with ScaleType.FIT_XY programmatically

2011-11-15 Thread B.Arunkumar
Hi, I have a problem. I have created a relativelayout with imageview in my code like this:- RelativeLayout relativelayout1 = new RelativeLayout(this); RelativeLayout.LayoutParams r1 = new RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.FILL_PARENT);

[android-developers] ImageView dynamically added to AlertDialog drawing incorrectly

2011-10-18 Thread occorled
I'm trying to draw some varying number of images on an AlertDialog. Example (1 to 10 star images, based on some rating value I read from a database). So this is something that I think should be done dynamically, not from an XML file layout. The image shows up weird (I wish I could attach a

Re: [android-developers] ImageView dynamically added to AlertDialog drawing incorrectly

2011-10-18 Thread Justin Anderson
Just for kicks, have you tried loading the image from XML just to see if it displays differently? If it displays differently (meaning correctly) then there is probably some setting that gets set by default in XML that is not getting set in code. Another option... If the number of stars is

[android-developers] Imageview zooming and panning with multiple device?

2011-10-17 Thread Hitendrasinh Gohil
Hi, How to deal with zoomin/zoomout and panning for multiple device? Like i have code that works fine with samsung galaxy tab and motorola milestone but didn't work on sony xperia x8,samsung galaxy fit etc. so how we can define common functionality that works on multitouch and non-multitouch

[android-developers] ImageView question

2011-09-27 Thread Hubert
Hi, I am new in Android develop and stuck on one problem about image rendering. My page is simple. It includes several Text and several buttons AND one ImageView. In initial state, the ImageView displays one background picture. After user clicks one button, I would like to draw something over the

Re: [android-developers] ImageView question

2011-09-27 Thread Appaholics
If you want to completely replace the image in the ImageView then change the src of the image. If you want to draw over it then it would be better to draw everything on a SurfaceView. http://developer.android.com/reference/android/widget/ImageView.html

[android-developers] ImageView not getting vertically centered

2011-08-25 Thread Manish Garg
Hi All, I need to display one image on the screen who's size depends upon the image fetched from the server. It is getting horizontal center but not vertical center. When image size is large then it is displaying fine scroll bar is also coming but when image size is smaller the screen size then I

[android-developers] ImageView not displaying?

2011-08-24 Thread T.J.
Hey guys, i am trying to display an ImageView when my app starts. When i launch the app my wait statement works but the image is not displayed. setContentView(R.layout.imgView); ImageView image = (ImageView) findViewById(R.id.imageView1); image.setFocusable(true);

[android-developers] imageview displaying

2011-08-11 Thread arun kumar
Hi i placed a imageview (10dip) from the margin left(assume 100*200 size emulator )the same code if i run on the another emulator(assume 200*200)the image view should appear at 20dip but it is displaying at 10dip only ...so how can i solve this ImageView android:layout_height=wrap_content

[android-developers] ImageView scaling produces poor results

2011-08-03 Thread John Gaby
I have an ImageView control, and if the image in question needs to be scaled down, it seems to be down, the quality of the resulting image is very poor. I have looked for a way to control the scaling (e.g. set it to bicubic), but am unable to find a way to do it. Can someone tell me how to

[android-developers] ImageView and Recyling

2011-07-26 Thread Simon Platten
How do you force and ImageView to recyle its bitmap? I am using a loader to load bitmap images in the background then show them in an imageview, the imageview is part of a listview which is recycled, however I don't think the bitmaps are being free'd up when a new image is loaded and assigned,

Re: [android-developers] ImageView and Recyling

2011-07-26 Thread TreKing
On Tue, Jul 26, 2011 at 2:44 PM, Simon Platten simonaplat...@googlemail.com wrote: How do you force and ImageView to recyle its bitmap? http://developer.android.com/reference/android/graphics/Bitmap.html#recycle() ?

Re: [android-developers] ImageView and Recyling

2011-07-26 Thread Simon Platten
Thank you, I know the bitmap has a recycle method, but how do you recycle the imageview? Do you get the drawable first then convert that to a bitmap before recycling ? On 26/07/2011 9:30 PM, TreKing wrote: On Tue, Jul 26, 2011 at 2:44 PM, Simon Platten simonaplat...@googlemail.com

Re: [android-developers] ImageView and Recyling

2011-07-26 Thread TreKing
On Tue, Jul 26, 2011 at 3:36 PM, Simon Platten simonaplat...@googlemail.com wrote: Thank you, I know the bitmap has a recycle method, but how do you recycle the imageview? Do you get the drawable first then convert that to a bitmap before recycling ? I assume in your adapter you do: if

Re: [android-developers] ImageView and Recyling

2011-07-26 Thread Simon Platten
I'll have a play and post when I get it working. Thank you, On 26/07/2011 9:44 PM, TreKing wrote: On Tue, Jul 26, 2011 at 3:36 PM, Simon Platten simonaplat...@googlemail.com mailto:simonaplat...@googlemail.com wrote: Thank you, I know the bitmap has a recycle method, but how do you

Re: [android-developers] imageview

2011-07-13 Thread arun kumar
give me some guidance how to do... Thanks arun -- 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] imageview

2011-07-12 Thread arun kumar
Hi am having a task..in which i have to place the 4 images in rectangle shape(each image i have to place at the corner) 1)when i click on the particular images a new image should appear inside the rectangle shape (particular to that image)((if i click on first image then related to that image

Re: [android-developers] imageview

2011-07-12 Thread Justin Anderson
* if u have any code also send me.* Sorry, we aren't going to write your app for you * plz if any one kow on this give me guidance* Guidance: Start working on your app (that will require you actually do something!) and then when you have a specific problem ask for help with the specific problem

[android-developers] Imageview doesn't increase size inside ScrollView

2011-05-07 Thread Joan Pujol
Hi, I've an ImageView inside a ScrollView that has the image and several other controls. The problem is that when I create the view I don't know the size of the image, and when I know it and I put the image inside the ImageView it doesn't scale. I've tried all the ScaleType modes and also

[android-developers] ImageView not showing image

2011-04-25 Thread mack2978
Hi All, I am trying to display the image on run time using ImageView, but it is not showing up, below is the code: Please sugegst what is the issue super.onCreate(savedInstanceState); setContentView(R.layout.myimageview); mImageView = (ImageView) findViewById(R.id.imageview);

Re: [android-developers] ImageView not showing image

2011-04-25 Thread Randheer chauhan
On Mon, Apr 25, 2011 at 3:54 AM, mack2978 smashmah...@gmail.com wrote: Hi All, I am trying to display the image on run time using ImageView, but it is not showing up, below is the code: Please sugegst what is the issue super.onCreate(savedInstanceState);

[android-developers] ImageView

2011-04-13 Thread b_t
Hi, I can't find it out how to use ImageView to get what I want: - fill parent vertically - maintain the original aspect ratio So the imageview should change its width. Thank you, T. -- You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] ImageView on SlidingDrawer not responding to click event

2011-04-11 Thread Jason
Hi folks, I have an ImageView contained in a TableLayout within the handle component of a SlidingDrawer and I'm trying to capture the click event on the ImageView but it doesn't seem to be fired. Obviously the SlidingDrawer is capturing the event to handle it according to the rules governing its

[android-developers] ImageView

2011-04-11 Thread b_t
Hi, I have to do things with an ImageView after it has got a size. For example set an animation which depends on the size of the ImageView. What is the official way to do size-dependent things? I tried to create a new class from ImageView and overwrite onMeasure. It worked on my phone but

[android-developers] ImageView drawing cache problem

2011-04-07 Thread Emrah KOCAMAN
Hi there, My application uses an imageview's drawing cache to create another imageview. It works very well on all devices except Motorola. Drawing cache comes always null in Motorola devices( like DROID2, DROIDX). My code portion is below. Does anyone has any idea about the solution? Thx in

[android-developers] ImageView change image

2011-04-02 Thread Raghav Sood
Hi everyone, My code is as follows: import com.raghavsood.mp.R; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.ImageView; public class class extends Activity { ImageView button =

Re: [android-developers] ImageView change image

2011-04-02 Thread Mark Murphy
Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine LogCat and look at the stack trace associated with your force close. On Sat, Apr 2, 2011 at 1:33 PM, Raghav Sood raghavs...@gmail.com wrote: Hi everyone, My code is as follows: import com.raghavsood.mp.R; import

Re: [android-developers] ImageView change image

2011-04-02 Thread Raghav Sood
I am testing it on my phone. The emulator has never finished booting on my computer. How to I write errors to the logfile on the phone? On Sat, Apr 2, 2011 at 11:08 PM, Mark Murphy mmur...@commonsware.comwrote: Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine LogCat and look

Re: [android-developers] ImageView change image

2011-04-02 Thread Mark Murphy
On Sat, Apr 2, 2011 at 1:41 PM, Raghav Sood raghavs...@gmail.com wrote: I am testing it on my phone. The emulator has never finished booting on my computer. How to I write errors to the logfile on the phone? Stack traces are automatically written to LogCat on the phone. Use adb logcat, DDMS, or

Re: [android-developers] ImageView change image

2011-04-02 Thread Raghav Sood
Thanks Mark, This is what I got from the phone log: 04-02 23:04:46.576 I/ActivityManager( 1368): Start proc com.raghavsood.mpfor activity com.raghavsood.mp/.matchpuzzler: pid=25262 uid=10113 gids={3003} 04-02 23:04:46.726 E/AndroidRuntime(25262): FATAL EXCEPTION: main 04-02 23:04:46.726

Re: [android-developers] ImageView change image

2011-04-02 Thread Mark Murphy
On Sat, Apr 2, 2011 at 1:55 PM, Raghav Sood raghavs...@gmail.com wrote: Thanks Mark, This is what I got from the phone log: :: snip :: 04-02 23:04:46.726 E/AndroidRuntime(25262): Caused by: java.lang.NullPointerException 04-02 23:04:46.726 E/AndroidRuntime(25262): at

Re: [android-developers] ImageView change image

2011-04-02 Thread Raghav Sood
Okay I fixed that part now but it still force closes. My code now is: public class class extends Activity { ImageView button = (ImageView)findViewById(R.id.l1m1); public OnClickListener mCorkyListener = new OnClickListener() { public void onClick(View v) {

Re: [android-developers] ImageView change image

2011-04-02 Thread Raghav Sood
Sorry my fault. forgot to remove the imageview declaration from top. On Sun, Apr 3, 2011 at 12:07 AM, Raghav Sood raghavs...@gmail.com wrote: Okay I fixed that part now but it still force closes. My code now is: public class class extends Activity { ImageView button =

Re: [android-developers] ImageView change image

2011-04-02 Thread Raghav Sood
Okay I fixed that but now the line in red cannot find the button imageview. public class class extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

Re: [android-developers] ImageView change image

2011-04-02 Thread Mark Murphy
You do not have a drawable resource named m1s, most likely. On Sat, Apr 2, 2011 at 2:44 PM, Raghav Sood raghavs...@gmail.com wrote: Okay I fixed that but now the line in red cannot find the button imageview. public class class extends Activity {     /** Called when the activity is first

Re: [android-developers] ImageView change image

2011-04-02 Thread Raghav Sood
No. that image is definitely there. The word button is getting underlined. It says that it cannot find it. I think it is because button is declared in the other method. How do I fix this? On Sun, Apr 3, 2011 at 12:17 AM, Mark Murphy mmur...@commonsware.comwrote: You do not have a drawable

Re: [android-developers] ImageView change image

2011-04-02 Thread TreKing
On Sat, Apr 2, 2011 at 1:53 PM, Raghav Sood raghavs...@gmail.com wrote: How do I fix this? Learn Java. Then look up scope. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago

Re: [android-developers] ImageView change image

2011-04-02 Thread Mark Murphy
Oh, sorry. You need to make that be a data member of your activity. You moved the whole line into onCreate(). You need to declare the data member where you had it, but not initialize it until onCreate(). You appear to be new to Java. I *strongly* encourage you to take some time and learn Java

Re: [android-developers] ImageView change image

2011-04-02 Thread Raghav Sood
Thanks Mark and TreKing, It works perfectly now. I am not new to Java. I have been working with it for over 2 years but not very often. I am just a little out of practice and maybe need to refresh my memory.Thanks for the links anyways. Thanks On Sun, Apr 3, 2011 at 12:27 AM, TreKing

[android-developers] ImageView setImageMatrix causing trails when moving image and not moving full image.

2011-03-31 Thread caguilar
Below is my implementation of onScroll in the SimpleGestureDetector. This has worked on the droid x, droid, nexus and nexus s, but it doesn't work on the Xoom running 3.0 of course. On the xoom it is cause some form of trailing artifact where the image doesn't fully redraw or i can't fully grab

[android-developers] ImageView Draw and Measure lines

2011-03-29 Thread New Developer
I have created an ImageView image = new ImageView(myMainActivity.this); Bitmap pictBM = BitmapFactory.decodeFile(fName); image.setImageBitmap(pictBM); . . . How do I create an overlay or something so I can click an ImageButton and then mark two points draw a line between them and measure the

[android-developers] ImageView hardcoded into layout referencing drawable resources

2011-02-19 Thread Keith Wiley
If I reference a drawable in the drawable directory, I see the image in my layout, but if I reference a drawable in the drawable-hdpi directory, I don't see it (but I don't get an error of any sort either). I want to include the app icon on the splash screen, and would prefer to use the high-res

Re: [android-developers] ImageView hardcoded into layout referencing drawable resources

2011-02-19 Thread Justin Anderson
Drawables in the drawable-hdpi folder are only available on high-density devices. When you say you don't see it are you sure you are on a high-density device? See here for more info: http://developer.android.com/guide/topics/resources/providing-resources.html#AlternativeResources Hope that

[android-developers] ImageView resizing when positioned after screen size on the right

2011-01-24 Thread Gabriel Simões
Hello, I´ve been searching the internet on how to position an ImageView inside a RelativeLayout using coordinates in pixels. After quite a research I decided to use LayoutParams and setMargin() which is working quite well. Sometimes my ImageView should be positioned up to half width outside the

Re: [android-developers] ImageView frame-by-frame animations scaling at bounds of RelativeLayout

2011-01-18 Thread Cliff Davies
I've done further tests on this and the description of the problem wasn't entirely accurate. If I set up a RelativeLayout and put a ViewImage (with the image on the background - not the src) so that it's partly inside and partly outside the screen bounds, the image will scale rather than clip. I

[android-developers] ImageView, no scaling and gravity

2011-01-15 Thread Henrik Lindqvist
I have a runtime generated Bitmap, for a RemoteView, that I wan't displayed within a ImageView without scaling, so I use scaleType=center. Now, if the bitmap is smaller than the ImageView I wan't it to gravitate to the right. Or, if the bitmap is to large, crop the left side. ImageView seems to

[android-developers] ImageView frame-by-frame animations scaling at bounds of RelativeLayout

2011-01-14 Thread Rok
I'm using a RelativeLayout which contains a number of ImageViews positioned in XML using dp measurements. Some of the ImageViews are deliberately offscreen (outside the bounds of the RelativeLayout which is set to fill parent horizontally and vertically). I noticed that ImageViews which

Re: [android-developers] ImageView Problem

2010-12-26 Thread 陈彧堃
Did you forget to set the src of the imageview? On Sat, Dec 25, 2010 at 9:23 PM, ricardocunha ricardocu...@gmail.comwrote: Hi Everybody, I have a simple doubt but, I don´t understand what is happening. I have a simple ImageView over a Linear Layout: ImageView

[android-developers] ImageView Problem

2010-12-25 Thread ricardocunha
Hi Everybody, I have a simple doubt but, I don´t understand what is happening. I have a simple ImageView over a Linear Layout: ImageView android:layout_height=wrap_content android:id=@+id/ LogImgTela android:layout_width=wrap_content/ImageView When I running this layout on a Activity the

[android-developers] ImageView not refreshing/reflecting changes

2010-12-16 Thread Daniel Quach
I'm using a photo picker intent to choose an image and write it to an application-private file created via: FileOutputStream fos = openFileOutput(temp.jpg, Context.MODE_WORLD_WRITEABLE); fos.close(); return getFileStreamPath(temp.jpg); upon activity result, I set the ImageView's image URI to this

Re: [android-developers] ImageView sometimes reponding to only double click instead of single click

2010-12-07 Thread Dalvinder Singh
It would be better if you post some code snippet. Thx Dalvin On Tue, Dec 7, 2010 at 12:03 AM, dipti dvai...@gmail.com wrote: Hi, I'm using an ImageView in my application. I've an AsynTask that is executed onCreated() that downloads the image to be used in ImageView from the web and stores

[android-developers] ImageView sometimes reponding to only double click instead of single click

2010-12-06 Thread dipti
Hi, I'm using an ImageView in my application. I've an AsynTask that is executed onCreated() that downloads the image to be used in ImageView from the web and stores it in a Hashmap as a softReference. The first time when the activity is launched, the imageView works fine on a single Click. The

[android-developers] ImageView content provider causing android.process.acore crash

2010-11-22 Thread Robert
I've implemented a content provider for my imageview on a widget. I had to do this because large bitmaps won't work with the normal remoteview.setImageViewBitmap. Now I use remoteview.setImageViewUri(id, content://com.../image?widget=+id) and it works great except one thing. Every time I redeploy

Re: [android-developers] ImageView scaling/layout problem

2010-10-19 Thread TreKing
On Mon, Oct 18, 2010 at 10:05 AM, Tim S t...@schmidthole.com wrote: Is there any easy way to accomplish this? Maybe try this: http://developer.android.com/reference/android/widget/TextView.html#attr_android:drawableTop

[android-developers] ImageView scaling/layout problem

2010-10-18 Thread Tim S
I have a view where I'm trying to show images the largest possible size they can be. So I have the ImageView set to fill_parent for both width and height with a scaleType of fitCenter. However, I have a caption area (currently a LinearLayout) that I'd like to align with the bottom of the actual

Re: [android-developers] ImageView scaling/layout problem

2010-10-18 Thread Julie Andrews
*Resignation Letter* *Dear Sir,* It is with great regret and sorrow that I’m writing you, but I’m leaving the job. The offer was too lucrative and attractive for me to turn down. I had to abscond because I wanted to avoid a scene with the HR and you. I am sorry but I had no choice.* TaTa – Bye

[android-developers] ImageView adjustViewBounds not doing what I think it should?

2010-10-12 Thread Tim S
I want to scale and display images which are dynamically loaded to a certain maximum size. The way I'm doing this is to set the layout_width and layout_height of my ImageView to the maximum dimensions and setting the scaleType to fitCenter. But here's the problem. This is inside a

[android-developers] ImageView slow when using SetImageResource and MediaPlayer

2010-10-05 Thread ArcDroid
Hello, I am trying to play a sound and also show a new picture. The pictures are only ~1Kb in size, but it slows down the audio when I add in the setImageResource. Is it faster to use an array? I have tried running the audio in a new thread, but that doesn't seem to help. Thanks private

Re: [android-developers] ImageView slow when using SetImageResource and MediaPlayer

2010-10-05 Thread Simon Platten
Hi, Why don't you play your audio in one thread and play your animation in another thread? The way you have it now, its single synchronous process. Regards, Simon On Tue, Oct 5, 2010 at 3:50 PM, ArcDroid jacobrjohn...@gmail.com wrote: Hello, I am trying to play a sound and also show a new

[android-developers] imageview button interface

2010-09-27 Thread dashman
i've got an imageview inside a layout and i intercept onclick events. but when i press on it, there's no visual feedback - e.g. color changing until release. essentially some button pressed feedback. anyway to simulate that easily. -- You received this message because you are subscribed to

Re: [android-developers] imageview button interface

2010-09-27 Thread Kostya Vasilyev
Use a button then. Create a selector-based drawable with references to alternate images for various states (selected, at least). Then use it as the background for your drawable. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 27.09.2010 17:35 пользователь dashman erjdri...@gmail.com написал:

[android-developers] ImageView setColorFilter, what to do for a bitmap?

2010-07-23 Thread Beth
Hi all, In my code there is a canvas drawing a bitmap created from a resource png. It is not a Drawable. If I want to take that bitmap and tint it, is there something similar to setColorFilter in the graphics package that I can use on the canvas and bitmap object? To be clear, my goal is to

[android-developers] ImageView selection in Custom ListView?

2010-05-12 Thread Narendar
Hi, I have developed a Custom ListView with following pattern Name |-| Age | My Tiny Image | Email | ---| Now I want to know after clicking on my Tiny Image some function should be called. How to attach listener to this Image which

Re: [android-developers] ImageView selection in Custom ListView?

2010-05-12 Thread social hub
ImageView myImage = findViewById(r.id.image) myimage.setOnClickListener() setOnClickListener is what you need On Wed, May 12, 2010 at 2:20 AM, Narendar narendardisco...@gmail.comwrote: Hi, I have developed a Custom ListView with following pattern Name |-| Age

[android-developers] ImageView that is a OnClickListener can't handle other gestures

2010-04-28 Thread _rogerio_
Hi, I have several ImageViews inside a Gallery, every ImageView can handle a user tapping by listen click events like below: posterView.setOnClickListener(new View.OnClickListener() { public void onClick(View view) {

[android-developers] ImageView animation: rotate a certain amount of degrees at some set interval

2010-04-19 Thread patbenatar
Hey all- First off, I'm aware a simple hack to achieve this would be to run a Thread with a sleep for however many milliseconds I want my interval to be and rotate it a certain amount of degrees every time the Thread is run... I'm looking for a built-in way to achieve this animation effect,

[android-developers] ImageView - Set width in code?

2010-04-19 Thread Tommy
Hey, I have an image view on my activity I set the height and width to 500px to start with as the image is rather big. I have the scale set to fitXY. My problem is the image comes in 3 widths 500px, 1200px and 1500px (depending on the graph) Whenever I have the 1200px or 1500px load into the

[android-developers] ImageView and ViewRoot

2010-04-07 Thread McD
Hey all, Question on an oddity I am seeing. I have an ImageView that I am using to display a splash screen for a couple of seconds: ImageView android:id=@+id/splashsScreen android:src=@drawable/logosplash android:layout_width=fill_parent

Re: [android-developers] ImageView and ViewRoot

2010-04-07 Thread Dianne Hackborn
ViewRoot.performTraversals() is the main engine of the view hierarchy, driving all layout and drawing in it. Most things you see happening in your views are likely to come from there, but that doesn't mean it is to blame. :) On Wed, Apr 7, 2010 at 10:59 AM, McD mcd...@gmail.com wrote: Hey all,

[android-developers] ImageView - Can't read dimensions

2010-04-02 Thread Doug Linhardt
I am trying to display an image at different scales within an ImageView which is part of a larger LinearLayout. Unfortunately, when trying to calculate scaling factors, I am unable to read the ImageView's dimensions. The following code displays Screen: 0, 0 in the TextView, rather than the

[android-developers] ImageView: zoom proportionally to width=fill_parent ???

2010-03-28 Thread Marco Alexander Schmitz
hi, I've got a picture 300x98. I want to use an ImageView with width=fill_parent in order to let Android zoom it to 320x105 (portrait) or 480x157 (landscape). I tried every scaleType and adjustViewBounds combination, but didnt get it right :( documentation doesnt help me neither: CENTER

[android-developers] ImageView can't be clicked... help!

2010-02-28 Thread Kofa
I tried several times to make it work... i tried searching on google but works for everyone but not for me Can anyone tell me how to make an image clickable?? i mean, I tried to use onClickListener and onClick but nothing seems to work onClickListener is always underlined and the error

[android-developers] ImageView with graphic from the www ?

2010-02-27 Thread Marco Alexander Schmitz
Hello, I want to show a graphic inside my activity. A graphic thats from the www. Just like http://www.google.de/logos/olympics10-sskating-hp.png. Wenn, in general I would download the graphic, convert it (maybe with photoshop or something), rename it (if neccassary) and copy it to my drawable

[android-developers] ImageView setImageURL(Uri imgUri) does not work with android.resource//... Uri

2010-02-23 Thread qlimax
I'm trying to do the following thing without success: ImageView imgView=(ImageView)findViewById(R.id.imgView); Uri imgUri=Uri.parse(android.resource:// my.package.name/+R.drawable.image); imageView.setImageURI(imgUri) I'm stuck, because the imageView just shows nothing... how I can get an Uri

[android-developers] ImageView in ListActivity

2010-01-11 Thread Marwal
Hi, I have an ListActivity that I wan't to add a logo to at the top above the list but I'm unsuccessful. This is what my layout looks like at the moment. ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=horizontal

[android-developers] imageview problems

2009-12-11 Thread MPS
Hello , i want to make listview.when i select the spinner item, the corresponding item's image appear in nextscreen.for eg,when i select apple ,the apple image appear in nextscreen.and the apple's information also appear near apple's image.but those are given by the user.all

[android-developers] ImageView from URL

2009-11-24 Thread David Kebo
Hello, Im trying to display a url image in an ImageView container on the screen. I see the image, but sometimes the application crashes. I am wondering if im using the stream properly. Code: URL url = new URL(http://192.168.1.111/jpg/image.jpg;); InputStream stream = url.openStream(); Bitmap bmp =

  1   2   >