微调选项(从ABS的IcsSpinner)内DialogFragment显示截断 [英] Spinner options (an IcsSpinner from ABS) inside DialogFragment are displayed truncated

查看:300
本文介绍了微调选项(从ABS的IcsSpinner)内DialogFragment显示截断的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有显示微调以下问题 DialogFragment

微调显示切换和键盘出现时,它才会显示确定。

The Spinner is displayed cut and it's only displayed OK when the keyboard appears.

微调实际上是下面的code自定义类:

The Spinner is actually a custom class with the 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 I fix this?

先谢谢了。


推荐答案

com.actionbarsherlock.internal.widget.IcsSpinner 源$ C ​​$ C

找到 DropdownPopup弹出=新DropdownPopup(背景下,ATTRS,defStyle);

DropdownPopup弹出更换=新DropdownPopup(context.getApplicationContext(),ATTRS,defStyle);

Go to com.actionbarsherlock.internal.widget.IcsSpinner source code.
Find DropdownPopup popup = new DropdownPopup(context, attrs, defStyle);
Replace with DropdownPopup popup = new DropdownPopup(context.getApplicationContext(), attrs, defStyle);

对我的作品;

:)

这篇关于微调选项(从ABS的IcsSpinner)内DialogFragment显示截断的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆