Lines Matching defs:facet
35 static int getAlignmentPosition(View itemView, ItemAlignmentFacet.ItemAlignmentDef facet,
39 if (facet.mViewId != 0) {
40 view = itemView.findViewById(facet.mViewId);
45 int alignPos = facet.mOffset;
50 if (facet.mOffsetWithPadding) {
51 if (facet.mOffsetPercent == 0f) {
53 } else if (facet.mOffsetPercent == 100f) {
57 if (facet.mOffsetPercent != ITEM_ALIGN_OFFSET_PERCENT_DISABLED) {
59 : view.getWidth()) * facet.mOffsetPercent) / 100f);
67 if (facet.mOffsetWithPadding) {
68 if (facet.mOffsetPercent == 0f) {
70 } else if (facet.mOffsetPercent == 100f) {
74 if (facet.mOffsetPercent != ITEM_ALIGN_OFFSET_PERCENT_DISABLED) {
76 : view.getWidth()) * facet.mOffsetPercent) / 100f);
85 if (facet.mOffsetWithPadding) {
86 if (facet.mOffsetPercent == 0f) {
88 } else if (facet.mOffsetPercent == 100f) {
92 if (facet.mOffsetPercent != ITEM_ALIGN_OFFSET_PERCENT_DISABLED) {
94 * facet.mOffsetPercent) / 100f);
101 if (facet.isAlignedToTextViewBaseLine()) {