`
iriverman
  • 浏览: 9543 次
  • 来自: ...
社区版块
存档分类
最新评论
文章列表
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_CUSTOM_TITLE); // 注意顺序 setContentView(R.layout.main); getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, // 注意顺序 R ...
//获取屏幕长宽 WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE); wm.getDefaultDisplay().getHeight(); wm.getDefaultDisplay().getWidth(); //获取status bar高度 View rootView = view.getRootView(); Rect r = new Rect(); rootView.getWindowVisibleDisplayFrame(r); return ...
GPS是否开启 LocationManager locationManager = (LocationManager)getContext(). getSystemService(Context.LOCATION_SERVICE); return locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER); 进入GPS设置页面 Intent intent = new Intent(); intent.setAction(Settings.ACTION_LOCATION_SO ...
Global site tag (gtag.js) - Google Analytics