我目前正在学习新的Android导航架构组件 (https://developer.android.com/topic/libraries/architecture/navigation/).
我有点混淆它的动机和概念,这是我的不确定性:
问题2的示例场景:
navigation android kotlin android-jetpack android-architecture-navigation
React Native Application Development 是否可以通过MVC,MVP,MVVM等软件架构实现?
谢谢.
architecture react-native react-native-android react-native-ios
我刚刚开始开发应用程序,并且在导航栏中苦苦挣扎。底部的一个很好,但顶部的一个不好。我想删除按钮上方的灰色空间。
你能帮助我吗?
[图片]

码:
@override
Widget build(BuildContext context) {
return new Scaffold(
appBar: new AppBar(
backgroundColor: Colors.grey,
bottom: new TabBar(
controller: controller,
tabs: <Tab>[
new Tab(icon: new Icon(Icons.arrow_forward)),
new Tab(icon: new Icon(Icons.arrow_downward)),
new Tab(icon: new Icon(Icons.arrow_back)),
]
)
),
body: new TabBarView(
controller: controller,
children: <Widget>[
new first.First(),
new second.Second(),
new third.Third(),
new fourth.Fourth(),
new fifth.Fifth()
]
),
);
}
Run Code Online (Sandbox Code Playgroud) 我想尝试新的导航架构组件功能,所以我遵循了这个教程:https://www.youtube.com/watch?v = GOpeBbfyb6s.
我正在使用Android Studio 3.2 Beta 1.我安装了必要的依赖项,但当我尝试在项目中创建导航Android资源文件时,就像在上面的视频中一样,导航选项不会出现在选择菜单中.
我的问题:
尝试创建导航Android资源文件时,没有要选择的导航选项.我错过了安装中的任何步骤吗?
预期结果:
我的情况:
我的build.gradle
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation"org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
// Navigation Architecture Component Configuration install HERE!!
def nav_version = "1.0.0-alpha02"
implementation "android.arch.navigation:navigation-fragment-ktx:$nav_version" // use -ktx for Kotlin
implementation "android.arch.navigation:navigation-ui-ktx:$nav_version" // use -ktx for Kotlin
}
Run Code Online (Sandbox Code Playgroud) android kotlin android-studio android-architecture-navigation
By referring to: Android WorkManager api for running daily task in Background
It uses the WorkManager.enqueueUniquePeriodicWork to ensure that PeriodicWorkRequest is not created multiple times.
example code:
val work = PeriodicWorkRequestBuilder<SyncWork>(15,TimeUnit.MINUTES).build()
WorkManager.getInstance().enqueueUniquePeriodicWork("TaskTag",
ExistingPeriodicWorkPolicy.KEEP, work);
Run Code Online (Sandbox Code Playgroud)
However, I found it there is 2 option of ExistingPeriodicWorkPolicy which is ExistingPeriodicWorkPolicy.KEEP and ExistingPeriodicWorkPolicy.REPLACE can be use.
I try to implement it and run the code, but it does really show any differences, and it seem both of them behave the same way.
My uncertainty: …
根据我从文档https://developer.android.com/topic/libraries/architecture/workmanager中阅读的内容,
它说:
即使您的应用被强制退出或设备重新启动,该任务仍然可以保证运行。
那么这意味着,无论如何,在后台执行的任务都会100%执行到完成为止。
例如:
应用程序具有执行工作管理器实施的按钮,该按钮可将数据上传到在线数据库,但需要Internet连接才能上传数据。因此,我的应用程序当前处于离线模式,然后单击按钮。
我的不确定性:
工作管理器是否会在后台运行该过程,并在没有Internet连接的情况下继续重试该过程?并且仅完成并停止该过程,直到建立Internet连接并完成数据上传?
我正在 Visual Studio Enterprise 2017 中使用 Xamarin 开发应用程序。我转到“查看”->“其他 Windows”,但没有 Xamarin.Forms Previewer。我很确定它昨晚还在这儿。
截屏

有谁知道发生了什么?非常感谢。
我正在尝试在我的应用程序中使用导航抽屉和底部栏导航。因此我首先创建了导航活动。然后我尝试将底部栏导航添加到同一个活动中。我想开发这样的应用程序:

在Activity.xml 中没有BottomNavigationView,应用程序正在工作。但是当我在Activity.xml 应用程序中添加BottomNavigationView 时崩溃了。logcat 中没有任何显示。我如何在同一个活动中同时使用底部栏导航和导航抽屉,请给我一个简单的例子?谢谢
android ×5
kotlin ×3
android-architecture-navigation ×2
architecture ×1
dart ×1
flutter ×1
navigation ×1
react-native ×1
workmanagers ×1