All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.t3t5u.common.android.ArrayView Maven / Gradle / Ivy

The newest version!
package com.github.t3t5u.common.android;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.ArrayAdapter;
import android.widget.ListAdapter;
import android.widget.ListView;

public class ArrayView extends ListView {
	public ArrayView(final Context context) {
		super(context);
	}

	public ArrayView(final Context context, final AttributeSet attrs) {
		super(context, attrs);
	}

	public ArrayView(final Context context, final AttributeSet attrs, final int defStyle) {
		super(context, attrs, defStyle);
	}

	@Override
	@SuppressWarnings("unchecked")
	public ArrayAdapter getAdapter() {
		return (ArrayAdapter) super.getAdapter();
	}

	@Override
	@Deprecated
	@SuppressWarnings("unchecked")
	public void setAdapter(final ListAdapter adapter) {
		setAdapter((ArrayAdapter) adapter);
	}

	public void setAdapter(final ArrayAdapter adapter) {
		super.setAdapter(adapter);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy