FragmentActivity节目的对话点击操作栏的操作按钮时,DialogFragment - 没有标题的对话TabHost - 对话框顶部的选项卡ViewPagerwith FragmentPagerAdapter- Swipable,其内容连接到TabsViewPager的Fragment,这意味着相同的按钮应保持在对话框的底部,不管是什么Fragment的ViewPager是显示.IllegalStateException: Fragment does not have a view
Run Code Online (Sandbox Code Playgroud)
android.support.v4包来获得必要的类getChildFragmentManager()而不是getSupportedFragmentManager()Fragment类中ViewPager,再加上DialogFragment类.DialogFragment我首先尝试覆盖onCreateView,onCreateDialog然后同时覆盖两者.所有这些我都要跑,但意外的结果.
onCreateView:无法达到AlertDialog.Builder创建所需的按钮,除了Dialog的结果很棒.onCreateDialog:上面显示的错误消息.我仍然认为这种方法与我想要达到的目标一样接近.onCreateView和onCreateDialog:充气在对话布局onCreateView和添加的对话框按钮将AlertDialog.Builder在onCreateDialog.这显示了对话框,但是添加的按钮AlertDialog.Builder不可见.此外,单击EditText字段时键盘没有显示. …android android-fragments android-viewpager android-dialogfragment
在使用本地 Firebase 函数模拟器作为我的后端设置我的项目,并从我的 Android 模拟器调用我的 Firebase onCall 函数后,我收到了这条非常无信息的错误消息PlatformException(functionsError, Cloud function failed with exception., {code: INTERNAL, details: null, message: INTERNAL})。完整的错误信息如下:
E/flutter (20862): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: PlatformException(functionsError, Cloud function failed with exception., {code: INTERNAL, details: null, message: INTERNAL})
E/flutter (21445): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:569:7)
E/flutter (21445): #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:156:18)
E/flutter (21445): <asynchronous suspension>
E/flutter (21445): #2 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:329:12)
E/flutter (21445): #3 MethodChannelCloudFunctions.callCloudFunction (package:cloud_functions_platform_interface/src/method_channel_cloud_functions.dart:43:15)
E/flutter (21445): #4 HttpsCallable.call (package:cloud_functions/src/https_callable.dart:33:12)
E/flutter (21445): #5 ApiService.loadUserLessonsByLessonIds (package:kim/services/api.dart:28:21)
E/flutter (21445): #6 MapScreen.build.<anonymous closure> (package:kim/screens/map.dart:170:34)
E/flutter (21445): …Run Code Online (Sandbox Code Playgroud) android firebase flutter google-cloud-functions firebase-cli