@Override protected void onListItemClick(ListView l, View v, int position, long id) { ((SpeechListAdapter)getListAdapter()).toggle(position); }
public void startActionMode() { if (mActionMode == null) { ActionMode.Callback cb = new MyActionModeCallback(); mActionMode = startActionMode(cb); } }
@Override protected void onLayout(boolean changed, int l, int t, int r, int b) { spoofLayout(findViewById(R.id.secure_view_overlay_description), mActivity.findViewById(R.id.secure_view_description)); spoofLayout(findViewById(R.id.secure_view_overlay_button1), mActivity.findViewById(R.id.secure_view_unsecure_button)); spoofLayout(findViewById(R.id.secure_view_overlay_button2), mActivity.findViewById(R.id.secure_view_builtin_secure_button)); spoofLayout(findViewById(R.id.secure_view_overlay_button3), mActivity.findViewById(R.id.secure_view_custom_secure_button)); }
public void accelerate(float tau, float maxThrust, float maxSpeed) { final float thrust = mHeadingMagnitude * maxThrust; mVelocityX += polarX(thrust); mVelocityY += polarY(thrust); final float speed = pythag(mVelocityX, mVelocityY); if (speed > maxSpeed) { final float scale = maxSpeed / speed; mVelocityX = mVelocityX * scale; mVelocityY = mVelocityY * scale; } }
@Override public boolean step(float tau) { if (!super.step(tau)) { return false; } wrapAtPlayfieldBoundary(); return true; }
@Override public boolean step(float tau) { if (!super.step(tau)) { return false; } wrapAtPlayfieldBoundary(); return true; }
@Override public boolean step(float tau) { if (!super.step(tau)) { return false; } return !isOutsidePlayfield(); }
@Override public LayoutParams generateLayoutParams(AttributeSet attrs) { return new CustomLayout.LayoutParams(getContext(), attrs); }
@Override protected void onLayout(boolean changed, int l, int t, int r, int b) { spoofLayout(findViewById(R.id.secure_view_overlay_description), mActivity.findViewById(R.id.secure_view_description)); spoofLayout(findViewById(R.id.secure_view_overlay_button1), mActivity.findViewById(R.id.secure_view_unsecure_button)); spoofLayout(findViewById(R.id.secure_view_overlay_button2), mActivity.findViewById(R.id.secure_view_builtin_secure_button)); spoofLayout(findViewById(R.id.secure_view_overlay_button3), mActivity.findViewById(R.id.secure_view_custom_secure_button)); }
public void accelerate(float tau, float maxThrust, float maxSpeed) { final float thrust = mHeadingMagnitude * maxThrust; mVelocityX += polarX(thrust); mVelocityY += polarY(thrust); final float speed = pythag(mVelocityX, mVelocityY); if (speed > maxSpeed) { final float scale = maxSpeed / speed; mVelocityX = mVelocityX * scale; mVelocityY = mVelocityY * scale; } }
@Override protected void onListItemClick(ListView l, View v, int position, long id) { ((SpeechListAdapter)getListAdapter()).toggle(position); }
public void startActionMode() { if (mActionMode == null) { ActionMode.Callback cb = new MyActionModeCallback(); mActionMode = startActionMode(cb); } }
@Override public boolean step(float tau) { if (!super.step(tau)) { return false; } wrapAtPlayfieldBoundary(); return true; }
@Override public boolean step(float tau) { if (!super.step(tau)) { return false; } wrapAtPlayfieldBoundary(); return true; }
@Override public boolean step(float tau) { if (!super.step(tau)) { return false; } return !isOutsidePlayfield(); }
@Override public LayoutParams generateLayoutParams(AttributeSet attrs) { return new CustomLayout.LayoutParams(getContext(), attrs); }