Java Code Examples for com.yqritc.scalablevideoview.ScalableType#values()
The following examples show how to use
com.yqritc.scalablevideoview.ScalableType#values() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SampleAdapter.java From Android-ScalableVideoView with Apache License 2.0 | 5 votes |
@Override public void onBindViewHolder(ViewHolder holder, int position) { Context context = holder.itemView.getContext(); ScalableType scalableType = ScalableType.values()[position]; holder.mTextView.setText(context.getString(R.string.sample_scale_title, position, scalableType.toString())); holder.setScalableType(scalableType); }
Example 2
Source File: SampleAdapter.java From Android-ScalableVideoView with Apache License 2.0 | 4 votes |
@Override public int getItemCount() { return ScalableType.values().length; }