Package com.android.aapt
Interface Resources.StyledString.SpanOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Resources.StyledString.Span,Resources.StyledString.Span.Builder
- Enclosing class:
- Resources.StyledString
public static interface Resources.StyledString.SpanOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionintThe first character position this span applies to, in UTF-16 offset.intThe last character position this span applies to, in UTF-16 offset.getTag()The name of the tag, and its attributes, encoded as follows: tag_name;attr1=value1;attr2=value2;[...]com.google.protobuf.ByteStringThe name of the tag, and its attributes, encoded as follows: tag_name;attr1=value1;attr2=value2;[...]Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getTag
String getTag()The name of the tag, and its attributes, encoded as follows: tag_name;attr1=value1;attr2=value2;[...]
string tag = 1;- Returns:
- The tag.
-
getTagBytes
com.google.protobuf.ByteString getTagBytes()The name of the tag, and its attributes, encoded as follows: tag_name;attr1=value1;attr2=value2;[...]
string tag = 1;- Returns:
- The bytes for tag.
-
getFirstChar
int getFirstChar()The first character position this span applies to, in UTF-16 offset.
uint32 first_char = 2;- Returns:
- The firstChar.
-
getLastChar
int getLastChar()The last character position this span applies to, in UTF-16 offset.
uint32 last_char = 3;- Returns:
- The lastChar.
-