android - Spinner options (an IcsSpinner from ABS) inside DialogFragment are displayed truncated -


i have following problem displaying spinner inside dialogfragment.

the spinner displayed cut , it's displayed ok when keyboard appears.

the spinner custom class following code:

import android.content.context; import android.util.attributeset;  import com.actionbarsherlock.internal.widget.icsspinner;  public class customicsspinner extends icsspinner {    public customicsspinner(context context, attributeset attrs) {     super(context, attrs, com.actionbarsherlock.r.attr.actiondropdownstyle);    }    public customicsspinner(context context, attributeset attrs, int defstyle) {     super(context, attrs, defstyle);    } } 

how can fix this?

thanks in advance.

spinner displayed cut spinner displayed ok

go com.actionbarsherlock.internal.widget.icsspinner source code.
find dropdownpopup popup = new dropdownpopup(context, attrs, defstyle);
replace dropdownpopup popup = new dropdownpopup(context.getapplicationcontext(), attrs, defstyle);

works me;

:)


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

php - HTTP_REFERER woes: How can I allow access to a specific page, only when a visitor has visited another specific page beforehand? -

java Extracting Zip file -