Drawable issues

by Ashwini » Thu, 22 Apr 2010 03:12:00 GMT


Sponsored Links
 Hi,

I am trying to resize an image in a textview (set using imagespan). I
tried using setbounds but the image is not reflected.

OnPreDraw - set the bounds
OnDraw - shows the image in some weird place - the updated position
isn't shown correctly.

Can someone please suggest any other option to resize a drawable ?

--



Other Threads

1. second activity error onClick package is duplicating in intent line

I am trying to create a two activity test application using eclipse.

I have been pulling my hair out on this one.

In my main activity class in a package called com.deano I have the
following snippet of code

 Button next = (Button) findViewById(R.id.Button01);
 next.setOnClickListener(new View.OnClickListener() {
 public void onClick(View view) {
 Intent myIntent = new Intent(view.getContext(),
SecondScreenView.class);
 startActivityForResult(myIntent, 0);
 }

 });


also in com.deano is the SecondScreenView activity class

when I click the button, it fails to create the new activity saying....

08-01 03:49:30.330: ERROR/AndroidRuntime(4502): Caused by:
android.content.ActivityNotFoundException: Unable to find explicit
activity class {com.deano/com.deano.SecondScreenView}; have you
declared this activity in your AndroidManifest.xml?

Here is my AndroidManifest.xml too showing the SecondScreenView
activity defined.

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
 package="com.deano"
 android:versionCode="1"
 android:versionName="1.0">
 <application android:icon="@drawable/icon" android:label="@string/app_name">
 <activity android:name=".MainScreenView"
 android:label="@string/app_name">
 <intent-filter>
 <action android:name="android.intent.action.MAIN" />
 <category android:name="android.intent.category.LAUNCHER" />
 </intent-filter>

 <activity android:name=".SecondScreenView"></activity>

 </activity>

 </application>


</manifest>



Why am I getting this error when I click on the button?

-- 

2. nexus one dan htc desir

As subject : mau jual nexus one dan htc desire.. Mulusss lengkap..
Harga :
Desire : 5jt
Nexus one 5,2jt
Yg minat bisa japri ke mony...@gmail.com..

Thaankss om momod buat jalum nya 
Sent from BlackBerryon 3

-- 
"Indonesian Android Community [id-android]" 

3. Nubie Perkenalan + WTA HTC Magic

4. Android with S3?

5. Is it possible to add a kernel module to a commercial device using Android?

6. Initial Android Eclair port for ConnectCore i.MX51 SOM

7. OOT: BosS Lapo in action