开发者

How to add EditText in ListView multiple choice type

I have inside LinearLayout ListView with multiple select choice(all strings). How to add on last position in ListView EditText. I have used ArrayAdapter to fill list with strings. How to add that fi开发者_开发知识库eld ?


Create an own layout for the items of listview and inflate it. Here an example how to inflate it:

@Override
public View getView(int position, View convertView, ViewGroup parent) {

    if(convertView == null) {
        // Inflate a new View every time a new row requires one.
        convertView = LayoutInflater.from(context).inflate(R.layout.youritemview, parent, false);
    }
    ...
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜