原创 Android出現Program type already present: com.xx.xx.xx錯誤解決
Program type already present: com.github.mikephil.charting.BuildConfig這個是我在打包的時候出現的問題,在編譯的時候沒有發生,然後檢查了下相關的包,發現是包重複了,把重複
原创 Android隱藏ActionBar
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <!-- Customize your theme here. --> <item
原创 Android關於8.0以上Service服務相關問題記錄
報錯內容IllegalStateException: Not allowed to start service Intent ... 解決方案: if (Build.VERSION.SDK_INT >= Build.VERSION_CO
原创 Android開發之CommonTabLayout導航使用
1、佈局使用 <HorizontalScrollView android:layout_width="match_parent" android:layout_height="wrap_content" andr
原创 Android開發秒轉換成時分秒
/** * 時間轉換 秒轉分 */ public static String GetMinutes(int s) { String timeStr = null; int hour = 0; int mi
原创 android開發VideoView短暫黑屏問題解決記錄
直接上代碼 1、 佈局文件XML <VideoView android:id="@+id/view_video1" android:layout_width="match_parent" android:back
原创 Android給圖片添加文字和水印
https://www.jianshu.com/p/c6099602f70c 記錄大神
原创 Vue環境搭建及測試運行
個人搭建步驟,不喜勿噴。 1、下載Nodejs 官網下載地址:http://nodejs.cn/download/ 完成後測試是否安裝成功:打開cmd命令行,輸入npm -v,出現版本就說明成功; 升級nodejs的命令是npm inst
原创 Android開發實現RecyclerView橫向Item單獨滑動
pager_recy_eating.setAdapter(eatingWeekPlanAdapter); PagerSnapHelper snapHelper = new PagerSnapHelper(); snapHelper.a
原创 android高版本的網絡請求http限制解決方案
我這邊只記錄一個我自己使用成功的方法 在AndroidManifest.xml中的application中添加如下: android:usesCleartextTraffic="true"
原创 Android關於JzvdStd播放器和GSYVideoPlayer播放器不能播放的解決
在AndroidManifest.xml中 更改如下: 在application標籤中新增 android:hardwareAccelerated="true" 表示硬件加速,如果爲false,則不能進行播放
原创 Android開發---DBFlow數據庫使用
個人學習記錄以及方法,不喜勿噴!!! 1、在model APP中添加如下: def dbflow_version = "4.1.2" dependencies { /** * 數據庫 * */ an
原创 Android開發之RecyclerView多列橫向滑動
個人項目總結,勿噴; 1、BaseQuickAdapter類: public class PositionListAdapter1 extends BaseQuickAdapter<PostionMarketBean, BaseView
原创 Android開發之頭部Tab(SlidingTabLayout使用)
使用心得,勿噴; 1、添加資源: /** * FlycoTabLayout(TabLayout庫) */ implementation 'com.flyco.tablayout:FlycoTabLayout_Lib:2.1.2@a
原创 Android開發項目出現Warning: Default Activity not found解決辦法記錄
感謝這位老哥的方法https://blog.csdn.net/qq_40909351/article/details/88429032 出現Warning: Default Activity not found是因爲上一次強制退出導致as