示例#1
0
  @Override
  protected void initViews() {
    mRootView = getInflater().inflate(R.layout.layout_locker_mode_ring, null, false);

    indicator = (EnterDigitalIndicator) mRootView.findViewById(R.id.edi_indicator);
    rpv = (RingPasswordView) mRootView.findViewById(R.id.rpv_password_view);
    rpv.setOnClickListener(this);
  }
示例#2
0
  public LockerModeRing(Context context) {
    super(context);
    config = ConfigManager.getInstance(context);

    RelativeLayout.LayoutParams params =
        new RelativeLayout.LayoutParams(config.getScreenWidth(), config.getScreenWidth());
    params.addRule(RelativeLayout.BELOW, R.id.edi_indicator);
    rpv.setLayoutParams(params);
  }