国产精品久久久久影院,成人午夜福利视频,国产精品久久久久高潮,国产精品 欧美 亚洲 制服,国产精品白浆无码流出

利用機(jī)智云的Android開源app修改教程

發(fā)布者:qinghong最新更新時間:2024-06-28 來源: elecfans關(guān)鍵字:機(jī)智云  Android 手機(jī)看文章 掃描二維碼
隨時隨地手機(jī)看文章

前言

為了使自己的app更加的有個人風(fēng)格,故在網(wǎng)上尋找了很多的參考資料,這里是對自己設(shè)計的總結(jié),具體機(jī)智云APP生成流程請參考我上一篇博客:基于stm32的連接機(jī)智云教程。


1、下載機(jī)智云開源APP

進(jìn)行以下操作之前請確保已經(jīng)在機(jī)智云中創(chuàng)建了一個產(chǎn)品,下面點擊添加應(yīng)用,選擇Android生成一個app應(yīng)用

然后按照提示,將密匙填入到相應(yīng)位置,具體參考我上一篇博客,點擊下載,將app工程下載到本地

2、Andriod方面處理

2.1 、AS軟件安裝與源碼修改

Android studio軟件安裝與源碼修改

將下載好了的文件解壓出來,然后將第二個文件夾復(fù)制出來,粘貼到存放Android studio文件例程文件夾中,若還沒有安裝Android studio的請參考這位大佬的詳細(xì)例程,這邊建議下載的Android studio版本不要太新,不然工程可能編譯不成功。

然后自己新建一個Android工程作為參考,方便修改源碼,

第一處參考新建例程修改機(jī)智云APP

將此處修改為對應(yīng)的新建工程的內(nèi)容

第二處按照此路徑參考新建工程修改,這里是我自己的按照自己的新建工程修改完畢的代碼

需注意這里的compile 均替換為implementation,testcompile均替換為testimplementation。

然后可以從Android studio里面打開修改好的機(jī)智云開源app,等待一段時間打開后,

2.2、修改APP圖標(biāo)和名稱

首先在網(wǎng)上下載相關(guān)素材備用,若大小不一,請自行修改圖片或者圖標(biāo)的大小。這時將我們下載好的圖標(biāo)或者圖片放置到桌面,然后分別復(fù)制一下,依次粘貼到drawable-xhdpi目錄下(注意鼠標(biāo)放在drawable-xhdpi上右擊選Paste便出現(xiàn)如下界面)

點擊確定,將此名稱復(fù)制到按照如下圖這個文件,紅框內(nèi)既是我們可以替換的app圖標(biāo),將你的圖標(biāo)名稱填上就ok,

2.3、修改啟動頁面和內(nèi)部UI

現(xiàn)在修改啟動界面,這里的圖片在前面我們已經(jīng)復(fù)制到了相關(guān)目錄下,現(xiàn)在可以按照下圖將紅框出修改成為你的圖片名稱,見下圖

然后在172行和174行兩處替換為你的設(shè)備離線圖標(biāo)

同樣是這個目錄下,在117行和119行相應(yīng)位置替換為自己的設(shè)備在線圖標(biāo)

2.4、修改設(shè)備監(jiān)控界面

這是我已經(jīng)修改好的界面UI,最后效果圖如下(這里的圖標(biāo)可自行修改為自己的圖標(biāo),若是僅僅復(fù)制代碼會報錯)

代碼如下所示,可根據(jù)需要自行修改(僅供參考,最好要讀懂代碼)

《?xml version=“1.0” encoding=“utf-8”?》《LinearLayout xmlns:android=“http://schemas.android.com/apk/res/android”android:layout_width=“match_parent”android:layout_height=“match_parent”android:orientation=“vertical”》

《include layout=“@layout/header_toolbar” /》

《ScrollViewandroid:layout_width=“match_parent”android:layout_height=“match_parent”android:background=“@color/background_color”android:fadingEdge=“vertical”android:paddingBottom=“10dp”android:paddingTop=“20dp”android:scrollbars=“vertical” 》

《LinearLayoutandroid:layout_width=“match_parent”android:layout_height=“wrap_content”android:orientation=“vertical”android:scrollbars=“vertical” 》《LinearLayoutandroid:layout_width=“match_parent”android:layout_height=“wrap_content”android:orientation=“horizontal”android:scrollbars=“horizontal” 》

《!-- 燈(布爾可寫) --》《RelativeLayoutandroid:layout_width=“0dp”android:layout_height=“match_parent”android:layout_marginBottom=“1dp”android:layout_weight=“3”android:alpha=“1”android:background=“@color/white”android:gravity=“center_horizontal”android:padding=“10dp”》

《ImageViewandroid:id=“@+id/LED”android:layout_width=“wrap_content”android:layout_height=“wrap_content”android:layout_alignParentTop=“true”android:layout_centerHorizontal=“true”android:src=“@drawable/led” /》

《TextViewandroid:id=“@+id/Led_text”android:layout_width=“wrap_content”android:layout_height=“wrap_content”android:layout_below=“@+id/LED”android:layout_centerHorizontal=“true”android:layout_centerVertical=“true”android:text=“燈” /》

《Switchandroid:id=“@+id/sw_bool_LED”android:layout_width=“wrap_content”android:layout_height=“wrap_content”android:layout_below=“@id/Led_text”android:layout_alignParentBottom=“true”android:layout_centerHorizontal=“true”android:textOff=“關(guān)閉”android:textOn=“開啟” /》《/RelativeLayout》

《!-- 蜂鳴器(布爾可寫) --》《RelativeLayoutandroid:layout_width=“0dp”android:layout_weight=“3”android:layout_height=“wrap_content”android:layout_marginBottom=“1dp”android:background=“@color/white”android:padding=“10dp” 》

《ImageViewandroid:id=“@+id/BEEP”android:layout_width=“wrap_content”android:layout_height=“wrap_content”android:layout_alignParentTop=“true”android:layout_centerHorizontal=“true”android:src=“@drawable/beep” /》

《TextViewandroid:id=“@+id/BEEP_text”android:layout_width=“wrap_content”android:layout_height=“match_parent”android:layout_centerVertical=“true”android:layout_centerHorizontal=“true”android:layout_below=“@+id/BEEP”android:text=“蜂鳴器” /》

《Switchandroid:id=“@+id/sw_bool_BEEP”android:layout_width=“wrap_content”android:layout_height=“match_parent”android:layout_below=“@+id/BEEP_text”android:layout_centerHorizontal=“true”android:layout_centerVertical=“true”android:textOff=“關(guān)閉”android:textOn=“開啟” /》《/RelativeLayout》

《!-- 開關(guān)(布爾可寫) --》《RelativeLayoutandroid:layout_width=“0dp”android:layout_weight=“3”android:layout_height=“wrap_content”android:layout_marginBottom=“1dp”android:background=“@color/white”android:padding=“10dp” 》

《ImageViewandroid:id=“@+id/LED1”android:layout_width=“wrap_content”android:layout_height=“wrap_content”android:layout_alignParentTop=“true”android:layout_centerHorizontal=“true”android:src=“@drawable/kaiguan” /》《TextViewandroid:id=“@+id/LED1_text”android:layout_width=“wrap_content”android:layout_height=“match_parent”android:layout_below=“@+id/LED1”android:layout_centerHorizontal=“true”android:layout_centerVertical=“true”android:text=“開關(guān)” /》《Switchandroid:id=“@+id/sw_bool_LED1”android:layout_width=“wrap_content”android:layout_height=“match_parent”android:layout_below=“@+id/LED1_text”android:layout_centerHorizontal=“true”android:layout_centerVertical=“true”android:textOff=“關(guān)閉”android:textOn=“開啟” /》《/RelativeLayout》《/LinearLayout》

《LinearLayoutandroid:layout_width=“match_parent”android:layout_height=“101dp”android:orientation=“horizontal”android:scrollbars=“horizontal”》《!-- 溫度(數(shù)值只讀) --》《RelativeLayoutandroid:layout_width=“0dp”android:layout_weight=“3”android:layout_height=“wrap_content”android:background=“@color/white”android:padding=“10dp” 》

《ImageViewandroid:id=“@+id/Temp”android:layout_width=“wrap_content”android:layout_height=“wrap_content”android:layout_alignParentTop=“true”android:layout_centerHorizontal=“true”android:src=“@drawable/wd” /》《TextViewandroid:id=“@+id/tv_data_Temp”android:layout_width=“wrap_content”android:layout_height=“wrap_content”android:layout_below=“@+id/Temp”android:layout_centerHorizontal=“true”android:layout_centerVertical=“true” /》《TextViewandroid:layout_marginLeft=“5dp”android:id=“@+id/Temp_text”android:layout_below=“@+id/Temp”android:layout_toRightOf=“@id/tv_data_Temp”android:layout_width=“wrap_content”android:layout_height=“wrap_content”android:text=“℃” /》《TextViewandroid:id=“@+id/Temp_text1”android:layout_toLeftOf=“@id/Temp”android:layout_width=“wrap_content”android:layout_height=“match_parent”android:text=“溫度” /》

《/RelativeLayout》

《!-- 濕度(數(shù)值只讀) --》《RelativeLayoutandroid:layout_width=“0dp”android:layout_height=“wrap_content”android:layout_marginBottom=“1dp”android:layout_weight=“3”android:background=“@color/white”android:padding=“10dp”》《ImageViewandroid:id=“@+id/Shidu”android:layout_width=“wrap_content”android:layout_height=“wrap_content”android:layout_alignParentTop=“true”android:layout_centerHorizontal=“true”android:src=“@drawable/sd” /》《TextViewandroid:layout_marginLeft=“5dp”android:id=“@+id/Shidu_text”android:layout_below=“@+id/Shidu”android:layout_toRightOf=“@id/tv_data_Shidu”android:layout_width=“wrap_content”android:layout_height=“wrap_content”android:text=“%” /》《TextViewandroid:id=“@+id/tv_data_Shidu”android:layout_width=“wrap_content”android:layout_height=“wrap_content”android:layout_below=“@+id/Shidu”android:layout_centerHorizontal=“true”android:layout_centerVertical=“true” /》《TextViewandroid:id=“@+id/Shidu_text1”android:layout_toLeftOf=“@id/Shidu”android:layout_width=“wrap_content”android:layout_height=“match_parent”android:text=“濕度” /》《/RelativeLayout》

《!-- 光照強(qiáng)度(數(shù)值只讀) --》《RelativeLayoutandroid:layout_width=“0dp”android:layout_height=“wrap_content”android:layout_marginBottom=“1dp”android:layout_weight=“3”android:background=“@color/white”android:padding=“10dp”》

《ImageViewandroid:id=“@+id/GQ”android:layout_width=“wrap_content”android:layout_height=“wrap_content”android:layout_alignParentTop=“true”android:layout_centerHorizontal=“true”android:src=“@drawable/sun” /》

《TextViewandroid:id=“@+id/GQ_text”android:layout_marginLeft=“5dp”android:layout_below=“@+id/GQ”android:layout_toRightOf=“@id/tv_data_GQ”android:layout_width=“wrap_content”android:layout_height=“match_parent”android:text=“l(fā)x” /》《TextViewandroid:id=“@+id/tv_data_GQ”android:layout_width=“wrap_content”android:layout_height=“wrap_content”android:layout_below=“@+id/GQ”android:layout_centerHorizontal=“true”android:layout_centerVertical=“true” /》《TextView

android:id=“@+id/GQ_text1”android:layout_toLeftOf=“@id/GQ”android:layout_width=“wrap_content”android:layout_height=“match_parent”android:text=“光強(qiáng)” /》《/RelativeLayout》《/LinearLayout》《!-- 溫度閾值范圍(數(shù)值可寫) --》《RelativeLayoutandroid:layout_width=“match_parent”android:layout_height=“wrap_content”android:layout_marginBottom=“1dp”android:background=“@color/white”android:padding=“10dp” 》

《TextViewandroid:layout_width=“wrap_content”android:layout_height=“match_parent”android:text=“溫度閾值范圍(℃)” /》

《TextViewandroid:id=“@+id/tv_data_Temp_AlarmScope”android:layout_width=“110dp”android:layout_height=“wrap_content”android:layout_alignParentRight=“true”android:textSize=“16sp”android:gravity=“end” /》

《LinearLayoutandroid:layout_width=“match_parent”android:layout_height=“wrap_content”android:layout_below=“@+id/tv_data_Temp_AlarmScope”android:layout_marginTop=“10dp”android:gravity=“center_vertical”android:orientation=“horizontal” 》

《TextViewandroid:layout_width=“wrap_content”android:layout_height=“wrap_content”android:textSize=“16sp”android:text=“0” /》

《SeekBar

android:id=“@+id/sb_data_Temp_AlarmScope”android:thumb=“@drawable/bar1”android:thumbOffset=“0dp”android:layout_width=“0dp”android:layout_height=“wrap_content”android:layout_weight=“3”android:max=“50” /》

《TextViewandroid:layout_width=“wrap_content”android:layout_height=“wrap_content”android:textSize=“16sp”android:text=“50” /》《/LinearLayout》

《/RelativeLayout》

《!-- 濕度閾值范圍(數(shù)值可寫) --》《RelativeLayoutandroid:layout_width=“match_parent”android:layout_height=“wrap_content”android:layout_marginBottom=“1dp”android:background=“@color/white”android:padding=“10dp” 》

《TextViewandroid:layout_width=“wrap_content”android:layout_height=“match_parent”android:text=“濕度閾值范圍(%)” /》

《TextViewandroid:id=“@+id/tv_data_Shidu_AlarmScope”android:layout_width=“110dp”android:layout_height=“wrap_content”android:layout_alignParentRight=“true”android:textSize=“16sp”android:gravity=“end” /》

《LinearLayoutandroid:layout_width=“match_parent”android:layout_height=“wrap_content”android:layout_below=“@+id/tv_data_Shidu_AlarmScope”android:layout_marginTop=“10dp”android:gravity=“center_vertical”android:orientation=“horizontal” 》

《TextViewandroid:layout_width=“wrap_content”android:layout_height=“wrap_content”android:textSize=“16sp”android:text=“20” /》

《SeekBarandroid:id=“@+id/sb_data_Shidu_AlarmScope”android:thumb=“@drawable/bar”android:thumbOffset=“0dp”android:layout_width=“0dp”android:layout_height=“wrap_content”android:layout_weight=“3”android:max=“75”

[1] [2]
關(guān)鍵字:機(jī)智云  Android 引用地址:利用機(jī)智云的Android開源app修改教程

上一篇:單片機(jī)Fault遇到故障了應(yīng)該怎么辦
下一篇:MAXREFDES1154:4通道通用溫度測量(TC&RTD)方案

推薦閱讀最新更新時間:2025-07-11 03:35

android平臺6410背光修改
昨日裝機(jī)的MID亮度不夠,特別是看些視頻文件時很不清晰。實際測得輸出PWM的GPF15電壓不夠,僅0.4伏,要求上應(yīng)該要達(dá)到跟WINCE一樣的2.8V,才適合供給U7位的MP1528。 在內(nèi)核CODE中查找PWM相關(guān)文件,找到s3c6410_timer_setup函數(shù)是設(shè)置PWM通道和分頻比等相關(guān)函數(shù)的調(diào)用。恰好該函數(shù)在s3cfb_set_brightness中被調(diào)用,設(shè)置tcnt的值由1000到500,即可達(dá)效果。 補(bǔ)充一點:關(guān)于如何讓系統(tǒng)不會進(jìn)入待機(jī)睡眠狀態(tài)的一種機(jī)制:終端中用以下命令echo 1 /sys/power/wake_lock。 ====================================
[單片機(jī)]
三星基于Android 13深度定制的One UI 5.0已在路上
據(jù)SamMobile報道,Android 13開發(fā)者預(yù)覽版已經(jīng)上線,谷歌Pixel機(jī)型可以更新嘗鮮。   值得注意的是,三星正在緊鑼密鼓開發(fā)基于Android 13深度定制的One UI 5.0系統(tǒng)。據(jù)SamMobile報道,三星可能會在7月份開啟One UI 5.0 Beta版公測,2022年年底登場。   和往常一樣,三星高端機(jī)型將會率先嘗鮮One UI 5.0系統(tǒng)。比如Galaxy S22系列、Galaxy Z Fold4、Galaxy Z Flip4等機(jī)型將會是首批適配One UI 5.0的機(jī)型。   作為新一代操作系統(tǒng),Android 13最大的升級之處是針對折疊屏、平板電腦等大屏設(shè)備進(jìn)行了適配優(yōu)化。谷歌強(qiáng)化了界面設(shè)
[手機(jī)便攜]
Android手機(jī)好評榜更新,三星持續(xù)霸榜,小米、華為強(qiáng)勢上榜
經(jīng)過10多年的高速發(fā)展,智能手機(jī)已經(jīng)逐漸進(jìn)入平緩發(fā)展階段,用戶更換手機(jī)的周期逐漸延長,雖然手機(jī)廠商發(fā)布新機(jī)的節(jié)奏越來越快,但在功能的創(chuàng)新方面更多是“擠牙膏”,并沒有帶來太多革命性的新功能,因此人們對于智能手機(jī)的興趣度正在逐漸下降,尤其是在高通的驍龍888、驍龍888 Plus以及驍龍8處理器出現(xiàn)發(fā)熱問題之后,人們在選擇智能手機(jī)的時候更加慎重了,性能最強(qiáng)的高端新旗艦未必是首選。 國內(nèi)第三方評測平臺——安兔兔近期公布3月份Android手機(jī)好評榜單,整體來看相較上月的變化還是很大的,不過占據(jù)榜首位置的機(jī)型仍然是三星Galaxy Note20 Ultra,這也是三星Galaxy Note系列的最后一款機(jī)型,在Galaxy S系列開始
[手機(jī)便攜]
老外評論一加10 Pro:速度在安卓中無敵 系統(tǒng)比肩iOS
2月4日消息,科技媒體Phone Arena發(fā)文指出,一加10 Pro的速度在安卓陣營中無與倫比,系統(tǒng)界面、系統(tǒng)動畫和手勢做得非常精致,能夠與iOS相提并論。   而且一加10 Pro的充電速度非???,大約11分鐘時間就能從0%充到50%,只需要花20分鐘左右的充電時間就能滿足一整天的使用需求。   更重要的是,一加10 Pro出廠標(biāo)配充電器,這在高端旗艦市場比較罕見。PS:谷歌Pixel 6 Pro、iPhone 13 Pro Max等高端旗艦不標(biāo)配充電器。   核心配置上,一加10 Pro采用6.7英寸AMOLED柔性屏,搭載驍龍8,前置3200萬,后置第二代哈蘇影像系統(tǒng),電池為5000mAh,支持80W有線、50W無線
[手機(jī)便攜]
微軟關(guān)閉 iOS 與Android 版的 Cortana 應(yīng)用
不出所料,微軟今天停止了其 Cortana 移動應(yīng)用。目前,該公司停止了對第三方 Cortana 的所有支持,并取消了 iOS 和 Android 設(shè)備上的 Cortana 應(yīng)用。 Cortana 最初于 2018 年 11 月發(fā)布,但顯然在短短一段時間內(nèi)未獲得足夠大的用戶基礎(chǔ)。 正如微軟的支持頁面所解釋的那樣,從今天,也就是 3 月 31 日開始,這款移動應(yīng)用不再受支持,提醒和列表也不再在該應(yīng)用中可用,盡管它們?nèi)匀豢梢酝ㄟ^ Windows 中的 Cortana 訪問。此外,Cortana 提醒、列表和任務(wù)會自動同步到 Microsoft To Do 應(yīng)用,該應(yīng)用可在 iOS 和 Android 上免費下載。 關(guān)閉這些
[手機(jī)便攜]
中國首批手機(jī)北斗檢測認(rèn)證發(fā)布會舉行:安卓、iPhone均支持
據(jù)證券時報報道,今日中國信通院和中電 54 所聯(lián)合承辦的中國首批手機(jī)北斗檢測認(rèn)證發(fā)布會將在北京舉行。 報道稱,北斗檢測認(rèn)證工作,是北斗質(zhì)量體系的重要組成部分,也是北斗導(dǎo)航產(chǎn)業(yè)規(guī)模發(fā)展的基礎(chǔ),開展智能手機(jī)北斗檢測認(rèn)證工作意義重大。1 月 19 日,市場監(jiān)管總局就《關(guān)于開展北斗基礎(chǔ)產(chǎn)品認(rèn)證工作的實施意見(征求意見稿)》征求意見,產(chǎn)品認(rèn)證的實施將有助于市場的規(guī)范化運行。隨著北斗進(jìn)入大眾通訊市場,北斗產(chǎn)業(yè)規(guī)模有望迅速提升。   北斗衛(wèi)星系統(tǒng)是我國自主研制,繼美國 GPS、俄羅斯 GLONASS 后的第三個成熟的全球衛(wèi)星導(dǎo)航系統(tǒng),同時也是聯(lián)合國衛(wèi)星導(dǎo)航委員會認(rèn)定的供應(yīng)商之一。去年 7 月份,中國宣布建成全球性的北斗衛(wèi)星導(dǎo)航定
[手機(jī)便攜]
安卓更大的抱負(fù) 華為鴻蒙2.0穩(wěn)了沒?
即使對科技領(lǐng)域關(guān)注很少的人,也知道華為目前的困境和抗?fàn)?。在芯片層面被封堵的情況下,掌握了操作系統(tǒng),就為后續(xù)的戰(zhàn)略調(diào)整創(chuàng)造了巨大的空間。 在9月10日的2020年華為開發(fā)者大會上,華為自己開發(fā)的操作系統(tǒng)鴻蒙2.0正式發(fā)布了,經(jīng)過一年時間的進(jìn)化,鴻蒙系統(tǒng)能否擔(dān)起華為的期望呢? 連接雙擎 投入了4000人的開發(fā)隊伍,上億元的開發(fā)資金,鴻蒙系統(tǒng)絕不僅是華為眾多備胎中的一個。 余承東將鴻蒙系統(tǒng)定義為連接應(yīng)用生態(tài)和硬件生態(tài)的橋梁,而這兩個生態(tài)是華為戰(zhàn)略中的驅(qū)動雙輪。所以,鴻蒙系統(tǒng)就是一個車軸,既要連接兩者,又要做到平衡。 在物聯(lián)網(wǎng)這個科技行業(yè)最期待的風(fēng)口中,華為可以發(fā)揮自身在5G、云計算、AI等技術(shù)領(lǐng)域的優(yōu)勢,利用硬件終端和軟件應(yīng)用打造一
[手機(jī)便攜]
谷歌給Android Go手機(jī)測試HDR拍照
據(jù)XDA報道,有開發(fā)者發(fā)現(xiàn)谷歌正在Google Camera Go上測試HDR拍照功能,有望讓低端手機(jī)也可以拍攝HDR照片。   Google Camera Go是Google Camera的簡化版,XDA表示,開發(fā)者發(fā)現(xiàn)其中有一個隱藏的“細(xì)節(jié)增強(qiáng)(Detail Enhance)”開關(guān),設(shè)置界面中展示了關(guān)閉和開啟HDR狀態(tài)下,拍攝照片的效果對比,并提供了關(guān)閉、自動和開啟HDR的選項,但更改設(shè)置后功能并未生效。 IT之家獲悉,Google Camera Go最早在售價僅95歐元的諾基亞1.3設(shè)備上發(fā)布,該設(shè)備配備了8MP的攝像頭,此前谷歌已在該設(shè)備上啟用了可靠的人像模式,外媒認(rèn)為,谷歌正在進(jìn)行的測試,能夠為相對廉
[手機(jī)便攜]
小廣播
設(shè)計資源 培訓(xùn) 開發(fā)板 精華推薦

最新單片機(jī)文章

 
EEWorld訂閱號

 
EEWorld服務(wù)號

 
汽車開發(fā)圈

 
機(jī)器人開發(fā)圈

電子工程世界版權(quán)所有 京ICP證060456號 京ICP備10001474號-1 電信業(yè)務(wù)審批[2006]字第258號函 京公網(wǎng)安備 11010802033920號 Copyright ? 2005-2025 EEWORLD.com.cn, Inc. All rights reserved