Android 带有多行文本问题的微调器(带滚动)

Android 带有多行文本问题的微调器(带滚动),android,Android,我知道有很多关于多行文本微调器的帖子,但我的问题与这些不同。首次打开微调器时,多文本将换行到微调器中的新行。但当我开始向下滚动时,多行文本视图会转到单行。我不知道如何停止滚动以禁用多行 这是我的微调器视图布局 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_pare

我知道有很多关于多行文本微调器的帖子,但我的问题与这些不同。首次打开微调器时,多文本将换行到微调器中的新行。但当我开始向下滚动时,多行文本视图会转到单行。我不知道如何停止滚动以禁用多行

这是我的微调器视图布局

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >

<TextView
    android:id="@+id/text_name"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:singleLine="false"
    android:ellipsize="marquee"
    android:textSize="20sp" />

</LinearLayout>

}

您使用的是哪种适配器?你能发布java代码吗?我用我的自定义适配器更新了帖子
public class ProjectJsonAdapter extends BaseAdapter {
private Context mContext;
private JSONArray mArray;

public ProjectJsonAdapter(Context context, JSONArray array) {
    mArray = array;
    mContext = context;
}

@Override
public int getCount() {
    return mArray.length();
}

@Override
public Object getItem(int position) {
    return null;
}

@Override
public long getItemId(int position) {
    return position;
}

@Override
public View getView(int position, View convertView, ViewGroup parent) {
    if (convertView == null) {
        LayoutInflater inflater = LayoutInflater.from(mContext);
        convertView = inflater.inflate(R.layout.combo_dropdown, null);
    }
    TextView myView = (TextView) convertView.findViewById(R.id.text_name);
    JSONObject myObj = mArray.optJSONObject(position);
    String name = myObj.optString("project_name");
    String code = myObj.optString("project_code");
    StringBuilder myBuilder = new StringBuilder();
    myBuilder.append(code);
    myBuilder.append(" ");
    myBuilder.append(name);
    myView.setText(myBuilder);
    return convertView;
}