docstring_tokens list | code_tokens list |
|---|---|
[
"returns",
"the",
"top",
"padding",
"of",
"the",
"view",
"plus",
"space",
"for",
"the",
"top",
"drawable",
"if",
"any"
] | [
"final",
"drawables",
"dr",
"=",
"m",
"drawables",
";",
"if",
"(",
"dr",
"=",
"=",
"null",
"|",
"|",
"dr",
"m",
"showing",
"[",
"drawables",
"top",
"]",
"=",
"=",
"null",
")",
"{",
"return",
"m",
"padding",
"top",
";",
"}",
"else",
"{",
"return",... |
[
"returns",
"the",
"bottom",
"padding",
"of",
"the",
"view",
"plus",
"space",
"for",
"the",
"bottom",
"drawable",
"if",
"any"
] | [
"final",
"drawables",
"dr",
"=",
"m",
"drawables",
";",
"if",
"(",
"dr",
"=",
"=",
"null",
"|",
"|",
"dr",
"m",
"showing",
"[",
"drawables",
"bottom",
"]",
"=",
"=",
"null",
")",
"{",
"return",
"m",
"padding",
"bottom",
";",
"}",
"else",
"{",
"re... |
[
"returns",
"the",
"left",
"padding",
"of",
"the",
"view",
"plus",
"space",
"for",
"the",
"left",
"drawable",
"if",
"any"
] | [
"final",
"drawables",
"dr",
"=",
"m",
"drawables",
";",
"if",
"(",
"dr",
"=",
"=",
"null",
"|",
"|",
"dr",
"m",
"showing",
"[",
"drawables",
"left",
"]",
"=",
"=",
"null",
")",
"{",
"return",
"m",
"padding",
"left",
";",
"}",
"else",
"{",
"return... |
[
"returns",
"the",
"right",
"padding",
"of",
"the",
"view",
"plus",
"space",
"for",
"the",
"right",
"drawable",
"if",
"any"
] | [
"final",
"drawables",
"dr",
"=",
"m",
"drawables",
";",
"if",
"(",
"dr",
"=",
"=",
"null",
"|",
"|",
"dr",
"m",
"showing",
"[",
"drawables",
"right",
"]",
"=",
"=",
"null",
")",
"{",
"return",
"m",
"padding",
"right",
";",
"}",
"else",
"{",
"retu... |
[
"returns",
"the",
"start",
"padding",
"of",
"the",
"view",
"plus",
"space",
"for",
"the",
"start",
"drawable",
"if",
"any"
] | [
"resolve",
"drawables",
"(",
")",
";",
"switch",
"(",
"get",
"layout",
"direction",
"(",
")",
")",
"{",
"default",
":",
"case",
"layout",
"direction",
"ltr",
":",
"return",
"get",
"compound",
"padding",
"left",
"(",
")",
";",
"case",
"layout",
"direction... |
[
"returns",
"the",
"end",
"padding",
"of",
"the",
"view",
"plus",
"space",
"for",
"the",
"end",
"drawable",
"if",
"any"
] | [
"resolve",
"drawables",
"(",
")",
";",
"switch",
"(",
"get",
"layout",
"direction",
"(",
")",
")",
"{",
"default",
":",
"case",
"layout",
"direction",
"ltr",
":",
"return",
"get",
"compound",
"padding",
"right",
"(",
")",
";",
"case",
"layout",
"directio... |
[
"returns",
"the",
"total",
"left",
"padding",
"of",
"the",
"view",
"including",
"the",
"left",
"drawable",
"if",
"any"
] | [
"return",
"get",
"compound",
"padding",
"left",
"(",
")",
";"
] |
[
"returns",
"the",
"total",
"right",
"padding",
"of",
"the",
"view",
"including",
"the",
"right",
"drawable",
"if",
"any"
] | [
"return",
"get",
"compound",
"padding",
"right",
"(",
")",
";"
] |
[
"returns",
"the",
"total",
"start",
"padding",
"of",
"the",
"view",
"including",
"the",
"start",
"drawable",
"if",
"any"
] | [
"return",
"get",
"compound",
"padding",
"start",
"(",
")",
";"
] |
[
"returns",
"the",
"total",
"end",
"padding",
"of",
"the",
"view",
"including",
"the",
"end",
"drawable",
"if",
"any"
] | [
"return",
"get",
"compound",
"padding",
"end",
"(",
")",
";"
] |
[
"returns",
"the",
"total",
"top",
"padding",
"of",
"the",
"view",
"including",
"the",
"top",
"drawable",
"if",
"any",
"the",
"extra",
"space",
"to",
"keep",
"more",
"than",
"max",
"lines",
"from",
"showing",
"and",
"the",
"vertical",
"offset",
"for",
"grav... | [
"return",
"get",
"extended",
"padding",
"top",
"(",
")",
"+",
"get",
"vertical",
"offset",
"(",
"true",
")",
";"
] |
[
"returns",
"the",
"total",
"bottom",
"padding",
"of",
"the",
"view",
"including",
"the",
"bottom",
"drawable",
"if",
"any",
"the",
"extra",
"space",
"to",
"keep",
"more",
"than",
"max",
"lines",
"from",
"showing",
"and",
"the",
"vertical",
"offset",
"for",
... | [
"return",
"get",
"extended",
"padding",
"bottom",
"(",
")",
"+",
"get",
"bottom",
"vertical",
"offset",
"(",
"true",
")",
";"
] |
[
"sets",
"the",
"drawables",
"(",
"if",
"any",
")",
"to",
"appear",
"to",
"the",
"left",
"of",
"above",
"to",
"the",
"right",
"of",
"and",
"below",
"the",
"text",
"use",
"0",
"if",
"you",
"do",
"not",
"want",
"a",
"drawable",
"there",
"the",
"drawable... | [
"final",
"context",
"context",
"=",
"get",
"context",
"(",
")",
";",
"set",
"compound",
"drawables",
"with",
"intrinsic",
"bounds",
"(",
"left",
"!",
"=",
"0",
"?",
"context",
"get",
"drawable",
"(",
"left",
")",
":",
"null",
",",
"top",
"!",
"=",
"0... |
[
"sets",
"the",
"drawables",
"(",
"if",
"any",
")",
"to",
"appear",
"to",
"the",
"left",
"of",
"above",
"to",
"the",
"right",
"of",
"and",
"below",
"the",
"text",
"use",
"{",
"@",
"code",
"null",
"}",
"if",
"you",
"do",
"not",
"want",
"a",
"drawable... | [
"if",
"(",
"left",
"!",
"=",
"null",
")",
"{",
"left",
"set",
"bounds",
"(",
"0",
",",
"0",
",",
"left",
"get",
"intrinsic",
"width",
"(",
")",
",",
"left",
"get",
"intrinsic",
"height",
"(",
")",
")",
";",
"}",
"if",
"(",
"right",
"!",
"=",
... |
[
"sets",
"the",
"drawables",
"(",
"if",
"any",
")",
"to",
"appear",
"to",
"the",
"start",
"of",
"above",
"to",
"the",
"end",
"of",
"and",
"below",
"the",
"text",
"use",
"0",
"if",
"you",
"do",
"not",
"want",
"a",
"drawable",
"there",
"the",
"drawables... | [
"final",
"context",
"context",
"=",
"get",
"context",
"(",
")",
";",
"set",
"compound",
"drawables",
"relative",
"with",
"intrinsic",
"bounds",
"(",
"start",
"!",
"=",
"0",
"?",
"context",
"get",
"drawable",
"(",
"start",
")",
":",
"null",
",",
"top",
... |
[
"sets",
"the",
"drawables",
"(",
"if",
"any",
")",
"to",
"appear",
"to",
"the",
"start",
"of",
"above",
"to",
"the",
"end",
"of",
"and",
"below",
"the",
"text",
"use",
"{",
"@",
"code",
"null",
"}",
"if",
"you",
"do",
"not",
"want",
"a",
"drawable"... | [
"if",
"(",
"start",
"!",
"=",
"null",
")",
"{",
"start",
"set",
"bounds",
"(",
"0",
",",
"0",
",",
"start",
"get",
"intrinsic",
"width",
"(",
")",
",",
"start",
"get",
"intrinsic",
"height",
"(",
")",
")",
";",
"}",
"if",
"(",
"end",
"!",
"=",
... |
[
"returns",
"drawables",
"for",
"the",
"left",
"top",
"right",
"and",
"bottom",
"borders"
] | [
"final",
"drawables",
"dr",
"=",
"m",
"drawables",
";",
"if",
"(",
"dr",
"!",
"=",
"null",
")",
"{",
"return",
"dr",
"m",
"showing",
"clone",
"(",
")",
";",
"}",
"else",
"{",
"return",
"new",
"drawable",
"[",
"]",
"{",
"null",
",",
"null",
",",
... |
[
"returns",
"drawables",
"for",
"the",
"start",
"top",
"end",
"and",
"bottom",
"borders"
] | [
"final",
"drawables",
"dr",
"=",
"m",
"drawables",
";",
"if",
"(",
"dr",
"!",
"=",
"null",
")",
"{",
"return",
"new",
"drawable",
"[",
"]",
"{",
"dr",
"m",
"drawable",
"start",
",",
"dr",
"m",
"showing",
"[",
"drawables",
"top",
"]",
",",
"dr",
"... |
[
"sets",
"the",
"size",
"of",
"the",
"padding",
"between",
"the",
"compound",
"drawables",
"and",
"the",
"text"
] | [
"drawables",
"dr",
"=",
"m",
"drawables",
";",
"if",
"(",
"pad",
"=",
"=",
"0",
")",
"{",
"if",
"(",
"dr",
"!",
"=",
"null",
")",
"{",
"dr",
"m",
"drawable",
"padding",
"=",
"pad",
";",
"}",
"}",
"else",
"{",
"if",
"(",
"dr",
"=",
"=",
"nul... |
[
"returns",
"the",
"padding",
"between",
"the",
"compound",
"drawables",
"and",
"the",
"text"
] | [
"final",
"drawables",
"dr",
"=",
"m",
"drawables",
";",
"return",
"dr",
"!",
"=",
"null",
"?",
"dr",
"m",
"drawable",
"padding",
":",
"0",
";"
] |
[
"applies",
"a",
"tint",
"to",
"the",
"compound",
"drawables",
"does",
"not",
"modify",
"the",
"current",
"tint",
"mode",
"which",
"is",
"{",
"@",
"link",
"porter",
"duff",
"mode",
"#",
"src",
"in",
"}",
"by",
"default",
"<",
"p",
">",
"subsequent",
"ca... | [
"if",
"(",
"m",
"drawables",
"=",
"=",
"null",
")",
"{",
"m",
"drawables",
"=",
"new",
"drawables",
"(",
"get",
"context",
"(",
")",
")",
";",
"}",
"m",
"drawables",
"m",
"tint",
"list",
"=",
"tint",
";",
"m",
"drawables",
"m",
"has",
"tint",
"="... |
[
"specifies",
"the",
"blending",
"mode",
"used",
"to",
"apply",
"the",
"tint",
"specified",
"by",
"{",
"@",
"link",
"#",
"set",
"compound",
"drawable",
"tint",
"list",
"(",
"color",
"state",
"list",
")",
"}",
"to",
"the",
"compound",
"drawables",
"the",
"... | [
"if",
"(",
"m",
"drawables",
"=",
"=",
"null",
")",
"{",
"m",
"drawables",
"=",
"new",
"drawables",
"(",
"get",
"context",
"(",
")",
")",
";",
"}",
"m",
"drawables",
"m",
"tint",
"mode",
"=",
"tint",
"mode",
";",
"m",
"drawables",
"m",
"has",
"ti... |
[
"returns",
"the",
"blending",
"mode",
"used",
"to",
"apply",
"the",
"tint",
"to",
"the",
"compound",
"drawables",
"if",
"specified"
] | [
"return",
"m",
"drawables",
"!",
"=",
"null",
"?",
"m",
"drawables",
"m",
"tint",
"mode",
":",
"null",
";"
] |
[
"returns",
"the",
"distance",
"between",
"the",
"first",
"text",
"baseline",
"and",
"the",
"top",
"of",
"this",
"text",
"view"
] | [
"return",
"get",
"padding",
"top",
"(",
")",
"-",
"get",
"paint",
"(",
")",
"get",
"font",
"metrics",
"int",
"(",
")",
"top",
";"
] |
[
"returns",
"the",
"distance",
"between",
"the",
"last",
"text",
"baseline",
"and",
"the",
"bottom",
"of",
"this",
"text",
"view"
] | [
"return",
"get",
"padding",
"bottom",
"(",
")",
"+",
"get",
"paint",
"(",
")",
"get",
"font",
"metrics",
"int",
"(",
")",
"bottom",
";"
] |
[
"gets",
"the",
"autolink",
"mask",
"of",
"the",
"text",
"see",
"{",
"@",
"link",
"android",
"text",
"util",
"linkify",
"#",
"all",
"linkify",
"all",
"}",
"and",
"peers",
"for",
"possible",
"values"
] | [
"return",
"m",
"auto",
"link",
"mask",
";"
] |
[
"get",
"the",
"default",
"primary",
"{"
] | [
"return",
"m",
"text",
"paint",
"get",
"text",
"locale",
"(",
")",
";"
] |
[
"get",
"the",
"default",
"{"
] | [
"return",
"m",
"text",
"paint",
"get",
"text",
"locales",
"(",
")",
";"
] |
[
"set",
"the",
"default",
"{",
"@",
"link",
"locale",
"}",
"of",
"the",
"text",
"in",
"this",
"text",
"view",
"to",
"a",
"one",
"-",
"member",
"{",
"@",
"link",
"locale",
"list",
"}",
"containing",
"just",
"the",
"given",
"locale"
] | [
"m",
"locales",
"changed",
"=",
"true",
";",
"m",
"text",
"paint",
"set",
"text",
"locale",
"(",
"locale",
")",
";",
"if",
"(",
"m",
"layout",
"!",
"=",
"null",
")",
"{",
"null",
"layouts",
"(",
")",
";",
"request",
"layout",
"(",
")",
";",
"inva... |
[
"set",
"the",
"default",
"{",
"@",
"link",
"locale",
"list",
"}",
"of",
"the",
"text",
"in",
"this",
"text",
"view",
"to",
"the",
"given",
"value"
] | [
"m",
"locales",
"changed",
"=",
"true",
";",
"m",
"text",
"paint",
"set",
"text",
"locales",
"(",
"locales",
")",
";",
"if",
"(",
"m",
"layout",
"!",
"=",
"null",
")",
"{",
"null",
"layouts",
"(",
")",
";",
"request",
"layout",
"(",
")",
";",
"in... |
[
"set",
"the",
"default",
"text",
"size",
"to",
"the",
"given",
"value",
"interpreted",
"as",
"scaled",
"pixel",
"units",
"this",
"size",
"is",
"adjusted",
"based",
"on",
"the",
"current",
"density",
"and",
"user",
"font",
"size",
"preference"
] | [
"set",
"text",
"size",
"(",
"typed",
"value",
"complex",
"unit",
"sp",
",",
"size",
")",
";"
] |
[
"return",
"the",
"horizontal",
"stretch",
"factor",
"of",
"the",
"text"
] | [
"return",
"m",
"text",
"paint",
"get",
"text",
"scale",
"x",
"(",
")",
";"
] |
[
"sets",
"the",
"horizontal",
"scale",
"factor",
"for",
"text",
"the",
"default",
"value",
"is",
"1",
"0",
"values",
"greater",
"than",
"1",
"0",
"stretch",
"the",
"text",
"wider",
"values",
"less",
"than",
"1",
"0",
"make",
"the",
"text",
"narrower",
"by... | [
"if",
"(",
"size",
"!",
"=",
"m",
"text",
"paint",
"get",
"text",
"scale",
"x",
"(",
")",
")",
"{",
"m",
"user",
"set",
"text",
"scale",
"x",
"=",
"true",
";",
"m",
"text",
"paint",
"set",
"text",
"scale",
"x",
"(",
"size",
")",
";",
"if",
"(... |
[
"sets",
"the",
"typeface",
"and",
"style",
"in",
"which",
"the",
"text",
"should",
"be",
"displayed",
"note",
"that",
"not",
"all",
"typeface",
"families",
"actually",
"have",
"bold",
"and",
"italic",
"variants",
"so",
"you",
"may",
"need",
"to",
"use",
"{... | [
"if",
"(",
"m",
"text",
"paint",
"get",
"typeface",
"(",
")",
"!",
"=",
"tf",
")",
"{",
"m",
"text",
"paint",
"set",
"typeface",
"(",
"tf",
")",
";",
"if",
"(",
"m",
"layout",
"!",
"=",
"null",
")",
"{",
"null",
"layouts",
"(",
")",
";",
"req... |
[
"set",
"the",
"text",
"view",
"s",
"elegant",
"height",
"metrics",
"flag",
"this",
"setting",
"selects",
"font",
"variants",
"that",
"have",
"not",
"been",
"compacted",
"to",
"fit",
"latin",
"-",
"based",
"vertical",
"metrics",
"and",
"also",
"increases",
"t... | [
"if",
"(",
"elegant",
"!",
"=",
"m",
"text",
"paint",
"is",
"elegant",
"text",
"height",
"(",
")",
")",
"{",
"m",
"text",
"paint",
"set",
"elegant",
"text",
"height",
"(",
"elegant",
")",
";",
"if",
"(",
"m",
"layout",
"!",
"=",
"null",
")",
"{",... |
[
"set",
"whether",
"to",
"respect",
"the",
"ascent",
"and",
"descent",
"of",
"the",
"fallback",
"fonts",
"that",
"are",
"used",
"in",
"displaying",
"the",
"text",
"(",
"which",
"is",
"needed",
"to",
"avoid",
"text",
"from",
"consecutive",
"lines",
"running",
... | [
"if",
"(",
"m",
"use",
"fallback",
"line",
"spacing",
"!",
"=",
"enabled",
")",
"{",
"m",
"use",
"fallback",
"line",
"spacing",
"=",
"enabled",
";",
"if",
"(",
"m",
"layout",
"!",
"=",
"null",
")",
"{",
"null",
"layouts",
"(",
")",
";",
"request",
... |
[
"@",
"return",
"whether",
"fallback",
"line",
"spacing",
"is",
"enabled",
"{",
"@",
"code",
"true",
"}",
"by",
"default"
] | [
"return",
"m",
"use",
"fallback",
"line",
"spacing",
";"
] |
[
"get",
"the",
"value",
"of",
"the",
"text",
"view",
"s",
"elegant",
"height",
"metrics",
"flag",
"this",
"setting",
"selects",
"font",
"variants",
"that",
"have",
"not",
"been",
"compacted",
"to",
"fit",
"latin",
"-",
"based",
"vertical",
"metrics",
"and",
... | [
"return",
"m",
"text",
"paint",
"is",
"elegant",
"text",
"height",
"(",
")",
";"
] |
[
"gets",
"the",
"text",
"letter",
"-",
"space",
"value",
"which",
"determines",
"the",
"spacing",
"between",
"characters",
"the",
"value",
"returned",
"is",
"in",
"ems",
"normally",
"this",
"value",
"is",
"0",
"0",
"@",
"return",
"the",
"text",
"letter",
"-... | [
"return",
"m",
"text",
"paint",
"get",
"letter",
"spacing",
"(",
")",
";"
] |
[
"sets",
"text",
"letter",
"-",
"spacing",
"in",
"em",
"units",
"typical",
"values",
"for",
"slight",
"expansion",
"will",
"be",
"around",
"0",
"05",
"negative",
"values",
"tighten",
"text"
] | [
"if",
"(",
"letter",
"spacing",
"!",
"=",
"m",
"text",
"paint",
"get",
"letter",
"spacing",
"(",
")",
")",
"{",
"m",
"text",
"paint",
"set",
"letter",
"spacing",
"(",
"letter",
"spacing",
")",
";",
"if",
"(",
"m",
"layout",
"!",
"=",
"null",
")",
... |
[
"returns",
"the",
"font",
"feature",
"settings",
"the",
"format",
"is",
"the",
"same",
"as",
"the",
"css",
"font",
"-",
"feature",
"-",
"settings",
"attribute",
":",
"<",
"a",
"href",
"=",
"https",
":",
"/",
"/",
"www",
"w",
"3",
"org",
"/",
"tr",
... | [
"return",
"m",
"text",
"paint",
"get",
"font",
"feature",
"settings",
"(",
")",
";"
] |
[
"returns",
"the",
"font",
"variation",
"settings"
] | [
"return",
"m",
"text",
"paint",
"get",
"font",
"variation",
"settings",
"(",
")",
";"
] |
[
"sets",
"the",
"break",
"strategy",
"for",
"breaking",
"paragraphs",
"into",
"lines",
"the",
"default",
"value",
"for",
"text",
"view",
"is",
"{",
"@",
"link",
"layout",
"#",
"break",
"strategy",
"high",
"quality",
"}",
"and",
"the",
"default",
"value",
"f... | [
"m",
"break",
"strategy",
"=",
"break",
"strategy",
";",
"if",
"(",
"m",
"layout",
"!",
"=",
"null",
")",
"{",
"null",
"layouts",
"(",
")",
";",
"request",
"layout",
"(",
")",
";",
"invalidate",
"(",
")",
";",
"}"
] |
[
"gets",
"the",
"current",
"strategy",
"for",
"breaking",
"paragraphs",
"into",
"lines",
"@",
"return",
"the",
"current",
"strategy",
"for",
"breaking",
"paragraphs",
"into",
"lines"
] | [
"return",
"m",
"break",
"strategy",
";"
] |
[
"sets",
"the",
"frequency",
"of",
"automatic",
"hyphenation",
"to",
"use",
"when",
"determining",
"word",
"breaks",
"the",
"default",
"value",
"for",
"both",
"text",
"view",
"and",
"{",
"@",
"link",
"edit",
"text",
"}",
"is",
"{",
"@",
"link",
"layout",
... | [
"m",
"hyphenation",
"frequency",
"=",
"hyphenation",
"frequency",
";",
"if",
"(",
"m",
"layout",
"!",
"=",
"null",
")",
"{",
"null",
"layouts",
"(",
")",
";",
"request",
"layout",
"(",
")",
";",
"invalidate",
"(",
")",
";",
"}"
] |
[
"gets",
"the",
"current",
"frequency",
"of",
"automatic",
"hyphenation",
"to",
"be",
"used",
"when",
"determining",
"word",
"breaks",
"@",
"return",
"the",
"current",
"frequency",
"of",
"automatic",
"hyphenation",
"to",
"be",
"used",
"when",
"determining",
"word... | [
"return",
"m",
"hyphenation",
"frequency",
";"
] |
[
"gets",
"the",
"parameters",
"for",
"text",
"layout",
"precomputation",
"for",
"use",
"with",
"{",
"@",
"link",
"precomputed",
"text",
"}"
] | [
"return",
"new",
"precomputed",
"text",
"params",
"(",
"new",
"text",
"paint",
"(",
"m",
"text",
"paint",
")",
",",
"get",
"text",
"direction",
"heuristic",
"(",
")",
",",
"m",
"break",
"strategy",
",",
"m",
"hyphenation",
"frequency",
")",
";"
] |
[
"apply",
"the",
"text",
"layout",
"parameter"
] | [
"m",
"text",
"paint",
"set",
"(",
"params",
"get",
"text",
"paint",
"(",
")",
")",
";",
"m",
"user",
"set",
"text",
"scale",
"x",
"=",
"true",
";",
"m",
"text",
"dir",
"=",
"params",
"get",
"text",
"direction",
"(",
")",
";",
"m",
"break",
"strat... |
[
"set",
"justification",
"mode",
"the",
"default",
"value",
"is",
"{",
"@",
"link",
"layout",
"#",
"justification",
"mode",
"none",
"}",
"if",
"the",
"last",
"line",
"is",
"too",
"short",
"for",
"justification",
"the",
"last",
"line",
"will",
"be",
"display... | [
"m",
"justification",
"mode",
"=",
"justification",
"mode",
";",
"if",
"(",
"m",
"layout",
"!",
"=",
"null",
")",
"{",
"null",
"layouts",
"(",
")",
";",
"request",
"layout",
"(",
")",
";",
"invalidate",
"(",
")",
";",
"}"
] |
[
"@",
"return",
"true",
"if",
"currently",
"paragraph",
"justification",
"mode"
] | [
"return",
"m",
"justification",
"mode",
";"
] |
[
"sets",
"font",
"feature",
"settings",
"the",
"format",
"is",
"the",
"same",
"as",
"the",
"css",
"font",
"-",
"feature",
"-",
"settings",
"attribute",
":",
"<",
"a",
"href",
"=",
"https",
":",
"/",
"/",
"www",
"w",
"3",
"org",
"/",
"tr",
"/",
"css"... | [
"if",
"(",
"font",
"feature",
"settings",
"!",
"=",
"m",
"text",
"paint",
"get",
"font",
"feature",
"settings",
"(",
")",
")",
"{",
"m",
"text",
"paint",
"set",
"font",
"feature",
"settings",
"(",
"font",
"feature",
"settings",
")",
";",
"if",
"(",
"... |
[
"sets",
"true",
"type",
"or",
"open",
"type",
"font",
"variation",
"settings",
"the",
"settings",
"string",
"is",
"constructed",
"from",
"multiple",
"pairs",
"of",
"axis",
"tag",
"and",
"style",
"values",
"the",
"axis",
"tag",
"must",
"contain",
"four",
"asc... | [
"final",
"string",
"existing",
"settings",
"=",
"m",
"text",
"paint",
"get",
"font",
"variation",
"settings",
"(",
")",
";",
"if",
"(",
"font",
"variation",
"settings",
"=",
"=",
"existing",
"settings",
"|",
"|",
"(",
"font",
"variation",
"settings",
"!",
... |
[
"sets",
"the",
"text",
"color",
"for",
"all",
"the",
"states",
"(",
"normal",
"selected",
"focused",
")",
"to",
"be",
"this",
"color"
] | [
"m",
"text",
"color",
"=",
"color",
"state",
"list",
"value",
"of",
"(",
"color",
")",
";",
"update",
"text",
"colors",
"(",
")",
";"
] |
[
"sets",
"the",
"text",
"color"
] | [
"if",
"(",
"colors",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"null",
"pointer",
"exception",
"(",
")",
";",
"}",
"m",
"text",
"color",
"=",
"colors",
";",
"update",
"text",
"colors",
"(",
")",
";"
] |
[
"gets",
"the",
"text",
"colors",
"for",
"the",
"different",
"states",
"(",
"normal",
"selected",
"focused",
")",
"of",
"the",
"text",
"view"
] | [
"return",
"m",
"text",
"color",
";"
] |
[
"return",
"the",
"current",
"color",
"selected",
"for",
"normal",
"text"
] | [
"return",
"m",
"cur",
"text",
"color",
";"
] |
[
"sets",
"the",
"color",
"used",
"to",
"display",
"the",
"selection",
"highlight"
] | [
"if",
"(",
"m",
"highlight",
"color",
"!",
"=",
"color",
")",
"{",
"m",
"highlight",
"color",
"=",
"color",
";",
"invalidate",
"(",
")",
";",
"}"
] |
[
"@",
"return",
"the",
"color",
"used",
"to",
"display",
"the",
"selection",
"highlight"
] | [
"return",
"m",
"highlight",
"color",
";"
] |
[
"sets",
"whether",
"the",
"soft",
"input",
"method",
"will",
"be",
"made",
"visible",
"when",
"this",
"text",
"view",
"gets",
"focused",
"the",
"default",
"is",
"true"
] | [
"create",
"editor",
"if",
"needed",
"(",
")",
";",
"m",
"editor",
"m",
"show",
"soft",
"input",
"on",
"focus",
"=",
"show",
";"
] |
[
"gets",
"the",
"color",
"of",
"the",
"shadow",
"layer",
"@",
"return",
"the",
"color",
"of",
"the",
"shadow",
"layer"
] | [
"return",
"m",
"shadow",
"color",
";"
] |
[
"gets",
"the",
"{"
] | [
"return",
"m",
"text",
"paint",
";"
] |
[
"sets",
"the",
"autolink",
"mask",
"of",
"the",
"text",
"see",
"{",
"@",
"link",
"android",
"text",
"util",
"linkify",
"#",
"all",
"linkify",
"all",
"}",
"and",
"peers",
"for",
"possible",
"values"
] | [
"m",
"auto",
"link",
"mask",
"=",
"mask",
";"
] |
[
"sets",
"whether",
"the",
"movement",
"method",
"will",
"automatically",
"be",
"set",
"to",
"{",
"@",
"link",
"link",
"movement",
"method",
"}",
"if",
"{",
"@",
"link",
"#",
"set",
"auto",
"link",
"mask",
"}",
"has",
"been",
"set",
"to",
"nonzero",
"an... | [
"m",
"links",
"clickable",
"=",
"whether",
";"
] |
[
"returns",
"whether",
"the",
"movement",
"method",
"will",
"automatically",
"be",
"set",
"to",
"{",
"@",
"link",
"link",
"movement",
"method",
"}",
"if",
"{",
"@",
"link",
"#",
"set",
"auto",
"link",
"mask",
"}",
"has",
"been",
"set",
"to",
"nonzero",
... | [
"return",
"m",
"links",
"clickable",
";"
] |
[
"returns",
"the",
"list",
"of",
"{"
] | [
"if",
"(",
"m",
"text",
"instanceof",
"spanned",
")",
"{",
"return",
"(",
"(",
"spanned",
")",
"m",
"text",
")",
"get",
"spans",
"(",
"0",
",",
"m",
"text",
"length",
"(",
")",
",",
"u",
"r",
"l",
"span",
"class",
")",
";",
"}",
"else",
"{",
... |
[
"sets",
"the",
"color",
"of",
"the",
"hint",
"text",
"for",
"all",
"the",
"states",
"(",
"disabled",
"focussed",
"selected",
")",
"of",
"this",
"text",
"view"
] | [
"m",
"hint",
"text",
"color",
"=",
"color",
"state",
"list",
"value",
"of",
"(",
"color",
")",
";",
"update",
"text",
"colors",
"(",
")",
";"
] |
[
"sets",
"the",
"color",
"of",
"the",
"hint",
"text"
] | [
"m",
"hint",
"text",
"color",
"=",
"colors",
";",
"update",
"text",
"colors",
"(",
")",
";"
] |
[
"@",
"return",
"the",
"color",
"of",
"the",
"hint",
"text",
"for",
"the",
"different",
"states",
"of",
"this",
"text",
"view"
] | [
"return",
"m",
"hint",
"text",
"color",
";"
] |
[
"<",
"p",
">",
"return",
"the",
"current",
"color",
"selected",
"to",
"paint",
"the",
"hint",
"text",
"<",
"/",
"p",
">"
] | [
"return",
"m",
"hint",
"text",
"color",
"!",
"=",
"null",
"?",
"m",
"cur",
"hint",
"text",
"color",
":",
"m",
"cur",
"text",
"color",
";"
] |
[
"sets",
"the",
"color",
"of",
"links",
"in",
"the",
"text"
] | [
"m",
"link",
"text",
"color",
"=",
"color",
"state",
"list",
"value",
"of",
"(",
"color",
")",
";",
"update",
"text",
"colors",
"(",
")",
";"
] |
[
"sets",
"the",
"color",
"of",
"links",
"in",
"the",
"text"
] | [
"m",
"link",
"text",
"color",
"=",
"colors",
";",
"update",
"text",
"colors",
"(",
")",
";"
] |
[
"@",
"return",
"the",
"list",
"of",
"colors",
"used",
"to",
"paint",
"the",
"links",
"in",
"the",
"text",
"for",
"the",
"different",
"states",
"of",
"this",
"text",
"view"
] | [
"return",
"m",
"link",
"text",
"color",
";"
] |
[
"gets",
"the",
"flags",
"on",
"the",
"paint",
"being",
"used",
"to",
"display",
"the",
"text"
] | [
"return",
"m",
"text",
"paint",
"get",
"flags",
"(",
")",
";"
] |
[
"sets",
"flags",
"on",
"the",
"paint",
"being",
"used",
"to",
"display",
"the",
"text",
"and",
"reflows",
"the",
"text",
"if",
"they",
"are",
"different",
"from",
"the",
"old",
"flags"
] | [
"if",
"(",
"m",
"text",
"paint",
"get",
"flags",
"(",
")",
"!",
"=",
"flags",
")",
"{",
"m",
"text",
"paint",
"set",
"flags",
"(",
"flags",
")",
";",
"if",
"(",
"m",
"layout",
"!",
"=",
"null",
")",
"{",
"null",
"layouts",
"(",
")",
";",
"req... |
[
"sets",
"whether",
"the",
"text",
"should",
"be",
"allowed",
"to",
"be",
"wider",
"than",
"the",
"view",
"is",
"if",
"false",
"it",
"will",
"be",
"wrapped",
"to",
"the",
"width",
"of",
"the",
"view"
] | [
"if",
"(",
"m",
"horizontally",
"scrolling",
"!",
"=",
"whether",
")",
"{",
"m",
"horizontally",
"scrolling",
"=",
"whether",
";",
"if",
"(",
"m",
"layout",
"!",
"=",
"null",
")",
"{",
"null",
"layouts",
"(",
")",
";",
"request",
"layout",
"(",
")",
... |
[
"returns",
"whether",
"the",
"text",
"is",
"allowed",
"to",
"be",
"wider",
"than",
"the",
"view",
"is",
"if",
"false",
"the",
"text",
"will",
"be",
"wrapped",
"to",
"the",
"width",
"of",
"the",
"view"
] | [
"return",
"m",
"horizontally",
"scrolling",
";"
] |
[
"sets",
"the",
"height",
"of",
"the",
"text",
"view",
"to",
"be",
"at",
"least",
"{",
"@",
"code",
"min",
"lines",
"}",
"tall",
"<",
"p",
">",
"this",
"value",
"is",
"used",
"for",
"height",
"calculation",
"if",
"layout",
"params",
"does",
"not",
"fo... | [
"m",
"minimum",
"=",
"min",
"lines",
";",
"m",
"min",
"mode",
"=",
"lines",
";",
"request",
"layout",
"(",
")",
";",
"invalidate",
"(",
")",
";"
] |
[
"returns",
"the",
"minimum",
"height",
"of",
"text",
"view",
"in",
"terms",
"of",
"number",
"of",
"lines",
"or",
"-",
"1",
"if",
"the",
"minimum",
"height",
"was",
"set",
"using",
"{",
"@",
"link",
"#",
"set",
"min",
"height",
"(",
"int",
")",
"}",
... | [
"return",
"m",
"min",
"mode",
"=",
"=",
"lines",
"?",
"m",
"minimum",
":",
"-",
"1",
";"
] |
[
"sets",
"the",
"height",
"of",
"the",
"text",
"view",
"to",
"be",
"at",
"least",
"{",
"@",
"code",
"min",
"pixels",
"}",
"tall",
"<",
"p",
">",
"this",
"value",
"is",
"used",
"for",
"height",
"calculation",
"if",
"layout",
"params",
"does",
"not",
"f... | [
"m",
"minimum",
"=",
"min",
"pixels",
";",
"m",
"min",
"mode",
"=",
"pixels",
";",
"request",
"layout",
"(",
")",
";",
"invalidate",
"(",
")",
";"
] |
[
"returns",
"the",
"minimum",
"height",
"of",
"text",
"view",
"in",
"terms",
"of",
"pixels",
"or",
"-",
"1",
"if",
"the",
"minimum",
"height",
"was",
"set",
"using",
"{",
"@",
"link",
"#",
"set",
"min",
"lines",
"(",
"int",
")",
"}",
"or",
"{",
"@",... | [
"return",
"m",
"min",
"mode",
"=",
"=",
"pixels",
"?",
"m",
"minimum",
":",
"-",
"1",
";"
] |
[
"sets",
"the",
"height",
"of",
"the",
"text",
"view",
"to",
"be",
"at",
"most",
"{",
"@",
"code",
"max",
"lines",
"}",
"tall",
"<",
"p",
">",
"this",
"value",
"is",
"used",
"for",
"height",
"calculation",
"if",
"layout",
"params",
"does",
"not",
"for... | [
"m",
"maximum",
"=",
"max",
"lines",
";",
"m",
"max",
"mode",
"=",
"lines",
";",
"request",
"layout",
"(",
")",
";",
"invalidate",
"(",
")",
";"
] |
[
"sets",
"the",
"height",
"of",
"the",
"text",
"view",
"to",
"be",
"at",
"most",
"{",
"@",
"code",
"max",
"pixels",
"}",
"tall",
"<",
"p",
">",
"this",
"value",
"is",
"used",
"for",
"height",
"calculation",
"if",
"layout",
"params",
"does",
"not",
"fo... | [
"m",
"maximum",
"=",
"max",
"pixels",
";",
"m",
"max",
"mode",
"=",
"pixels",
";",
"request",
"layout",
"(",
")",
";",
"invalidate",
"(",
")",
";"
] |
[
"returns",
"the",
"maximum",
"height",
"of",
"text",
"view",
"in",
"terms",
"of",
"pixels",
"or",
"-",
"1",
"if",
"the",
"maximum",
"height",
"was",
"set",
"using",
"{",
"@",
"link",
"#",
"set",
"max",
"lines",
"(",
"int",
")",
"}",
"or",
"{",
"@",... | [
"return",
"m",
"max",
"mode",
"=",
"=",
"pixels",
"?",
"m",
"maximum",
":",
"-",
"1",
";"
] |
[
"sets",
"the",
"height",
"of",
"the",
"text",
"view",
"to",
"be",
"exactly",
"{",
"@",
"code",
"lines",
"}",
"tall",
"<",
"p",
">",
"this",
"value",
"is",
"used",
"for",
"height",
"calculation",
"if",
"layout",
"params",
"does",
"not",
"force",
"text",... | [
"m",
"maximum",
"=",
"m",
"minimum",
"=",
"lines",
";",
"m",
"max",
"mode",
"=",
"m",
"min",
"mode",
"=",
"lines",
";",
"request",
"layout",
"(",
")",
";",
"invalidate",
"(",
")",
";"
] |
[
"sets",
"the",
"height",
"of",
"the",
"text",
"view",
"to",
"be",
"exactly",
"<",
"code",
">",
"pixels",
"<",
"/",
"code",
">",
"tall",
"<",
"p",
">",
"this",
"value",
"is",
"used",
"for",
"height",
"calculation",
"if",
"layout",
"params",
"does",
"n... | [
"m",
"maximum",
"=",
"m",
"minimum",
"=",
"pixels",
";",
"m",
"max",
"mode",
"=",
"m",
"min",
"mode",
"=",
"pixels",
";",
"request",
"layout",
"(",
")",
";",
"invalidate",
"(",
")",
";"
] |
[
"sets",
"the",
"width",
"of",
"the",
"text",
"view",
"to",
"be",
"at",
"least",
"{",
"@",
"code",
"min",
"ems",
"}",
"wide",
"<",
"p",
">",
"this",
"value",
"is",
"used",
"for",
"width",
"calculation",
"if",
"layout",
"params",
"does",
"not",
"force"... | [
"m",
"min",
"width",
"=",
"min",
"ems",
";",
"m",
"min",
"width",
"mode",
"=",
"ems",
";",
"request",
"layout",
"(",
")",
";",
"invalidate",
"(",
")",
";"
] |
[
"returns",
"the",
"minimum",
"width",
"of",
"text",
"view",
"in",
"terms",
"of",
"ems",
"or",
"-",
"1",
"if",
"the",
"minimum",
"width",
"was",
"set",
"using",
"{",
"@",
"link",
"#",
"set",
"min",
"width",
"(",
"int",
")",
"}",
"or",
"{",
"@",
"l... | [
"return",
"m",
"min",
"width",
"mode",
"=",
"=",
"ems",
"?",
"m",
"min",
"width",
":",
"-",
"1",
";"
] |
[
"sets",
"the",
"width",
"of",
"the",
"text",
"view",
"to",
"be",
"at",
"least",
"{",
"@",
"code",
"min",
"pixels",
"}",
"wide",
"<",
"p",
">",
"this",
"value",
"is",
"used",
"for",
"width",
"calculation",
"if",
"layout",
"params",
"does",
"not",
"for... | [
"m",
"min",
"width",
"=",
"min",
"pixels",
";",
"m",
"min",
"width",
"mode",
"=",
"pixels",
";",
"request",
"layout",
"(",
")",
";",
"invalidate",
"(",
")",
";"
] |
[
"returns",
"the",
"minimum",
"width",
"of",
"text",
"view",
"in",
"terms",
"of",
"pixels",
"or",
"-",
"1",
"if",
"the",
"minimum",
"width",
"was",
"set",
"using",
"{",
"@",
"link",
"#",
"set",
"min",
"ems",
"(",
"int",
")",
"}",
"or",
"{",
"@",
"... | [
"return",
"m",
"min",
"width",
"mode",
"=",
"=",
"pixels",
"?",
"m",
"min",
"width",
":",
"-",
"1",
";"
] |
[
"sets",
"the",
"width",
"of",
"the",
"text",
"view",
"to",
"be",
"at",
"most",
"{",
"@",
"code",
"max",
"ems",
"}",
"wide",
"<",
"p",
">",
"this",
"value",
"is",
"used",
"for",
"width",
"calculation",
"if",
"layout",
"params",
"does",
"not",
"force",... | [
"m",
"max",
"width",
"=",
"max",
"ems",
";",
"m",
"max",
"width",
"mode",
"=",
"ems",
";",
"request",
"layout",
"(",
")",
";",
"invalidate",
"(",
")",
";"
] |
[
"returns",
"the",
"maximum",
"width",
"of",
"text",
"view",
"in",
"terms",
"of",
"ems",
"or",
"-",
"1",
"if",
"the",
"maximum",
"width",
"was",
"set",
"using",
"{",
"@",
"link",
"#",
"set",
"max",
"width",
"(",
"int",
")",
"}",
"or",
"{",
"@",
"l... | [
"return",
"m",
"max",
"width",
"mode",
"=",
"=",
"ems",
"?",
"m",
"max",
"width",
":",
"-",
"1",
";"
] |
[
"sets",
"the",
"width",
"of",
"the",
"text",
"view",
"to",
"be",
"at",
"most",
"{",
"@",
"code",
"max",
"pixels",
"}",
"wide",
"<",
"p",
">",
"this",
"value",
"is",
"used",
"for",
"width",
"calculation",
"if",
"layout",
"params",
"does",
"not",
"forc... | [
"m",
"max",
"width",
"=",
"max",
"pixels",
";",
"m",
"max",
"width",
"mode",
"=",
"pixels",
";",
"request",
"layout",
"(",
")",
";",
"invalidate",
"(",
")",
";"
] |
[
"returns",
"the",
"maximum",
"width",
"of",
"text",
"view",
"in",
"terms",
"of",
"pixels",
"or",
"-",
"1",
"if",
"the",
"maximum",
"width",
"was",
"set",
"using",
"{",
"@",
"link",
"#",
"set",
"max",
"ems",
"(",
"int",
")",
"}",
"or",
"{",
"@",
"... | [
"return",
"m",
"max",
"width",
"mode",
"=",
"=",
"pixels",
"?",
"m",
"max",
"width",
":",
"-",
"1",
";"
] |
[
"sets",
"the",
"width",
"of",
"the",
"text",
"view",
"to",
"be",
"exactly",
"{",
"@",
"code",
"ems",
"}",
"wide"
] | [
"m",
"max",
"width",
"=",
"m",
"min",
"width",
"=",
"ems",
";",
"m",
"max",
"width",
"mode",
"=",
"m",
"min",
"width",
"mode",
"=",
"ems",
";",
"request",
"layout",
"(",
")",
";",
"invalidate",
"(",
")",
";"
] |
[
"sets",
"the",
"width",
"of",
"the",
"text",
"view",
"to",
"be",
"exactly",
"{",
"@",
"code",
"pixels",
"}",
"wide",
"<",
"p",
">",
"this",
"value",
"is",
"used",
"for",
"width",
"calculation",
"if",
"layout",
"params",
"does",
"not",
"force",
"text",
... | [
"m",
"max",
"width",
"=",
"m",
"min",
"width",
"=",
"pixels",
";",
"m",
"max",
"width",
"mode",
"=",
"m",
"min",
"width",
"mode",
"=",
"pixels",
";",
"request",
"layout",
"(",
")",
";",
"invalidate",
"(",
")",
";"
] |
[
"sets",
"line",
"spacing",
"for",
"this",
"text",
"view",
"each",
"line",
"other",
"than",
"the",
"last",
"line",
"will",
"have",
"its",
"height",
"multiplied",
"by",
"{",
"@",
"code",
"mult",
"}",
"and",
"have",
"{",
"@",
"code",
"add",
"}",
"added",
... | [
"if",
"(",
"m",
"spacing",
"add",
"!",
"=",
"add",
"|",
"|",
"m",
"spacing",
"mult",
"!",
"=",
"mult",
")",
"{",
"m",
"spacing",
"add",
"=",
"add",
";",
"m",
"spacing",
"mult",
"=",
"mult",
";",
"if",
"(",
"m",
"layout",
"!",
"=",
"null",
")"... |
[
"gets",
"the",
"line",
"spacing",
"multiplier"
] | [
"return",
"m",
"spacing",
"mult",
";"
] |
[
"gets",
"the",
"line",
"spacing",
"extra",
"space"
] | [
"return",
"m",
"spacing",
"add",
";"
] |
[
"convenience",
"method",
"to",
"append",
"the",
"specified",
"text",
"to",
"the",
"text",
"view",
"s",
"display",
"buffer",
"upgrading",
"it",
"to",
"{",
"@",
"link",
"android",
"widget",
"text",
"view",
"buffer",
"type",
"#",
"editable",
"}",
"if",
"it",
... | [
"append",
"(",
"text",
",",
"0",
",",
"text",
"length",
"(",
")",
")",
";"
] |
[
"control",
"whether",
"this",
"text",
"view",
"saves",
"its",
"entire",
"text",
"contents",
"when",
"freezing",
"to",
"an",
"icicle",
"in",
"addition",
"to",
"dynamic",
"state",
"such",
"as",
"cursor",
"position",
"by",
"default",
"this",
"is",
"false",
"not... | [
"m",
"freezes",
"text",
"=",
"freezes",
"text",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.