1
0
Fork 0
master
xiaoyu 2020-11-12 12:28:14 +08:00
parent dc04592f6c
commit 2c6986a7ce
3 changed files with 27 additions and 7 deletions

View File

@ -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");

View File

@ -9,16 +9,27 @@
tools:showIn="@layout/activity_main">
<Button
android:id="@+id/btnDemo"
android:id="@+id/btnCharts"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/fin_clip_demo_applet"
app:layout_constraintBottom_toTopOf="@+id/btnProfile"
android:text="@string/fin_clip_charts_applet"
app:layout_constraintBottom_toTopOf="@+id/btnDemo"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_chainStyle="packed" />
<Button
android:id="@+id/btnDemo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:text="@string/fin_clip_demo_applet"
app:layout_constraintBottom_toTopOf="@+id/btnProfile"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/btnCharts" />
<Button
android:id="@+id/btnProfile"
android:layout_width="wrap_content"

View File

@ -1,5 +1,6 @@
<resources>
<string name="app_name">mopdemo</string>
<string name="fin_clip_charts_applet">绘图小程序</string>
<string name="fin_clip_demo_applet">官方小程序</string>
<string name="fin_clip_profile_applet">智能对账单</string>
</resources>