本文整理匯總了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);
}
}