2017-02-13 00:55:05 +01:00
|
|
|
package org.schabi.newpipe.info_list;
|
|
|
|
|
|
|
|
import android.view.View;
|
|
|
|
import android.widget.ImageView;
|
|
|
|
import android.widget.TextView;
|
|
|
|
|
|
|
|
import org.schabi.newpipe.R;
|
|
|
|
import org.schabi.newpipe.extractor.InfoItem;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Created by Christian Schabesberger on 01.08.16.
|
2017-04-26 21:32:04 +02:00
|
|
|
* <p>
|
2017-02-13 00:55:05 +01:00
|
|
|
* Copyright (C) Christian Schabesberger 2016 <chris.schabesberger@mailbox.org>
|
|
|
|
* StreamInfoItemHolder.java is part of NewPipe.
|
2017-04-26 21:32:04 +02:00
|
|
|
* <p>
|
2017-02-13 00:55:05 +01:00
|
|
|
* NewPipe is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
2017-04-26 21:32:04 +02:00
|
|
|
* <p>
|
2017-02-13 00:55:05 +01:00
|
|
|
* NewPipe is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2017-04-26 21:32:04 +02:00
|
|
|
* <p>
|
2017-02-13 00:55:05 +01:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with NewPipe. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
public class StreamInfoItemHolder extends InfoItemHolder {
|
|
|
|
|
|
|
|
public final ImageView itemThumbnailView;
|
|
|
|
public final TextView itemVideoTitleView,
|
|
|
|
itemUploaderView,
|
|
|
|
itemDurationView,
|
2017-06-15 16:26:48 +02:00
|
|
|
itemAdditionalDetails;
|
2017-04-26 21:32:04 +02:00
|
|
|
public final View itemRoot;
|
2017-02-13 00:55:05 +01:00
|
|
|
|
|
|
|
public StreamInfoItemHolder(View v) {
|
|
|
|
super(v);
|
2017-04-26 21:32:04 +02:00
|
|
|
itemRoot = v.findViewById(R.id.itemRoot);
|
2017-02-13 00:55:05 +01:00
|
|
|
itemThumbnailView = (ImageView) v.findViewById(R.id.itemThumbnailView);
|
|
|
|
itemVideoTitleView = (TextView) v.findViewById(R.id.itemVideoTitleView);
|
|
|
|
itemUploaderView = (TextView) v.findViewById(R.id.itemUploaderView);
|
|
|
|
itemDurationView = (TextView) v.findViewById(R.id.itemDurationView);
|
2017-06-15 16:26:48 +02:00
|
|
|
itemAdditionalDetails = (TextView) v.findViewById(R.id.itemAdditionalDetails);
|
2017-02-13 00:55:05 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public InfoItem.InfoType infoType() {
|
|
|
|
return InfoItem.InfoType.STREAM;
|
|
|
|
}
|
|
|
|
}
|