package com.google.appinventor.components.runtime; import com.google.appinventor.components.annotations.DesignerComponent; import com.google.appinventor.components.annotations.DesignerProperty; import com.google.appinventor.components.annotations.IsColor; import com.google.appinventor.components.annotations.PropertyCategory; import com.google.appinventor.components.annotations.SimpleObject; import com.google.appinventor.components.annotations.SimpleProperty; import com.google.appinventor.components.common.ComponentCategory; import com.google.appinventor.components.common.PropertyTypeConstants; import com.google.appinventor.components.common.YaVersion; import com.google.appinventor.components.runtime.util.TextViewUtil; import android.util.Log; import android.view.View; import android.widget.LinearLayout; import android.widget.TextView; import android.widget.RatingBar; //import android.widget.RatingBarOnRatingBarChangeListener; @DesignerComponent(version = 1, description = "", category = ComponentCategory.AKCOMPONENTS, iconName = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAABsElEQVR42mNgGFHATXWRubvaQjOaWeCqvmCxq/rCRTQx3FNlnijQgu9A/NNZZ7Y49YNHfUEN0PD/IOyivqCaqoY7OOxnARr8GGrBZRAbJEbFsJ8fCnM9kJ0Bot3UF4ZQEN5L+Jw1Fqq5acyzclFf6A808BTMAje9RdxA+j1IDCQHUgNSC9KDP4w1FlRCg+EHwrWYGKTWRWNBHw55kN7HLmrzKzAsqGeoZwK6qAuf4TALQL5wUVlo6Ka20NNVbX6sq9qCHqDcX6iaTgaG/4z4UksyUNEvfBYgA3etBdpA8YdA/AdoYRZxkaqxwA2o4SMhC4AudwaKfQDiz24aC31IimhQEAA1PsVlgZPmHHmoT5+4qs43IC95qi1ci8sCaN74DMQrKcm9z9EtQA4KYLm0F+QDsgx3116sgiuiXdQWbHZTX6QItKAJkukWKZJsAdCQODSDQalkEgiD2ED8DYi3geWASZX04NFYOAvJ8NPI9YC72lx9oNgRpOJjBukRrLHgKlDzW2Aw5IMyIaaK/4xQX74EJtcrpAWP0kx+F/X5U711lwoSUgtSA1IL0sMwCsgBAD9vLYiB1R2fAAAAAElFTkSuQmCC") @SimpleObject public class RatingBars extends AndroidViewComponent { private final RatingBar view; public RatingBars(ComponentContainer container) { super(container); view = new RatingBar(container.$context()); container.$add(this); } @Override public View getView() { return view; } }