Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use implicit convert about OnClickListener

  • Loading branch information...
commit 636bea1ab14ef846ce1c68ff3813818d1dcad27b 1 parent b7c04e4
@napthats authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/main/scala/MainActivity.scala
View
7 src/main/scala/MainActivity.scala
@@ -4,6 +4,7 @@ import _root_.android.app.Activity
import _root_.android.os.Bundle
import _root_.android.widget.Toast
import _root_.android.view.View
+import _root_.android.os.Environment
import com.napthats.android.ListenerUtils._
@@ -21,15 +22,15 @@ class MainActivity extends Activity with TypedActivity {
// }
// }
// )
- findView(TR.test).setOnClickListener(function2ViewOnClickListener((_: View) => {
+ findView(TR.test).setOnClickListener((_: View) => {
Toast.makeText(this, findView(TR.textview).getText(), Toast.LENGTH_SHORT).show()
- }))
+ })
}
}
object EnexUtil {
- val ENEX_PREFIX_PART_ONE =
+ val ENEX_PREFIX_PART_ONE =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?><!DOCTYPE en-export SYSTEM \"http://xml.evernote.com/pub/evernote-export.dtd\">" +
"<en-export><note><title>"
Please sign in to comment.
Something went wrong with that request. Please try again.