MaterialButton

Last Updated On 2021-07-16

Version 1MinSDK 7Tutorial Video

New Material design buttom. Helps to create button with material design provided by google


Properties

You can set the below properties in the UI part of the builder.

  • BackgroundColor - it's a color value which is set to &h00000000 by default.
  • Bordered - it's a boolean value which is set to false by default.
  • CornerRadius - it's a float value which is set to 5 by default.
  • CustomFontTypeFace - it's a asset value which is set to blank by default.
  • Enabled - it's a boolean value which is set to true by default.
  • FontBold - it's a boolean value which is set to false by default.
  • FontTypeface - it's a typeface value which is set to 0 by default.
  • HeihMargin - it's a four value which is set to 0,0,0,0 by default.
  • HeihPadding - it's a four value which is set to 0,0,0,0 by default.
  • Icon - it's a text value which is set to blank by default.
  • IconTint - it's a color value which is set to &h00000000 by default.
  • MarginBottom - it's a non negative float value which is set to 0 by default.
  • MarginLeft - it's a non negative float value which is set to 0 by default.
  • MarginRight - it's a non negative float value which is set to 0 by default.
  • MarginTop - it's a non negative float value which is set to 0 by default.
  • PaddingBottom - it's a non negative float value which is set to 0 by default.
  • PaddingLeft - it's a non negative float value which is set to 0 by default.
  • PaddingRight - it's a non negative float value which is set to 0 by default.
  • PaddingTop - it's a non negative float value which is set to 0 by default.
  • RippleColor - it's a color value which is set to &h00ffffff by default.
  • Text - it's a string value which is set to blank by default.
  • TextColor - it's a color value which is set to &hff000000 by default.
  • TextSize - it's a float value which is set to 14.0 by default.
  • Visible - it's a visibility value which is set to true by default.

Block Properties

You can set the below blocks properties in the blocks section of the builder.

CornerRadius

Corner radius


CustomFontTypeFace

Sets the custom font


Enabled

Property for Enabled


Height

Specifies the vertical height of the NiotronMaterialButton, measured in pixels.


HeightPercent

Specifies the vertical height of the NiotronMaterialButton as a percentage of the height of the Screen.


Icon

Property for Icon


MarginBottom

Property for MarginBottom


MarginLeft

Property for MarginLeft


MarginRight

Property for MarginRight


MarginTop

Property for MarginTop


PaddingBottom

Property for PaddingBottom


PaddingLeft

Property for PaddingLeft


PaddingRight

Property for PaddingRight


PaddingTop

Property for PaddingTop


Text

Sets the text


TextColor

Set text color of the button


TextSize

Sets the text size


Visible

Specifies whether the NiotronMaterialButton should be visible on the screen. Value is true if the NiotronMaterialButton is showing and false if hidden.


Width

Specifies the horizontal width of the NiotronMaterialButton, measured in pixels.


WidthPercent

Specifies the horizontal width of the NiotronMaterialButton as a percentage of the width of the Screen.



Events

You can set the below event blocks in the blocks section of the builder.

Click

Raises when button is clicked

LongClick

Raises when button is long clicked