it.tidalwave.bluebill.mobile.android.taxonomy.factsheet.sound.SoundAdapter Maven / Gradle / Ivy
/***********************************************************************************************************************
*
* blueBill Mobile - open source birdwatching
* ==========================================
*
* Copyright (C) 2009, 2010 by Tidalwave s.a.s. (http://www.tidalwave.it)
* http://bluebill.tidalwave.it/mobile/
*
***********************************************************************************************************************
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*
***********************************************************************************************************************
*
* $Id: SoundAdapter.java,v 7922dab344d7 2010/06/24 01:04:55 fabrizio $
*
**********************************************************************************************************************/
package it.tidalwave.bluebill.mobile.android.taxonomy.factsheet.sound;
import javax.annotation.Nonnull;
import android.content.Context;
import android.view.View;
import it.tidalwave.bluebill.mobile.android.R;
import it.tidalwave.bluebill.mobile.android.taxonomy.factsheet.MediaAdapter;
import it.tidalwave.bluebill.mobile.android.taxonomy.factsheet.MediaViewHelper;
import it.tidalwave.bluebill.observation.ObservationSet;
/***********************************************************************************************************************
*
* @author Fabrizio Giudici
* @version $Id: $
*
**********************************************************************************************************************/
public class SoundAdapter extends MediaAdapter
{
/*******************************************************************************************************************
*
*
******************************************************************************************************************/
public SoundAdapter (final @Nonnull Context context,
final @Nonnull ObservationSet observationSet)
{
super(context, observationSet, R.layout.sound_browser_row);
}
/*******************************************************************************************************************
*
*
******************************************************************************************************************/
@Override @Nonnull
protected MediaViewHelper createHelper (final @Nonnull View view)
{
return new SoundViewHelper(view);
}
}