Android Open Source - MediaButtonOverlay Media Control View






From Project

Back to project page MediaButtonOverlay.

License

The source code is released under:

GNU Lesser General Public License

If you think the Android project MediaButtonOverlay listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.mikekorcha.mediabuttonoverlay;
//www  . j av  a2  s  .c  o m
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.drawable.Drawable;
import android.preference.PreferenceManager;
import android.util.AttributeSet;
import android.util.Log;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;

import java.util.Timer;
import java.util.TimerTask;

public class MediaControlView extends LinearLayout {

    private LinearLayout layout;

    protected ImageView prev;
    protected ImageView pp;
    protected ImageView next;
    protected ImageView close;

    public MediaControlView(Context context) {
        super(context);

        View view = this.inflate(getContext(), R.layout.media_control_view, null);

        this.layout = (LinearLayout) view.findViewById(R.id.layout);

        this.prev = (ImageView) view.findViewById(R.id.prev);
        this.pp = (ImageView) view.findViewById(R.id.pp);
        this.next = (ImageView) view.findViewById(R.id.next);
        this.close = (ImageView) view.findViewById(R.id.close);

        this.addView(view);
    }

    public void setOpacity(float opacity) {
        this.prev.setAlpha(opacity);
        this.pp.setAlpha(opacity);
        this.next.setAlpha(opacity);
        this.close.setAlpha(opacity);
    }
}




Java Source Code List

com.mikekorcha.mediabuttonoverlay.MainActivity.java
com.mikekorcha.mediabuttonoverlay.MediaControlView.java
com.mikekorcha.mediabuttonoverlay.OverlayService.java
com.mikekorcha.mediabuttonoverlay.tasker.TaskerActivity.java
com.mikekorcha.mediabuttonoverlay.tasker.TaskerReceiver.java
com.mikekorcha.mediabuttonoverlay.util.Base64DecoderException.java
com.mikekorcha.mediabuttonoverlay.util.Base64.java
com.mikekorcha.mediabuttonoverlay.util.IabException.java
com.mikekorcha.mediabuttonoverlay.util.IabHelper.java
com.mikekorcha.mediabuttonoverlay.util.IabResult.java
com.mikekorcha.mediabuttonoverlay.util.Inventory.java
com.mikekorcha.mediabuttonoverlay.util.Purchase.java
com.mikekorcha.mediabuttonoverlay.util.Security.java
com.mikekorcha.mediabuttonoverlay.util.SkuDetails.java
com.robobunny.SeekBarPreference.java
net.dinglisch.tasker.Constants.java
net.dinglisch.tasker.PluginApplication.java
net.dinglisch.tasker.bundle.BundleScrubber.java
net.dinglisch.tasker.bundle.PluginBundleManager.java