private void updateAllocation() { View view = getView(); if (view == null) return; TextView textView = (TextView) view.findViewById(R.id.allocationEdit); if (textView != null) { Money allocation = assetClass.getAllocation(); // FormatUtilities.formatAmountTextView(); textView.setText(allocation.toString()); textView.setTag(allocation.toString()); } }
public int saveExchangeRate(int currencyId, Money exchangeRate) { ContentValues contentValues = new ContentValues(); contentValues.put(TableCurrencyFormats.BASECONVRATE, exchangeRate.toString()); int result = mContext .getContentResolver() .update( mCurrencyTable.getUri(), contentValues, TableCurrencyFormats.CURRENCYID + "=?", new String[] {Integer.toString(currencyId)}); return result; }
protected void setMoney(String fieldName, Money value) { contentValues.put(fieldName, value.toString()); }