f7f4bda7ffae66973ded8a6e5f9d6c030c6752f8
1 /* ownCloud Android Library is available under MIT license
2 * Copyright (C) 2014 ownCloud (http://www.owncloud.org/)
4 * Permission is hereby granted, free of charge, to any person obtaining a copy
5 * of this software and associated documentation files (the "Software"), to deal
6 * in the Software without restriction, including without limitation the rights
7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 * copies of the Software, and to permit persons to whom the Software is
9 * furnished to do so, subject to the following conditions:
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
18 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
19 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 package com
.owncloud
.android
.lib
.sampleclient
;
26 import android
.content
.Context
;
27 import android
.view
.View
;
28 import android
.view
.ViewGroup
;
29 import android
.widget
.ArrayAdapter
;
30 import android
.widget
.TextView
;
32 import com
.owncloud
.android
.lib
.operations
.common
.RemoteFile
;
34 public class FilesArrayAdapter
extends ArrayAdapter
<RemoteFile
> {
36 public FilesArrayAdapter(Context context
, int resource
) {
37 super(context
, resource
);
40 public View
getView(int position
, View convertView
, ViewGroup parent
) {
41 TextView textView
= (TextView
)super.getView(position
, convertView
, parent
);
42 textView
.setText(getItem(position
).getRemotePath());