1.博客中的代码显示

  @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.pay_main);
        Intent it=getIntent();
        mLogUtil.e("支付宝接受到的pay:"+it.getStringExtra("pay"));
        pay=new Gson().fromJson(it.getStringExtra("pay"),Pay.class);
        tradeName=pay.getTradeName();
        amount=pay.getAmount();
        order_sn= (TextView) findViewById(R.id.order_sn);
        product_subject= (TextView) findViewById(R.id.product_subject);
        product_price= (TextView) findViewById(R.id.product_price);
        order_sn.setText(System.currentTimeMillis()+"");
        product_subject.setText(tradeName);
        product_price.setText(amount);
        pay(product_price);
        finish();
 
    }

1.代码语言---》Java---》插入

<!DOCTYPE html>
<html>
 <head>
  <meta charset="" />
  <title></title>
 </head>
 <body bgcolor="#0000ff">
  
 </body>
</html>

2.代码语言---》Html---》插入

你可能感兴趣的:(代码显示)