Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- buildTypes {
- release {
- minifyEnabled true
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- debug {
- debuggable true
- minifyEnabled false
- }
- }
- class MainActivity : AppCompatActivity() {
- override fun onCreate(savedInstanceState: Bundle?) {
- super.onCreate(savedInstanceState)
- setContentView(R.layout.activity_main)
- val pipsTextView = findViewById<PipsTextView>(R.id.pips_text_view)
- pipsTextView.setText("1123.23444", 5, 2, 3, -1)
- }
- }
- override fun setText(value: String, pipSize: Int, prePipSize: Int, floatingPipSize: Int, direction: Int) {
- this.pipSize = pipSize
- this.prePipSize = prePipSize
- this.floatingPipSize = floatingPipSize
- this.direction = if (direction < 0) DOWN else if (direction == 0) NEUTRAL else UP
- preparePipValues(value)
- invalidate()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement