我试图在axes.text中创建一个乳胶表达式,而且我很难告诉python如何将{}与乳胶表达式从{}与python格式分开。
我最终在一个中使用latex格式并在另一个中使用python将两个表达式分开。我想知道是否有更好的,更直接的"这样做的方法。
下面是代码:
Button button = (Button) findViewById(R.id.score);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
// Do your other functions //
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
Intent i = new Intent(ActivityQuiz.this, MainActivity.class);
startActivity(i);
finish();
}
}, 5000); // Set your time here //
}
});