java.lang.Object | ||
↳ | AppCompatEditText | |
↳ | com.pdftron.pdf.widget.AutoScrollEditText |
An EditText that can auto scroll
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
interface | AutoScrollEditText.AutoScrollEditTextListener | Listener interface for key up event | |||||||||
interface | AutoScrollEditText.AutoScrollEditTextSpacingListener |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AutoScrollEditText(Context context) | |||||||||||
AutoScrollEditText(Context context, AttributeSet attrs) | |||||||||||
AutoScrollEditText(Context context, AttributeSet attrs, int defStyleAttr) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
addLetterSpacingHandle()
Must be called after
setAnnotStyle(PDFViewCtrl, AnnotStyle)
with a valid AnnotStyle
| ||||||||||
Rect | getBoundingRect() | ||||||||||
InputFilter[] |
getDefaultInputFilters()
Gets the default input filters used internally
| ||||||||||
boolean | getDynamicLetterSpacingEnabled() | ||||||||||
boolean | getIsRTL() | ||||||||||
boolean | isSuggestionsEnabled() | ||||||||||
InputConnection | onCreateInputConnection(EditorInfo editorInfo) | ||||||||||
boolean | onKeyPreIme(int keyCode, KeyEvent event) | ||||||||||
boolean | onKeyUp(int keyCode, KeyEvent event) | ||||||||||
boolean | onTouchEvent(MotionEvent event) | ||||||||||
void | removeSpacingHandle() | ||||||||||
void | setAnnotStyle(AnnotViewImpl annotViewImpl) | ||||||||||
void | setAnnotStyle(PDFViewCtrl pdfViewCtrl, AnnotStyle annotStyle) | ||||||||||
void |
setAutoScrollEditTextListener(AutoScrollEditText.AutoScrollEditTextListener listener)
Sets auto scroll edit text listener
| ||||||||||
void | setAutoScrollEditTextSpacingListener(AutoScrollEditText.AutoScrollEditTextSpacingListener listener) | ||||||||||
void | setBackgroundColor(int color) | ||||||||||
void |
setCalculateAlignment(boolean calculateAlignment)
Sets whether the alignment should be calculated manually.
| ||||||||||
void |
setDefaultRect(Rect defaultRect)
Sets default rect for the FreeText annotation, see
putDefaultRect(FreeText, Rect) | ||||||||||
void | setDrawBackground(boolean drawBackground) | ||||||||||
void |
setHorizontalTextAlignment(int gravity)
Sets the horizontal text alignment without changing the gravity.
| ||||||||||
void | setSize(float width, float height) | ||||||||||
void | setUseAutoResize(boolean useAutoResize) | ||||||||||
void |
setVerticalTextAlignment(int gravity)
Sets the vertical text alignment without changing the gravity.
| ||||||||||
void | setZoom(double zoom) | ||||||||||
void | updateBBox() | ||||||||||
void | updateColor(int color) | ||||||||||
void | updateFillColor(int color) | ||||||||||
void | updateFont(FontResource font) | ||||||||||
void | updateOpacity(float opacity) | ||||||||||
void | updateTextColor(int textColor) | ||||||||||
void | updateTextSize(float textSize) | ||||||||||
void | updateThickness(float thickness) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Must be called after setAnnotStyle(PDFViewCtrl, AnnotStyle)
with a valid AnnotStyle
Gets the default input filters used internally
Sets auto scroll edit text listener
listener | The listener |
---|
Sets whether the alignment should be calculated manually. If set to true, then a dummy text view will be used to calculate the bounding box.
Sets default rect for the FreeText annotation, see putDefaultRect(FreeText, Rect)
defaultRect | the default rect in page space |
---|
Sets the horizontal text alignment without changing the gravity. The gravity will be set the next time the user starts typing.
Sets the vertical text alignment without changing the gravity. The gravity will be set the next time the user starts typing.