ViewGroup vg = (ViewGroup) findViewById (R.id.videoTitleTxtView); vg.removeAllViews(); vg.refreshDrawableState();
ViewGroup myViewGroup = (ViewGroup) findViewById (R.id.myId); myViewGroup.removeAllViews(); myViewGroup.refreshDrawableState();
public View getView(int position, View convertView, ViewGroup parent) { View v = convertView; AdapterWrapper wrapper; if (v == null) { LayoutInflater li = (LayoutInflater) this.getContext() .getSystemService(Context.LAYOUT_INFLATER_SERVICE); v = li.inflate(R.layout.itemrow, null); wrapper = new AdapterWrapper(v, cont); v.setTag(wrapper); } else wrapper = (AdapterWrapper) convertView.getTag(); RssItem o = this.getItem(position); if (o != null) wrapper.populateFrom(o); parent.refreshDrawableState(); return v; }
@Override protected void onDialogClosed(boolean positiveResult) { super.onDialogClosed(positiveResult); ColorCache.invalidateCache(); // TODO maybe a better way to send this message to the chart if (mParent != null) { Log.d(TAG, "Calling refresh on parent"); try { mParent.refreshDrawableState(); } catch (Exception e) { Log.e(TAG, "Got exception refreshing drawablestate: " + e); } } else { Log.d(TAG, "mparent is null :("); } notifyChanged(); // TODO probably should check whether data has actually changed before updating all the graphics Home.staticRefreshBGCharts(true); WidgetUpdateService.staticRefreshWidgets(); Notifications.staticUpdateNotification(); }
@Override protected void onDialogClosed(boolean positiveResult) { super.onDialogClosed(positiveResult); ColorCache.invalidateCache(); // TODO maybe a better way to send this message to the chart if (mParent != null) { Log.d(TAG, "Calling refresh on parent"); try { mParent.refreshDrawableState(); } catch (Exception e) { Log.e(TAG, "Got exception refreshing drawablestate: " + e); } } else { Log.d(TAG, "mparent is null :("); } notifyChanged(); // TODO probably should check whether data has actually changed before updating all the graphics Home.staticRefreshBGCharts(true); WidgetUpdateService.staticRefreshWidgets(); Notifications.staticUpdateNotification(); }