Calculator_Button_5

open class Calculator_Button_5 : ICalculator_Button

A Button to control a NumberPickerDialog

╔══════════════════╗
║┌────────────────┐║paddingTop
║│╔═════╗   ╔════╗│║topMargin
║│║Shift║   ║2ndF║│║
║│╚═════╝   ╚════╝│║bottomMargin
╟┼────────────────┼╢Split_1
║│╔══════════════╗│║topMargin
║│║    Button    ║│║
║│╚══════════════╝│║bottomMargin
╟┼────────────────┼╢Split_2
║│╔═══╗    ╔═════╗│║topMargin
║│║Hex║    ║Alpha║│║
║│╚═══╝    ╚═════╝│║bottomMargin
║└────────────────┘║paddingBottom
╚══════════════════╝

Author

"Martin Krischik" «krischik@users.sourceforge.net»

Since

1.0

Constructors

Link copied to clipboard
constructor(context: Context)
Simple constructor to use when creating a view from code.
constructor(context: Context, attrs: AttributeSet)
Constructor that is called when inflating a view from XML.
constructor(context: Context, attrs: AttributeSet, defStyle: Int)
Perform inflation from XML and apply a class-specific base style.

Properties

Link copied to clipboard
open var Alpha: TextView
Alpha text
Link copied to clipboard
private val Alpha_Background: Int
background drawable for alpha text
Link copied to clipboard
private val Alpha_Color: Int
text colour for alpha text
Link copied to clipboard
protected open var Alpha_Description: String
Link copied to clipboard
private open var Alpha_Height: Int
alpha height.
Link copied to clipboard
private val Alpha_Text: String
string to display for alpha text
Link copied to clipboard
private open var Alpha_Width: Int
alpha width.
Link copied to clipboard
open var Button: Button
button
Link copied to clipboard
private val Button_Background: Int
Background for button
Link copied to clipboard
private val Button_Bold: Boolean
Button text should be displayed in bold
Link copied to clipboard
private open var Button_Height: Int
button height.
Link copied to clipboard
Make buttons inscription smaller when large scale is active.
Link copied to clipboard
private val Button_Text: String
text to display on button
Link copied to clipboard
private val Button_Text_Color: Int
Text colour for button
Link copied to clipboard
private val Button_Text_Size: Float
text size for button
Link copied to clipboard
private open var Button_Width: Int
button width.
Link copied to clipboard
private open var Default_Alpha_Color: Int
default text colour for the alpha text
Link copied to clipboard
private open var Default_Button_Bold: Boolean
default text colour for the 2ndF text
Link copied to clipboard
private open var Default_Button_Margin: Float
Margin aorund the button
Link copied to clipboard
private open var Default_Hex_Color: Int
default text colour for the hex text
Link copied to clipboard
default values have been initialised.
Link copied to clipboard
private open var Default_Large_Scale: Float
Make buttons inscription smaller when large scale is active.
Link copied to clipboard
private open var Default_SecondF_Color: Int
default text colour for the 2ndF text
Link copied to clipboard
private open var Default_Shift_Color: Int
default text colour for the shift text
Link copied to clipboard
private open var Default_Textsize: Float
default button text size
Link copied to clipboard
open var Hex: TextView
hex text
Link copied to clipboard
private val Hex_Background: Int
background drawable for hey text
Link copied to clipboard
private val Hex_Color: Int
text colour for hex text
Link copied to clipboard
private open var Hex_Height: Int
hex height.
Link copied to clipboard
private val Hex_Text: String
string to display for text text
Link copied to clipboard
private open var Hex_Width: Int
hex width.
Link copied to clipboard
protected open var Main_Description: String
Link copied to clipboard
private val No_Top_Row: Boolean
don't display top row (used in Shift, 2ndF, APLHA und MODE key)
Link copied to clipboard
open var SecondF: TextView
2ndF text
Link copied to clipboard
private val SecondF_Background: Int
background drawable for 2ndF text
Link copied to clipboard
private val SecondF_Color: Int
text colour for 2ndF text
Link copied to clipboard
private open var SecondF_Height: Int
2ndF height.
Link copied to clipboard
private val SecondF_Text: String
string to display for 2ndF text
Link copied to clipboard
private open var SecondF_Width: Int
2ndF width.
Link copied to clipboard
open var Shift: TextView
shift text text
Link copied to clipboard
private val Shift_Background: Int
background drawable for shift text
Link copied to clipboard
private val Shift_Color: Int
text colour for shift text
Link copied to clipboard
protected open var Shift_Description: String
Link copied to clipboard
private open var Shift_Height: Int
shift height.
Link copied to clipboard
private val Shift_Text: String
string to display for shift text
Link copied to clipboard
private open var Shift_Width: Int
button width.
Link copied to clipboard
private val TAG: String
TAG as class name for logging
Link copied to clipboard
Text size for SHIFT, INV, 2ndF etc.

Functions

Link copied to clipboard
protected open fun After_Views()
update the text displayed on the button.
Link copied to clipboard
protected open fun clone(): Any
Link copied to clipboard
open fun equals(obj: Any): Boolean
Link copied to clipboard
protected open fun finalize()
Link copied to clipboard
protected open fun generateDefaultLayoutParams(): LayoutParams
Returns a set of default layout parameters.
Link copied to clipboard
protected open fun generateLayoutParams(p: LayoutParams): LayoutParams
Returns a safe set of layout parameters based on the supplied layout params.
open fun generateLayoutParams(attrs: AttributeSet): LayoutParams
Returns a new set of layout parameters based on the supplied attributes set.
Link copied to clipboard
open fun getButton(): Button
get the actual button
Link copied to clipboard
fun getClass(): Class<out Any>
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
private open fun Init_Defaults(context: Context)
Initialise default values
Link copied to clipboard
fun notify()
Link copied to clipboard
fun notifyAll()
Link copied to clipboard
protected open fun onLayout(changed: Boolean, left: Int, top: Int, right: Int, bottom: Int)
Called from layout when this view should assign a size and position to each of its children.
Link copied to clipboard
protected open fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int)
Measure the view and its content to determine the measured width and the measured height.
Link copied to clipboard
open fun Shift(): TextView
shift text view — used for unit testing
Link copied to clipboard
open fun switchDisplay(Large_Screen: Boolean)
switch display for button
Link copied to clipboard
open fun toString(): String
Link copied to clipboard
fun wait()