HarmonyOS-消息传递 在HarmonyOS中,参考官方指导,其实你会发现在‘指南’和‘API参考’两个文档中,对消息传递使用的技术不是一对一的关系,那么今天这篇文章带你全面了解HarmonyOS 中的消息传递。
git 下载指定文件夹的方法 这里以 https://gitee.com/dotnetmoyu/SimpleAdmin.git 为例,只下载其中的 web 文件夹。有时候一个项目非常大,特别像一些课程源码往往只需要下载一个文件夹。下面是用git 下载指定目录的办法。
Android Studio环境配置 打开C:\Program Files\Android\Android Studio\bin\idea.properties,在C:\Users\xxx.AndroidStudio\config\keymaps,替换个人的xml配置文件。配置代码风格也一样:C:\Users\xxx.AndroidStudio\config\codestyles。
Sphinx and reStructuredText 1、Sphinx环境搭建2、ReST基础语法3、reStructuredText 学习笔记4、Sphinx 文档目录5、reStructuredText 语法简介6、Sphinx配置7、Sphinx+gitee+Read the Docs搭建在线文档系统8、reStructuredText Directives
SwiftUI:background import SwiftUIstruct ContentView: View { var body: some View {// Text("Hello world").background(Color.red) Text("Hello world").frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .center) .background(Color.blue
SwiftUI:List动态增加 import SwiftUIstruct ContentView: View { @State var rowCount = 4 var body: some View { VStack {// List(0..<rowCount){ row in// Text("Row \(row)")// } List(0..<rowC
QT QSS collections 0、官方:Qt Style Sheets Examples1、Qt样式表之三:实现按钮三态效果的三种方法2、Qt-Qss笔记3、eddy QSS example4、QT教程
Fragment之间切换与替换 // 替换,无论是否已存在都会重新创建 public void replaceFragment(int containerId, Fragment fragment, String fragmentTag) { if (fragment != null && !isFinishing() && !isDestroyed()) { FragmentManager fragmentManager = getSupportFragm.
SwiftUI: pages jump and return 方法1:NavigationViewimport SwiftUIstruct ContentView: View { var body: some View { NavigationView { List(0..<100) { row in NavigationLink(destination: Text("Detail \(row)")) { Text("Hello wor
SwiftUI:Alert & Sheet与可选状态的使用 import SwiftUIstruct User:Identifiable { let id:String}struct ContentView: View {// @State var showingAlert = false @State var selectedUser:User? var body: some View { VStack { Button("Show Alert") {
SwiftUI:描边框与描形状(stroke & strokeBorder) import SwiftUIstruct ContentView: View { @State var rating = 0.0 var body: some View {// Circle().stroke(Color.red).frame(width: 100, height: 100, alignment: .center) Circle().stroke(Color.red, lineWidth: 20)//.frame(width: 100, h
SwiftUI:Modifier顺序错误对比 import SwiftUIstruct ContentView: View { var body: some View { Text("Hello World").font(.largeTitle).background(Color.green).padding() Text("Hello World").font(.largeTitle).padding().background(Color.green) Text("Hell
SwiftUI:Timer Remaining import SwiftUIstruct ContentView: View { @State var timeRemaining = 100 let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect() @State var isActive = true var body: some View { ZStack { Image("backgro
SwiftUI:CardView RoundedRectangle shadow import SwiftUIstruct ContentView: View { var body: some View { CardView(card: Card.example) }}struct Card { let prompt: String let answer: String static var example: Card { Card(prompt: "Who played the 13th Doc
SwiftUI:NotificationCenter willResignActiveNotification willEnterForegroundNotification import SwiftUIstruct ContentView: View { var body: some View { Text("Hello").onReceive(NotificationCenter.default.publisher(for: UIApplication.willResignActiveNotification)) { _ in print("Enter background") }