Пример #1
0
 @Override
 public void onActivityCreated(Bundle savedInstanceState) {
   super.onActivityCreated(savedInstanceState);
   mWaveView = ((GlowPadView) mActivity.findViewById(R.id.lock_target));
   mWaveView.setOnTriggerListener(this);
   initializeView(
       Settings.System.getString(
           mActivity.getContentResolver(), Settings.System.LOCKSCREEN_TARGETS));
 }
Пример #2
0
  @Override
  protected void onFinishInflate() {
    super.onFinishInflate();
    mGlowPadView = (GlowPadView) findViewById(R.id.glow_pad_view);
    mGlowPadView.setOnTriggerListener(mOnTriggerListener);
    updateTargets();

    mSecurityMessageDisplay = new KeyguardMessageArea.Helper(this);
    View bouncerFrameView = findViewById(R.id.keyguard_selector_view_frame);
    mBouncerFrame = bouncerFrameView.getBackground();
  }
  @Override
  protected void onFinishInflate() {
    super.onFinishInflate();
    mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    mSearchTargetsContainer = findViewById(R.id.search_panel_container);
    mStatusBarTouchProxy = (StatusBarTouchProxy) findViewById(R.id.status_bar_touch_proxy);
    // TODO: fetch views
    mGlowPadView = (GlowPadView) findViewById(R.id.glow_pad_view);
    mGlowPadView.setOnTriggerListener(mGlowPadViewListener);

    setDrawables();
  }