/*宣告應用程式包*/
>
android:allowbackup=
"true"
android:icon=
"@mipmap/ic_launcher"
/*應用程式圖示*/
android:label=
/*應用程式標籤,即應用程式指定名稱*/
android:roundicon=
"@mipmap/ic_launcher_round"
android:supportsrtl=
"true"
android:theme=
/*應用程式主題*/
>
".mainactivity"
/*使用者開啟應用程式的第乙個介面*/
//包名
import android.os.bundle;
//匯入bundle類
public
class
mainactivity
extends
}drawable子目錄放
""//指定布局的預設工具
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
tools:context=
".mainactivity"
>
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"hello world!"
//要顯示的文字
"parent"
"parent"
"parent"
"parent"
/>
<
/androidx.constraintlayout.widget.constraintlayout>
mipmap子目錄
高解析度
mdpi
中解析度
xhdpi
超高解析度
xxhdpi
超超高解析度
***hdpi
超超超高解析度
value子目錄
Android學習筆記之廣播機制(1)
廣播接收者 broadcastreceiver 用於非同步接收廣播intent,廣播intent的傳送是通過呼叫context.sendbroadcast context.sendorderedbroadcast 或者context.sendstickybroadcast 來實現的。通常乙個廣播in...
Android原始碼學習1
1 logger日誌系統是基於核心中的logger日誌驅動程式實現的 四種日誌型別 main,system,radio,events 四個裝置檔案 dev log main,dev log system,dev log radio,dev log events main型別的日誌檔案 應用程式級別的...
Android學習第1記
建立乙個自定義列表 如何建立乙個註腳 注釋也是必不可少的 katex數學公式 新的甘特圖功能,豐富你的文章 uml 圖表 flowchart流程圖 匯出與匯入 你好!這是你第一次使用markdown編輯器所展示的歡迎頁。如果你想學習如何使用markdown編輯器,可以仔細閱讀這篇文章,了解一下mar...