Пример #1
0
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_widget);

    WidgetView wv = (WidgetView) findViewById(R.id.selectedWidget);
    wv.setClickable(false);
    if (WidgetView.selectedDrawable != null) {
      wv.setDrawable(WidgetView.selectedDrawable);
      setTitle(WidgetView.selectedDrawable.getTitle());
    }
  }