This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import android.content.Context; | |
| import android.util.AttributeSet; | |
| import android.widget.TextView; | |
| import com.billion.grow.logger.Log; | |
| import java.text.DecimalFormat; | |
| import java.text.NumberFormat; | |
| import java.util.Locale; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Created by john.francis on 24/05/16. | |
| */ | |
| public class PrefKeys { | |
| public static final String USER_INCOME = "USER_INCOME"; | |
| public static final String USER_MARITAL_STATUS = "USER_MARITAL_STATUS"; | |
| public static final String USER_SALARY_FLOAT= "USER_SALARY_FLOAT"; | |
| public static final String USER_SALARY_LONG= "USER_SALARY_LONG"; | |
| public static final String USER_AGE= "USER_AGE"; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Sample = React.createClass({ | |
| getInitialState() { | |
| return { message: 'Hello world' }; | |
| }, | |
| print() { | |
| console.log(this.state.message); | |
| }, | |
| render() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Sample1 = React.createClass({ | |
| print(message) { | |
| console.log("Hello " + message); | |
| }, | |
| render() { | |
| return ( | |
| <input type="button" value="Print" onClick={this.print("Mars")} /> | |
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Sample = React.createClass({ | |
| getInitialState() { | |
| return { | |
| message: "Hello World" | |
| } | |
| }, | |
| print() { | |
| console.log(this.state.message); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Sample = React.createClass({ | |
| printMars(message) { | |
| console.log("Hello " + message); | |
| }, | |
| render() { | |
| return ( | |
| <div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class App extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = { message: 'Hello World' }; | |
| } | |
| render() { | |
| return <div> | |
| <p> Binding Revealed</p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class App extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = { message: 'Hello World' }; | |
| this.print = this.print.bind(this); | |
| } | |
| render() { | |
| return <div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class App extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = { message: 'Hello ' }; | |
| this.print= this.print.bind(this); | |
| } | |
| render() { | |
| return <div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Parent extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = { message: 'I am parent ' }; | |
| this.printParent = this.printParent.bind(this); | |
| } | |
| render() { | |
| return <div> |
OlderNewer