Wesley13 Wesley13
3年前
android ContextMenu 上下文菜单示例
ch2\_contextmenu.xml:<?xmlversion"1.0"encoding"utf8"?<LinearLayoutxmlns:android"http://schemas.android.com/apk/res/android"android:layout_width"match_p
刘望舒 刘望舒
4年前
Android AOSP基础(五)Android Studio调试系统源码的三种方式
AOSP基础Android框架层本文首发于微信公众号「刘望舒」前言作为应用开发,我们将AOSP源码下载下来后,去查看源码已经足够用,如果想更进一步,可以学习调试源码,这样有助于了解系统源码和原理。调试系统源码的方式有很多种,今天分享出来的是比较适合应用开发的三种,分别是AOSP源码项目调试、导入部分源码调试、新建Android项目调试。需要注意的是,这三
Wesley13 Wesley13
3年前
android Notification 状态栏通知使用示例
ch7\_notification.xml:<?xmlversion"1.0"encoding"utf8"?<LinearLayoutxmlns:android"http://schemas.android.com/apk/res/android"android:layout_width"match_
Wesley13 Wesley13
3年前
android WebView 使用实例
主布局文件:<?xmlversion"1.0"encoding"utf8"?<LinearLayoutxmlns:android"http://schemas.android.com/apk/res/android"android:layout_width"match_parent"
Easter79 Easter79
3年前
TouchVG已按平台拆分
移动设备矢量绘图开源框架TouchVG(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fgithub.com%2Ftouchvg)支持iOS、Android、Windows(Win32/WPF)。以前这些都在一个项目中,给版本管理和下载使用带来些复杂性。现在已按不同平台拆分为不同
Stella981 Stella981
3年前
Android笔记
  首先是权限,因为WIFI也是可以用于定位的,只是精度没那么高而已,所以6.0之后的权限系统对WIFI的权限进行了限制,除了需要日常的WIFI操作权限之外,还需要定位权限,否则会获取不到WIFI的信息。<!完全的网络访问权限<usespermissionandroid:name"android.pe
Stella981 Stella981
3年前
Android GridView 添加 HeadView
package com.example.test;import android.content.Context;import android.util.AttributeSet;import android.util.Log;import android.view.MotionEvent;i
Stella981 Stella981
3年前
Django简介以及MVC模式
一.简介Django,是当前Python世界里最负盛名且成熟的网络框架。最初用来制作在线新闻的Web站点。Django是一个基于python的web重量级框架重指的是为发开者考虑的多采用了MVC的框架模式,也有很多人把它称为MVT(MTV)模式。二.MVC模式一种软件设计典范,用一种业务逻辑,使数据,界面显示分离的方法组织代码,将业务
Stella981 Stella981
3年前
Android从相机或相册获取图片裁剪
package com.only.android.app; import java.io.File; import android.app.Activity;import android.app.AlertDialog;import android.content.DialogInterfa
同样的APP为何在Android 8以后网络感觉变卡?
前言在无线网络技术不断发展的今天,WiFi已经成为了我们日常生活中不可或缺的一部分。无论是家庭娱乐、办公还是在线游戏,WiFi都在提供着便捷的互联网接入服务。然而,在安卓8.1后,为了进一步延长安卓设备的待机时间。原生安卓(AOSP等)默认开启了全局省电(