From 2c6986a7ce777733590a500ae90dcbe866e08279 Mon Sep 17 00:00:00 2001 From: xiaoyu Date: Thu, 12 Nov 2020 12:28:14 +0800 Subject: [PATCH] update --- .../com/finogeeks/mop/demo/MainActivity.java | 16 ++++++++++++---- app/src/main/res/layout/content_main.xml | 17 ++++++++++++++--- app/src/main/res/values/strings.xml | 1 + 3 files changed, 27 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/com/finogeeks/mop/demo/MainActivity.java b/app/src/main/java/com/finogeeks/mop/demo/MainActivity.java index 7b04ffc..e9c782b 100644 --- a/app/src/main/java/com/finogeeks/mop/demo/MainActivity.java +++ b/app/src/main/java/com/finogeeks/mop/demo/MainActivity.java @@ -21,16 +21,24 @@ public class MainActivity extends AppCompatActivity { Toolbar toolbar = findViewById(R.id.toolbar); setSupportActionBar(toolbar); - Button demoButton = findViewById(R.id.btnDemo); - demoButton.setOnClickListener(new View.OnClickListener() { + Button btnCharts = findViewById(R.id.btnCharts); + btnCharts.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + FinAppClient.INSTANCE.getAppletApiManager().startApplet(MainActivity.this, "5facb3a52dcbff00017469bd"); + } + }); + + Button btnDemo = findViewById(R.id.btnDemo); + btnDemo.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { FinAppClient.INSTANCE.getAppletApiManager().startApplet(MainActivity.this, "5fa214a29a6a7900019b5cc1"); } }); - Button profileButton = findViewById(R.id.btnProfile); - profileButton.setOnClickListener(new View.OnClickListener() { + Button btnProfile = findViewById(R.id.btnProfile); + btnProfile.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { FinAppClient.INSTANCE.getAppletApiManager().startApplet(MainActivity.this, "5fa215459a6a7900019b5cc3"); diff --git a/app/src/main/res/layout/content_main.xml b/app/src/main/res/layout/content_main.xml index 241487d..1a90007 100644 --- a/app/src/main/res/layout/content_main.xml +++ b/app/src/main/res/layout/content_main.xml @@ -9,16 +9,27 @@ tools:showIn="@layout/activity_main">