Daily sorting of Android (3) --- opening a browser and a soft keyboard
Android: textAppearance
Text appearance settings and actual display in the Android system
Android: textAppearance
Set the text appearance in the xml layout:
For example, "android: textAppearance ="? Android: attr/textAppearanceLargeInverse "refers to the appearance of the system,
? Indicates whether the system has this appearance. Otherwise, the default appearance is used.
The configurable values are as follows:
TextAppearanceButton, textAppearanceInverse, textAppearanceLarge,
TextAppearanceLargeInverse, textAppearanceMedium, textAppearanceSmallInverse, textAppearanceMediumInverse,
TextAppearanceSmall.
Android determines whether a soft keyboard pops up
// Determine whether to hide the soft keyboard
If (getWindow (). getAttributes (). softInputMode = WindowManager. LayoutParams. SOFT_INPUT_STATE_UNSPECIFIED)
{
// Hide the keyboard
GetWindow (). setSoftInputMode (WindowManager. LayoutParams. SOFT_INPUT_STATE_HIDDEN );
}