Java Code Examples for android.widget.RatingBar.setVisibility()

The following are Jave code examples for showing how to use setVisibility() of the android.widget.RatingBar class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: CXJPadProject   File: DCRCActivity.java   View Source Code Vote up 5 votes
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);
    }
}