Android 显示或单击微调器时,我看不到任何内容

Android 显示或单击微调器时,我看不到任何内容,android,custom-controls,android-spinner,Android,Custom Controls,Android Spinner,我有一个定制的微调器。我已经使它尽可能的基本,以使其工作,但我没有看到任何价值观,无论是在其初始值或其下拉,没有回应,在所有没有错误 我的自定义xml <?xml version="1.0" encoding="utf-8"?> <TextView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"

我有一个定制的微调器。我已经使它尽可能的基本,以使其工作,但我没有看到任何价值观,无论是在其初始值或其下拉,没有回应,在所有没有错误

我的自定义xml

<?xml version="1.0" encoding="utf-8"?>
    <TextView
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:textSize="20sp"
        android:gravity="left"
        android:textColor="@color/white"
        android:padding="5dip" />

有日志吗?尝试在您的convertView中输入“false”而不是null,比如这个充气器。充气(R.layout.spinner\u行,父,false);不走运。刚刚意识到一个输入错误,修复了-我有错误的xml被膨胀,但仍然,代码不会被击中…没有日志,因为没有错误afaicsLog并不意味着“错误”。。。你可以记录你的代码来检查它是否真的到了那里。顺便提一下为什么要返回文本视图???你必须返回convertView.oohh,可能就是这样-我不知道我返回了什么以及为什么返回我的日志?尝试在您的convertView中输入“false”而不是null,比如这个充气器。充气(R.layout.spinner\u行,父,false);不走运。刚刚意识到一个输入错误,修复了-我有错误的xml被膨胀,但仍然,代码不会被击中…没有日志,因为没有错误afaicsLog并不意味着“错误”。。。你可以记录你的代码来检查它是否真的到了那里。顺便提一下为什么要返回文本视图???你必须返回convertView.oohh,可能就是这样-我不知道我返回的是什么以及为什么返回我是什么
private Context context;
private ArrayList<String>itemList;
private Activity activity;
private LayoutInflater inflater;
public Game_AddFixtures_SpinnerAdapter(Context context, int textViewResourceId, ArrayList<ArrayList<String>> itemList) {
    super(context, textViewResourceId);
    this.context=context;
    //this.itemList=itemList;

}

@Override
public View getView(int position, View convertView, ViewGroup parent) {
    inflater = (LayoutInflater)activity.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    convertView = inflater.inflate(R.layout.spinner_custom, null);
    TextView v = (TextView) super.getView(position, convertView, parent);
    Typeface myTypeFace = Typeface.createFromAsset(context.getAssets(),"fonts/gilsanslight.otf");
    v.setTypeface(myTypeFace);
    v.setText("shooobaloo");
    return convertView;
}


public View getCustomView(int position, View convertView, ViewGroup parent) {
    // TODO Auto-generated method stub
    return super.getView(position, convertView, parent);
}

}
//TEST
Spinner spinner_fixture1= (Spinner)dialog.findViewById(R.id.spinner_fixture1);
mySpinnerAdapter spinner= new mySpinnerAdapter(c,R.layout.spinner_custom,fixtureTeamList);
spinner_fixture1.setAdapter(spinner);