Android :: Image Transparency - Section Which You Could Measure In Pixels?

Oct 17, 2009

Anyone know if you can make part (i.e. a section which you could measure in pixels) of an image transparent? What graphics features would I need to look at?

Android :: Image transparency - section which you could measure in pixels?


Android :: Image Transparency - Load An Image File Into An ImageView Object

Aug 24, 2010

Is there a way to load an image file into an ImageView object, and then define a transparent color for this object?

View 1 Replies View Related

Android :: Relationship Between Pixels And Scaled Pixels?

Jan 4, 2010

I used the layout editor in eclipse to mock up my ui layout and then I created the code to populate it dynamically and things are showing up as different sizes. The XML I use to add the star images looks like this:

<ImageView
android:src="@drawable/star_gold"
android:layout_height="22sp"
android:layout_width="22sp"
android:adjustViewBounds="true"
android:layout_marginLeft="2sp"
android:layout_marginRight="2sp" />...............

View 4 Replies View Related

Android :: How Can I Measure FPS?

Aug 3, 2010

Is there a way to measure frames per second? Would be helpful in evaluating perf tweaks.

View 4 Replies View Related

Android :: PNG Transparency And OpenGL ES

May 27, 2009

I am rendering this PNG with no transparency just fine: http://n4te.com/temp/test.png However if I try to render this PNG (with transparency) with the exact same code, I just get a white box: http://n4te.com/temp/ball.png

I am loading the PNG into a texture like this: Bitmap bitmap = BitmapFactory.decodeStream(input); int[] temp = new int[1]; gl.glGenTextures(1, temp, 0); textureID = temp[0]; gl.glBindTexture(GL10.GL_TEXTURE_2D, textureID); gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_NEAREST); gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_NEAREST); // GL_LINEAR for quality. gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_S, GL10.GL_CLAMP_TO_EDGE); gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_T, GL10.GL_CLAMP_TO_EDGE); GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0); bitmap.recycle();

I am using this blending: gl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA); How is it possible to render a PNG with transparency in OpenGL ES?

View 7 Replies View Related

Android :: Set The Transparency Of A View?

Jul 14, 2010

I would like to change the transparency of a whole View in Android. How can I do that? The View has a nontransparent background.

View 2 Replies View Related

Android :: To Measure 3G Or 2G Signal

Sep 9, 2010

Any sofware ( supports Android 2.1 )similiar to Nice track , field test measure signal ( 3g and 2g) . please advice

View 1 Replies View Related

Android :: Astrid Widget Transparency

Mar 20, 2010

Is there a way to set the Astrid widget to be partially transparent/translucent? I'd like it to let some of the background show through like the default search widget and the default calendar widget.

View 5 Replies View Related

Android :: ImageButton Icon Transparency

Mar 3, 2010

why is the transparency for drawables attached to ImageButtons not honoured? i have to change them to ImageViews so they look right.

View 5 Replies View Related

Android :: Set Initial Transparency For TextView

Feb 1, 2010

I need to set initial transparency for a TextView but I don't know how to do it. On iPhone it can be done easily with alpha property. I've tried to set alpha using AlphaAnimation but no good it doesn't work. It just returns to 100% alpha when it ends.

CODE:................

View 2 Replies View Related

Android :: Poor Transparency On Images

Apr 2, 2010

I am having problems getting transparency to work well on an ImageView. The images at(http://img265.imageshack.us/img265/6233/whatn.png) were screen captured from a Droid (hdpi). The top image I made in Photoshop and left the background white. The bottom image is the same image with the background transparent and the layout's color (white) shows through. Whenever I have transparent backgrounds in images it dithers shadows like this. Also, it only happens on hdpi devices, on my G1 (mdpi) it looks just fine. What is going on? How can I make the bottom image look as good as the top one?

View 1 Replies View Related

Android :: Measure GPS Signal Strength

Aug 23, 2010

How to measure GPS signal strength?

View 2 Replies View Related

Android :: Measure Widgets Before Display?

Nov 10, 2009

I need to find out how wide a button with particular text will be before displaying a layout. Is this a valid way of doing it behind the scenes?I have other UI components that have to all be the same width in my layout, as whatever this one button is (the other widgets are placed all over the UI and I can't use any other layout methods to force them to be the same size).So I thought I could create this temporary layout, add my fake button, measure it to get its width, then use that value on all other controls. Right now I'm doing the same thing only in onWindowFocus(), but this happens after the layout has been displayed once, which I'd like to avoid.

View 2 Replies View Related

Android :: Measure The Latitude - Longitude Of About 1 Km

Sep 20, 2010

Tell me that in android if i have a circle's radius and center value than how could i measure the latitude ,longitude of about 1 km. periphery of that circle.

View 3 Replies View Related

Android :: Transparency On Views Behaving Differently In 1.5

Apr 25, 2009

I have a lot of Views where I have set a background image on the top LinearLayout and then I have nested a new linear layout below with a background that is semi-transparent. This works great in 1.1, but in 1.5 the transparency is just disregarded and this breaks my app as the text on top is now unreadable.

Is this a bug or a feature? Is there a better way of doing this? Very grateful for any tips!

Code example:

CODE:....................

View 13 Replies View Related

Android :: Using GlColor To Set Textures To Half Transparency?

Nov 19, 2010

Basically I have a fully functional ogl program (2D game) in opengl es 1.1, everything works fine except for one problem: glcolor

I'm trying to set some of my texture to half transparent and I would like to do it as follows;

gl.glColor4f(1f, 1f, 1f, .5f);
obj.draw(gl);
...

gl.glColor4f(1f, 1f, 1f, 1f);

I'm using VBO for my vertice, my textures and indices. (if that is relevant)

the problem is that nothing gets set to 50% transparency...

I'm don't think relevant to post all my code (mainly because it is spread out several classes with several GL options changing (blends, scissors etc etc).

What I would like is for people to tell me what state of OGL could prevent glcolor form working like I want, what functions should I check, what state should I call.

View 1 Replies View Related

Android :: Forcing View To Measure Off Screen

Nov 9, 2010

I have a custom view i am writing for my drawing app but the first time i set the drawing into it i need to get the dimension for the view (using getMeasuredWidth() & getMeasuredHeight()). But until the view display these return 0. I have tried calling: requestLayout() invalidate() numDraw.measure(MeasureSpec.EXACTLY, MeasureSpec.EXACTLY); but nothing seems to force the values to update.I guess the question i am asking is : does anyone have any tips on how to get view to update its measurements off screen?

View 3 Replies View Related

Android :: How To Measure Video File Size?

May 5, 2010

I have a video player application and would like to display an approximate size of the running video. Is there a way to calculate the video file size from the given Video player API set?

View 2 Replies View Related

Android :: Measure Data Roaming Traffic

Aug 3, 2010

Just back from a very nice vacation in Iceland, and await the data roaming bill from my phone company. I hope for the best having limited my traffic as much as possible, but I want to know in advance. I used the very nice app NetCounter but it didn't measure roaming data traffic at all.So I want to build my own app measuring just roaming data traffic. I have a few booleans to start with ( NetworkInfo.IsRoaming() & TelephonyManager. isNetworkRoaming() ), but I'm not sure how to measure the traffic if true.So the question is: How do I measure data traffic while roaming? (Something like API level 8 TrafficStats functionality is what I'm after, but for API level 3). The used SmartPhone is Samsung Galaxy i7500 (Android 1.6)

View 2 Replies View Related

Android :: Transparency / Translucency Working On Emulator But Not Device

Jun 22, 2009

I have tried to replicate the Transparency/Translucency effects created in the API Demo(which works flawlessly) and the code i wrote works on the emulator but not on my actual device(Google ION)I copied the styles and colors.xml files from the API demos code and set the theme of my activity I want to be transparent to "@style/ Theme.Transparent" in my activity i set my content view to a layout which contains only a TextView containing : <TextView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/text" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center_vertical|center_horizontal" android:text="should have transparent background" /> i have also tried setting the theme using: setTheme (R.style.Theme_Transparent).

View 2 Replies View Related

Android :: How To Paint Transparency - Swiss Cheese Style

Apr 4, 2010

To explain i have a bitmap which is constructed as follows

Paint a rectangle color yellow I want now to paint a smaller circle over the top of the rectangle, but i want to use transparency. so that the circle results as a hole in the rectangle. {like swiss cheese with holes }

So if i painted the bitmap over a background the background would still be visible in the Circle/hole.

setting the drawcolor drawColor(Color.TRANSPARENT) just paints a transparent object. i.e. it doesn't erase the circle area of the rectangle.

How to do...?

One option is to set the circle color to say black and then look for an option to replace black with transparent within the bitmap.... but i can't find a solution for this either.

View 5 Replies View Related

Android :: Measure Length Of Edittext String Dynamically

Sep 8, 2010

How can i measure length of string entered in the edittext while typing.Because i want to show a warning when the entered text length cross 100 character.

View 1 Replies View Related

Android :: Widgets - Imageview Doesn't Support Transparency/alpha

Aug 7, 2009

When applying an alpha value to an imageview, Eclipse displays the view accurately in layout mode. But when exporting to a target device (such as a phone), the alpha appears to be ignored. This impacts developers trying to create fade ins/outs of elements in a widget. Has anyone else come across this issue yet? Not sure if this behavior is by design or by error.

View 2 Replies View Related

Android :: Way To Measure Time-consumings Of All Functions In Percent After Game?

Feb 7, 2010

I want to optimize my game and remove the stuttering. Is there a way to measure the time-consumings of all my functions in the game without having to change all my functions?

View 3 Replies View Related

How To Measure Little Time Intervals

Sep 17, 2012

I would like to make an app that measures little time intervals (nanoseconds) so I need to know about time resolution and precision regarding such measures with an Android device.

In other words:

- Is it feasible to get reliable values of the current time with nanosecond resolution?
- If so, is feasible to measure such little time interavals? I mean, is there any way to tell the app/OS to focus on measuring the time interval specified in the current thread instead of allowing other processes to make the measuring task not precise?

I've tried to measure the time between the execution of two different lines in code but the results are not always the same, somehow random, then I suppose Dalvik and its process management is causing this to be unreliable and random. What I need to do is to measure distances by getting transmission and reception of audio tones of 16-20 KHz (done in [1] with iOS), thus needing resolution and precision.

View 5 Replies View Related

General :: Battery MAh Measure?

May 25, 2012

Any app that measures the battery's mAh? I have tried battery monitor by 3c, but I don't think it works completely with HTC phones. Either it keeps saying measurement requires 40% or larger charging cycle or it reports something crazy..

View 9 Replies View Related

General :: How To Edit Transparency In Statusbar

Jul 19, 2013

I want to edit the transparency in my statusbar (Stock Gingerbread 2.3.5), I read I had to edit in systemui.apk value/drawable.xml. But I only get hide the status bar, really nice, but isn't what i want. I am editing the wrong file.

View 1 Replies View Related

General :: Remove Transparency From Themes

Jul 31, 2012

How to remove transperency from themes and roms. Galaxy s3

View 1 Replies View Related

Android :: Adjusting Font Size To Fit / Paint Measure Text Returns Too Small Value

Oct 31, 2010

I'm using the FontFitTextView that was posted in this other thread, but it isn't working exactly right for me. The measureText() call is returning a number that is obviously too small to display the string. When it runs through to find a font size that will allow the text to fit, the font size it settles on is still too big. I feel like there is some other kind of padding or margin or some other invisible that is contributing the math that makes up the width which is causing the discrepancy.For example I want to set the text of my FontFitTextView to be "10,000.25".The width of my FontFitTextView is 96 pixels, with 8px padding on both sides, so my available width is 80 pixels. The call to measureText() says that the text "10,000.25" is 64 pixels wide. This means that the current font size should be small enough to display the entire string. However, when the string is actually drawn on the TextView the last 2 characters are chopped off and all I see is "10,000." instead of "10,000.25"

View 1 Replies View Related

Sony Ericsson Xperia X10 :: Where Does X10 Measure Up To Others?

Oct 18, 2010

So how does the X10 measure up? I know the Iphone 4 has killer resolution. and its 4g. but where would the x10 stand in the rankings against all smart phones? i seen afew top 10s and i dont see it on there. is it a top 15 phone?

View 49 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved