当前位置: 首页>>代码示例>>Java>>正文


Java RatingBar.setVisibility方法代码示例

本文整理汇总了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);
    }
}
 
开发者ID:fengdongfei,项目名称:CXJPadProject,代码行数:35,代码来源:DCRCActivity.java


注:本文中的android.widget.RatingBar.setVisibility方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。