[android-developers] Crop an image

2010-08-16 Thread Nea
I have an imageview which has a photo taken with the camera as its background and a frame as it's foreground (src). In that way the photo is positioned behind the frame so the photo get's a nice border. The imageview is a square (265x265dip). Now the problem is that photos taken are rectangular an

[android-developers] PreferenceActivity findViewById returns null

2010-08-12 Thread Nea
I have a PreferenceActivity which has a custom preference. In the onCreate() method I set a layout resource for the custom preference like this: Preference pref = (Preference) findPreference("customPref"); pref.setLayoutResource(R.layout.custompreflayout); I then want to dynamically set the text

[android-developers] Re: Background in PreferenceScreen

2010-07-28 Thread Nea
I solved it by attaching a theme in the manifest file: And then I simply created the theme with the background I wanted: @drawable/settings_background Works like a charm. :) -- You received this message bec

[android-developers] Background in PreferenceScreen

2010-07-27 Thread Nea
Is it possible to set a background image on a PreferenceScreen? I have tried the tag android:background="@drawable/some_background" which can be set in for example a LinearLayout XML, but it doesn't work in the PreferenceScreen. -- You received this message because you are subscribed to the Goog

[android-developers] LOCK_PATTERN_ENABLED on API 8 (Froyo)

2010-07-21 Thread Nea
According to the documentation System.Secure.LOCK_PATTERN_ENABLED tells you whether the autolock is enabled or not. If you set a lock pattern it will return true and if you don't set any screen lock it will return false, which is all in order. However on the Android virtual device emulator you cou

[android-developers] Re: Mipmap Generation

2009-07-30 Thread nea
Hi I am also currently trying to get MipMaps to work and eventually this is the thread that pops up several times in the search ^^'. The problem I have with your posted solution, it does not work for me. As soon as I try it your way I do not get any texture at all. It just stays white. What coul