@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); }
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); }