本文整理汇总了Java中android.widget.RatingBar.setVisibility方法的典型用法代码示例。如果您正苦于以下问题:Java RatingBar.setVisibility方法的具体用法?Java RatingBar.setVisibility怎么用?Java RatingBar.setVisibility使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.widget.RatingBar
的用法示例。
在下文中一共展示了RatingBar.setVisibility方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initView
import android.widget.RatingBar; //导入方法依赖的package包/类
private void initView() {
sobot_out_side_id = (RelativeLayout) findViewById(getResId("sobot_out_side_id"));
gv_demo = (GridView) findViewById(getResId("gv_demo"));
sobot_ratingBar = (RatingBar) findViewById(getResId("sobot_ratingBar"));
hideLayout = (LinearLayout) findViewById(getResId("sobot_hide_layout"));
btnCancle = (Button) findViewById(getResId("sobot_negativeButton"));
btnSubmit = (Button) findViewById(getResId("sobot_btn_submit"));
sobot_robot = (RelativeLayout) findViewById(getResId("sobot_robot"));
sobot_btn_ok_robot = (RadioButton) findViewById(getResId("sobot_btn_ok_robot"));
sobot_btn_no_robot = (RadioButton) findViewById(getResId("sobot_btn_no_robot"));
sobot_add_content = (EditText) findViewById(getResId("sobot_add_content"));
sobot_close_now = (Button) findViewById(getResId("sobot_close_now"));
sobot_center_title = (TextView) findViewById(getResId("sobot_center_title"));
sobot_center_title_tip = (TextView) findViewById(getResId("sobot_center_title_tip"));
sobot_button_style = (LinearLayout) findViewById(getResId("sobot_button_style"));
if (Integer.parseInt(current_client_model) == ZhiChiConstant.client_model_robot) {
sobot_center_title.setText(getResString("sobot_question"));
sobot_ratingBar.setVisibility(View.GONE);
} else if (Integer.parseInt(current_client_model) == ZhiChiConstant.client_model_customService) {
sobot_center_title.setText(getResString("sobot_dcrc"));
sobot_robot.setVisibility(View.GONE);
//显示提醒
sobot_center_title_tip.setVisibility(mEvaluationCompletedExit?View.VISIBLE:View.GONE);
}
if (isShowFinish) {
sobot_button_style.setVisibility(View.VISIBLE);
} else {
sobot_button_style.setVisibility(View.GONE);
}
}