Tiled bitmap gets distorted?

by Ozymandias » Thu, 08 Apr 2010 09:02:17 GMT

Sponsored Links
 I created a bitmap to fill in some empty area on my toolbar. I want it
to tile as it expands.

<?xml version="1.0" encoding="UTF-8"?>
<bitmap xmlns:android=" http://schemas.android.com/apk/res/android" ;
    android:tileMode="repeat" />

My problem is, that placed next to buttons created with the same
background, of the same height, it looks wrong. It gets distorted and
stretched some vertically and is blurrier than the buttons which are
not tiled. If I use the same bitmap just as a android:background, it
looks perfect.

Any ideas what android's doing to my bitmap?


Other Threads

1. ProgressDialog went back to the first view called it when dismiss()

the show() and dismiss() of the dialog, even the new ProgressDialog()
are all inside Handler message processing codes. I don't think I need
to user AsyncTask here even it is very useful. Basically the Handler
receives data, updates the UI and dismisses the dialog. Then Bang! the
Login View shows up.

On Nov 3, 5:45pm, Jason Proctor <jason.android.li...@gmail.com>

> >

2. Approaches to Security for Web Backed Applications

What is the best way to ensure people don't cheat when you use a web
server (or something similar) to handle some of your application

A good example is a high score board. People play a game and when they
are done, the application sends the score to the server to be
recorded.  However, if someone knows what your server is expecting,
they can craft their own "high score" and post it to the server
without having earned that score.  There are many similar situations
in which a person could potentially ruin an application by
communicating with the server in ways they shouldn't.

As a developer with a web-backed application, what are the best ways
to prevent this?  Putting a key in the application and encrypting the
message is one option. But it would not be ridiculously hard to crack
even this system because the compiled application is available with
the key. This would stop amateur hackers, but not persistent,
experienced hackers.

What about all you developers out there?  How do you make sure that
web server requests were properly generated from your android
application? Or do you just assume it will be OK and that no one has
time to try to break your cell phone app? Is there a better system I'm
not thinking of?


3. Requesting invitation to Google Wave - please, pretty please?

4. Processing Pictures

5. ProgressDialog went back to the first view called it when dismiss()

6. Ganti room myhero 2.04 kembali ke 1.1.4

7. Manage the Wifi connection from an applicacion