6.3.2.10.2. CompassFragment

public class CompassFragment extends Fragment implements View.OnTouchListener

6.3.2.10.2.1. Fields

6.3.2.10.2.1.1. ACTION_COMPASS_UPDATES

public static final String ACTION_COMPASS_UPDATES

6.3.2.10.2.1.2. DEGREE_CHAR

public static final char DEGREE_CHAR

6.3.2.10.2.1.3. mAzimuth

protected float mAzimuth

6.3.2.10.2.1.4. mBasePlate

protected ImageView mBasePlate

6.3.2.10.2.1.5. mBubbleView

protected BubbleSurfaceView mBubbleView

6.3.2.10.2.1.6. mCompass

protected CompassImage mCompass

6.3.2.10.2.1.7. mCurrentLocation

protected Location mCurrentLocation

6.3.2.10.2.1.8. mDeclination

protected float mDeclination

6.3.2.10.2.1.9. mDownX

protected float mDownX

6.3.2.10.2.1.10. mIsVibrationOn

protected boolean mIsVibrationOn

6.3.2.10.2.1.11. mParent

protected FrameLayout mParent

6.3.2.10.2.1.12. mSensorManager

protected SensorManager mSensorManager

6.3.2.10.2.1.13. mTvAzimuth

protected TextView mTvAzimuth

6.3.2.10.2.1.14. mVibrator

protected Vibrator mVibrator

6.3.2.10.2.1.15. sensorListener

protected SensorEventListener sensorListener

6.3.2.10.2.2. Methods

6.3.2.10.2.2.1. formatNumber

public static String formatNumber(Object value, int max, int min)

6.3.2.10.2.2.2. getAzimuth

protected float getAzimuth(float az)

6.3.2.10.2.2.3. getDeclination

public static float getDeclination(Location location, long timestamp)

6.3.2.10.2.2.4. getDeviceRotation

public int getDeviceRotation()

6.3.2.10.2.2.5. getDirectionCode

public static String getDirectionCode(float azimuth, Resources res)

6.3.2.10.2.2.6. onCreate

public void onCreate(Bundle savedInstanceState)

6.3.2.10.2.2.7. onCreateView

public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)

6.3.2.10.2.2.8. onDestroy

public void onDestroy()

6.3.2.10.2.2.9. onPause

public void onPause()

6.3.2.10.2.2.10. onResume

public void onResume()

6.3.2.10.2.2.11. onTouch

public boolean onTouch(View v, MotionEvent event)

6.3.2.10.2.2.12. rotateCompass

protected void rotateCompass(float angle)

6.3.2.10.2.2.13. setClickable

public void setClickable(boolean clickable)

6.3.2.10.2.2.14. setInterface

protected void setInterface()

6.3.2.10.2.2.15. setStyle

public void setStyle(boolean isNeedleOnly)

6.3.2.10.2.2.16. updateCompass

public void updateCompass(float azimuth)