具體代碼是:spa
rb_zuotian.setText("第一行"+"\n"+"第二行");
rb_jintian.setText(DateUtil.getmoutianMD(0)+"\n"+getString(R.string.qianggoujinxingzhong));
rb_mingtian.setText(DateUtil.getmoutianMD(1)+"\n"+getString(R.string.jijiangkaiqiang));
rb_houtian.setText(DateUtil.getmoutianMD(2)+"\n"+getString(R.string.jijiangkaiqiang));
只是賦值的時候加上「\n」換行符號便可。get