Search in sources :

Example 1 with CircleImageView

use of com.naman14.timber.widgets.CircleImageView in project Timber by naman14.

the class Timber6 method onCreateView.

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    View rootView = inflater.inflate(R.layout.fragment_timber6, container, false);
    setMusicStateListener();
    setSongDetails(rootView);
    initGestures(rootView.findViewById(R.id.album_art));
    ((SeekBar) rootView.findViewById(R.id.song_progress)).getProgressDrawable().setColorFilter(new PorterDuffColorFilter(Color.WHITE, PorterDuff.Mode.MULTIPLY));
    ((SeekBar) rootView.findViewById(R.id.song_progress)).getThumb().setColorFilter(new PorterDuffColorFilter(Color.WHITE, PorterDuff.Mode.SRC_ATOP));
    nextSong = (TextView) rootView.findViewById(R.id.title_next);
    nextArt = (CircleImageView) rootView.findViewById(R.id.album_art_next);
    rootView.findViewById(R.id.nextView).setOnClickListener(new View.OnClickListener() {

        @Override
        public void onClick(View view) {
            MusicPlayer.setQueuePosition(MusicPlayer.getQueuePosition() + 1);
        }
    });
    return rootView;
}
Also used : PorterDuffColorFilter(android.graphics.PorterDuffColorFilter) CircleImageView(com.naman14.timber.widgets.CircleImageView) TextView(android.widget.TextView) View(android.view.View)

Aggregations

PorterDuffColorFilter (android.graphics.PorterDuffColorFilter)1 View (android.view.View)1 TextView (android.widget.TextView)1 CircleImageView (com.naman14.timber.widgets.CircleImageView)1