原创 android fragment 之間的跳轉
子fragment : Intent intent = new Intent(); intent.setClass(WeightFragment.this.getActivity(),HealthScore.class);intent.
原创 android 如何實現分享圖片的功能
1 版本大於android N同樣支持 2 直接截取頁面的部分顯示進行分享 3 如何分下那個更多的app(有些app不支持file類型uri的分享,需要插入數據庫的uri) 具體實現: 1 添加provider <provider
原创 如何替換activity背景色
1 替換style <style name="SplashTheme" parent="Theme.AppCompat.Light.NoActionBar"> <item name="android:windowBackgrou
原创 支付寶如何集成
服務端:https://docs.open.alipay.com/54/106370 app端:https://www.cnblogs.com/zhujiabin/p/9249044.html 簡單集成應該耗時 1--2 消失
原创 查看手機的UID
private int getScoreForNoClassfy(RecordItem item) { float[] all = item.getmain_4(); if (all[2] * 9 / all[0] > 0
原创 android 常用命令
vim: d 複製 y 黏貼 /: 搜索 ,按N就是向上查找下一個,按n就是向下查找下一個u :撤銷 ctr+R:返回撤銷 wq 保存退出 q! 不保存退出 高級查找: find -name *.java find -name '*.