Lines Matching refs:value

149         float value = array.getFraction(R.styleable.PercentLayout_Layout_layout_widthPercent, 1, 1,
151 if (value != -1f) {
153 Log.v(TAG, "percent width: " + value);
156 info.widthPercent = value;
158 value = array.getFraction(R.styleable.PercentLayout_Layout_layout_heightPercent, 1, 1, -1f);
159 if (value != -1f) {
161 Log.v(TAG, "percent height: " + value);
164 info.heightPercent = value;
166 value = array.getFraction(R.styleable.PercentLayout_Layout_layout_marginPercent, 1, 1, -1f);
167 if (value != -1f) {
169 Log.v(TAG, "percent margin: " + value);
172 info.leftMarginPercent = value;
173 info.topMarginPercent = value;
174 info.rightMarginPercent = value;
175 info.bottomMarginPercent = value;
177 value = array.getFraction(R.styleable.PercentLayout_Layout_layout_marginLeftPercent, 1, 1,
179 if (value != -1f) {
181 Log.v(TAG, "percent left margin: " + value);
184 info.leftMarginPercent = value;
186 value = array.getFraction(R.styleable.PercentLayout_Layout_layout_marginTopPercent, 1, 1,
188 if (value != -1f) {
190 Log.v(TAG, "percent top margin: " + value);
193 info.topMarginPercent = value;
195 value = array.getFraction(R.styleable.PercentLayout_Layout_layout_marginRightPercent, 1, 1,
197 if (value != -1f) {
199 Log.v(TAG, "percent right margin: " + value);
202 info.rightMarginPercent = value;
204 value = array.getFraction(R.styleable.PercentLayout_Layout_layout_marginBottomPercent, 1, 1,
206 if (value != -1f) {
208 Log.v(TAG, "percent bottom margin: " + value);
211 info.bottomMarginPercent = value;
213 value = array.getFraction(R.styleable.PercentLayout_Layout_layout_marginStartPercent, 1, 1,
215 if (value != -1f) {
217 Log.v(TAG, "percent start margin: " + value);
220 info.startMarginPercent = value;
222 value = array.getFraction(R.styleable.PercentLayout_Layout_layout_marginEndPercent, 1, 1,
224 if (value != -1f) {
226 Log.v(TAG, "percent end margin: " + value);
229 info.endMarginPercent = value;
232 value = array.getFraction(R.styleable.PercentLayout_Layout_layout_aspectRatio, 1, 1, -1f);
233 if (value != -1f) {
235 Log.v(TAG, "aspect ratio: " + value);
238 info.aspectRatio = value;
283 * remeasured by adding normal dimension attribute with {@code wrap_content} value. For example
351 /** The decimal value of the percentage-based width. */
354 /** The decimal value of the percentage-based height. */
357 /** The decimal value of the percentage-based left margin. */
360 /** The decimal value of the percentage-based top margin. */
363 /** The decimal value of the percentage-based right margin. */
366 /** The decimal value of the percentage-based bottom margin. */
369 /** The decimal value of the percentage-based start margin. */
372 /** The decimal value of the percentage-based end margin. */
375 /** The decimal value of the percentage-based aspect ratio. */
403 // We assume that width/height set to 0 means that value was unset. This might not