Home
last modified time | relevance | path

Searched refs:mNumberOfFolds (Results 1 – 2 of 2) sorted by relevance

/development/samples/devbytes/graphics/FoldingLayout/src/com/example/android/foldinglayout/
DFoldingLayout.java77 private int mNumberOfFolds = 2; field in FoldingLayout
195 if (numberOfFolds != mNumberOfFolds) { in setNumberOfFolds()
196 mNumberOfFolds = numberOfFolds; in setNumberOfFolds()
214 return mNumberOfFolds; in getNumberOfFolds()
218 prepareFold(mOrientation, mAnchorFactor, mNumberOfFolds); in updateFold()
262 mNumberOfFolds = numberOfFolds; in prepareFold()
267 mFoldRectArray = new Rect[mNumberOfFolds]; in prepareFold()
268 mMatrix = new Matrix [mNumberOfFolds]; in prepareFold()
270 for (int x = 0; x < mNumberOfFolds; x++) { in prepareFold()
283 int delta = Math.round(mIsHorizontal ? ((float) w) / ((float) mNumberOfFolds) : in prepareFold()
[all …]
DFoldingLayoutActivity.java87 private int mNumberOfFolds = 2; field in FoldingLayoutActivity
346 mNumberOfFolds = Integer.parseInt(parent.getItemAtPosition(pos).toString()); in onItemSelected()
351 mFoldLayout.setNumberOfFolds(mNumberOfFolds); in onItemSelected()