毕设日志-在家办公记录

第一周

1、ConstraintLayout中,可以通过

app:layout_constraintDimensionRatio="W,828:1125”

来设置ImageView的宽高比,且自适应屏幕

2、Mac系统,AndroidStudio连接MuMu模拟器

最近在家办公,没有真机调试,只好使用模拟器,然而AndroidStudio自带的模拟器实在垃圾,卡顿,网络还不行,于是下载了mumu模拟器调试应用,记录一下MuMu模拟器连接到AndroidStudio的过程。

 

MuMu模拟器打开开发者选项,打开USB调试

 

配置adb:在AndroidStudio命令行

 

在AndroidStudio命令行

    1.打开终端,输入: cd ~/Library/Android/sdk/platform-tools;

    2.输入:touch .bash_profile,如果当前没有这个文件,则会默认创建;

    3.输入:open .bash_profile,如果是第一次创建,则默认为空白的文件;

    4.输入:export ANDROID_HOME=/Users/liuyuhang/Library/Android/sdk,

        这里的export ANDROID_HOME=你的安卓sdk路径mac下的Android studio,点

            击:preferences,会出现下图页面,复制地址替换就可以了。

    5.输入:export PATH=${PATH}:${ANDROID_HOME}/tools

    6.输入:export PATH=${PATH}:${ANDROID_HOME}/platform-tools

    7.输入source .bash_profile即可使改动生效;

 

 

最后一步,输入:adb connect 127.0.0.1:5555

有的博客说是7555,亲测不行,而是5555,连接成功后就可以了。

 

第二周

第一天:遇到的问题

 

1、框架搭建成功

 

2、监听RecyclerView滚动事件:https://www.jianshu.com/p/ce347cf991db

 

第二天:遇到的问题

 

1、应用适配全面屏显示以及刘海屏显示。

 

2、设置系统状态栏透明后,底部聊天框闪动https://www.jianshu.com/p/515888ac5c05

 

第三天:遇到的问题

 

2、RefreshLayout整体效果不满意https://github.com/scwang90/SmartRefreshLayout/blob/master/art/md_property.md

 

3、实现阴影效果:https://www.jianshu.com/p/eb71401ae0ec

 

4、.9.png制作

 

5、语音消息的录制与发送

 

6、了解了一下即使音视频通话相关信息

 

第四天:

 

1、接入极光IM框架,将demo中的ListView的Adapter转化成RecyclerView,这部分实在耗时,花了两天多的时间。

 

2、公司项目:全屏显示时,通过

           getWindow().clear/addFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);来唤出系统状态栏

 

3、通过单独设置阅读页夜间模式蒙层,修复全屏时夜间蒙层不能覆盖底部状态栏的bug。

 

第五天:

1、实现语音、图片发送,学习了使用Luban压缩算法压缩图片。

 

2、startActivityForResult用法

第三周

https://github.com/xue5455/NestedScrollingDemo

 

https://www.jianshu.com/p/20efb9f65494

https://www.jianshu.com/p/3682dde60dbf

正解!!!!!!!!!!!!!!!

 

周三:公司项目需求

 

底部导航栏适配

 

https://www.jianshu.com/p/5b28fe70469d

 

https://blog.csdn.net/hpp_1225/article/details/89352946

 

 

!!!!!!!!!!!!!!!!!!!!

recyclerView嵌套viewpager不显示

https://blog.csdn.net/jifashihan/article/details/92805118

 

Fragment调用startActivityForResult时,在Fragment中直接调用,才能在onActivityResult中收到回调。

 

 

java.lang.InstantiationException: java.lang.Class<com.huru.youme.edit.view.EditActivity> cannot be instantiated

activity不能为abstract

 

android.content.res.Resources$NotFoundException: String resource ID #0x0

https://blog.csdn.net/zhuangxujun/article/details/7164003

 

第五周

TextView行间距和字间距

https://blog.csdn.net/shanshan_1117/article/details/79564271

 

FloatingActionButton

https://www.jianshu.com/p/f2a4df406948

 

BottomSheetDialog

https://www.jianshu.com/p/859943121b05

 

去除字符串中所有空字符

https://blog.csdn.net/shift_wwx/article/details/46803429?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task

 

从HTML文本中提取纯文本

https://blog.csdn.net/a13662080711/article/details/80223956

 

TextView最大行数和末尾显示省略号

https://www.jianshu.com/p/c621ef6f4d73

 

全面屏手机获取底部导航栏是否显示

https://blog.csdn.net/liang_duo_yu/article/details/71480706

 

图片加载模式

https://www.jianshu.com/p/835297601f84

 

软键盘属性详解

https://blog.csdn.net/chenzhengfeng/article/details/81064013

 

Could not get unknown property 'jniLibs' for source set 'main' of type org.g

https://blog.csdn.net/huma8848888/article/details/80066955

 

引导用户打开位置开关

https://www.jianshu.com/p/ad6dd263d16b

 

时间差

https://blog.csdn.net/weixin_38676276/article/details/86711206

 

距离差

。。。

 

Date.getYear()等方法过时的替换方案

1 Calendar cal = Calendar.getInstance();

2 cal.setTime(businessDateTime);

3 int year = cal.get(Calendar.YEAR);

4 int month = cal.get(Calendar.MONTH) + 1;

 

 

TextView跑马灯效果

https://www.jianshu.com/p/71ee5c46ec8c

 

Android10 文件权限失败

https://blog.csdn.net/weixin_40093242/article/details/104067573

 

kotlin lateinit是否初始化

https://blog.csdn.net/weixin_30485799/article/details/101725575

 

!!!!!!!!!!!!!

String replace没有用

https://blog.csdn.net/ling1234ling1234/article/details/87805889

 

You need to use a Theme.AppCompat theme (or descendant) with this activity

不可以用Application的context

 

Android获取特定位置的实时天气

和风平台

https://console.heweather.com/app/index

 

百度地图个性化地图设置

http://lbsyun.baidu.com/index.php?title=androidsdk/guide/create-map/custommap

 

百度地图 地理编码和逆地理编码

http://lbs.baidu.com/index.php?title=androidsdk/guide/search/geo

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章