Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. buildTypes {
  2. release {
  3. minifyEnabled true
  4. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  5. }
  6.  
  7. debug {
  8. debuggable true
  9. minifyEnabled false
  10. }
  11. }
  12.  
  13. class MainActivity : AppCompatActivity() {
  14.  
  15. override fun onCreate(savedInstanceState: Bundle?) {
  16. super.onCreate(savedInstanceState)
  17. setContentView(R.layout.activity_main)
  18.  
  19. val pipsTextView = findViewById<PipsTextView>(R.id.pips_text_view)
  20. pipsTextView.setText("1123.23444", 5, 2, 3, -1)
  21. }
  22. }
  23.  
  24. override fun setText(value: String, pipSize: Int, prePipSize: Int, floatingPipSize: Int, direction: Int) {
  25. this.pipSize = pipSize
  26. this.prePipSize = prePipSize
  27. this.floatingPipSize = floatingPipSize
  28. this.direction = if (direction < 0) DOWN else if (direction == 0) NEUTRAL else UP
  29. preparePipValues(value)
  30. invalidate()
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement