[android-developers] Problem with dialog title and dialog background

2009-06-24 Thread Tonio
Hey, I'm facing a problem when trying to customize dialogs in my application. Here is the description. I have an activity louching a Dialog created as follow protected Dialog onCreateDialog(int id) { Dialog selectorDialog; View layout = getLayoutInflater().inflate(R.layout.MyLayout,

[android-developers] How to make a custom View having it's height = width ?

2009-06-24 Thread Tonio
Hi guy, I'm trying to make my custom view looks like a square... I'm putting my view in a linear layout like this : LinearLayout - Header view - square view (my custom view) - footer view With the screen orientation set to Portrait *I would like my square view to have height the same as it's