// Path: android/YotaCast/yotaphone_titanium_sdk/gen/com/yotadevices/sdk/R.java
// public final class R {
// }


import android.content.Context;
import android.widget.RemoteViews;
import com.yotadevices.sdk.R;
    
    public TinyWidgetBuilder setLeftTextCompoundDrawables(int left, int top, int right, int bottom) {
        mLeftTextDrawablesLeft = left;
        mLeftTextDrawablesTop = top;
        mLeftTextDrawablesRight = right;
        mLeftTextDrawablesBottom = bottom;
        return this;
    }

    public TinyWidgetBuilder setLoadingDataState(boolean val) {
        mLoadingData = val;
        return this;
    }

    public boolean getLoadingDataState() {
        return mLoadingData;
    }


    public RemoteViews apply(Context context) {
        if (!mLoadingData) {
            RemoteViews remoteViews = new RemoteViews(context.getPackageName(), R.layout.template_widget_tiny);
            remoteViews.setTextViewText(R.id.left_text, mLeftText);
            remoteViews.setTextViewCompoundDrawables(R.id.left_text, mLeftTextDrawablesLeft, mLeftTextDrawablesTop,
            		mLeftTextDrawablesRight, mLeftTextDrawablesBottom);
            remoteViews.removeAllViews(R.id.content);
            remoteViews.addView(R.id.content, mContentView);
            return super.apply(context, remoteViews);
        }
        else  {
// Path: android/YotaCast/yotaphone_titanium_sdk/gen/com/yotadevices/sdk/R.java
// public final class R {
// }


// Path: android/YotaCast/yotaphone_titanium_sdk/src/com/yotadevices/sdk/template/TinyWidgetBuilder.java
import android.content.Context;
import android.widget.RemoteViews;
import com.yotadevices.sdk.R;

    
    public TinyWidgetBuilder setLeftTextCompoundDrawables(int left, int top, int right, int bottom) {
        mLeftTextDrawablesLeft = left;
        mLeftTextDrawablesTop = top;
        mLeftTextDrawablesRight = right;
        mLeftTextDrawablesBottom = bottom;
        return this;
    }

    public TinyWidgetBuilder setLoadingDataState(boolean val) {
        mLoadingData = val;
        return this;
    }

    public boolean getLoadingDataState() {
        return mLoadingData;
    }


    public RemoteViews apply(Context context) {
        if (!mLoadingData) {
            RemoteViews remoteViews = new RemoteViews(context.getPackageName(), R.layout.template_widget_tiny);
            remoteViews.setTextViewText(R.id.left_text, mLeftText);
            remoteViews.setTextViewCompoundDrawables(R.id.left_text, mLeftTextDrawablesLeft, mLeftTextDrawablesTop,
            		mLeftTextDrawablesRight, mLeftTextDrawablesBottom);
            remoteViews.removeAllViews(R.id.content);
            remoteViews.addView(R.id.content, mContentView);
            return super.apply(context, remoteViews);
        }
        else  {
            RemoteViews remoteViews = new RemoteViews(context.getPackageName(), R.layout.template_widget_loading_data);