腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
2
回答
android
androidx.fragment.app.FragmentTransaction
中
定义
的
add
()
、
、
supportFragmentManager.commit {
add
<BlankFragment>(mainBinding.fragmentContainer这是我
的
build.gradle dependencies {implementationandroidTestImplementation '
浏览 80
提问于2021-07-29
得票数 1
2
回答
AppCompat.NavigationPageRenderer跃迁
、
、
、
我想通过扩展NavigationPageRenderer来改变安卓页面转换之间
的
动画。但是,与Xamarin.Forms.Platform.
Android
.NavigationRenderer,不同,OnPopToRootAsync、OnPopViewAsync和OnPushAsync没有任何方法是否可以用AppCompat.NavigationPageRenderer覆盖页面上
的
转换?
浏览 5
提问于2016-02-24
得票数 2
回答已采纳
1
回答
.beginTransaction().
add
在
Android
Studio
中
不起作用
、
、
、
、
我目前正在学习如何在
Android
Studio中切换片段,不幸
的
是我们
的
教科书已经过时了。null) { supportFragmentManager.beginTransaction().
add
: FragmentTransaction defined in
androidx.fragment.app.FragmentTransaction
<br/>public open fun
浏览 133
提问于2021-11-02
得票数 0
3
回答
FragmentManager和androidx FragmentManager
、
、
我正在尝试在使用androidX
的
应用程序中进行设置。我
的
问题是,当我尝试使用PlaceAutocompleteFragment时,我得到了错误,因为它是来自
android
.app.fragment
的
片段,而我
的
父片段是一个androidx片段:androidx.fragment.app.Fragment,所以它使用androidx.fragment.app.FragmentManager而不是
android
.app.FragmentManager。如何在androidX
中</e
浏览 0
提问于2018-09-10
得票数 31
2
回答
androidx.fragment.app.Fragment不能转换为
android
.app.Fragment
、
、
、
、
片段).addToBackStack(Null); package com.example.notesapp; import;import
andr
浏览 4
提问于2020-12-10
得票数 2
回答已采纳
1
回答
kotlin
中
的
supportFragmentManager.commit不起作用
、
、
、
在我
的
片段
中
,supportFragmentManager.commit{}不起作用。
Android
Studio没有意识到这一点,我不知道该怎么办。我在kotlin项目工作 ?
浏览 127
提问于2020-09-26
得票数 6
回答已采纳
2
回答
如何以编程方式将片段添加到kotlin
中
的
片段
中
、
我在我
的
应用程序中有一个片段,是一个屏幕.在这个屏幕上,我希望根据传递给屏幕片段
的
模型
的
属性,加载多个片段
中
的
一个。我会用条件做这件事当.但首先:public open fun
add
(p0: Int, p1
浏览 0
提问于2021-03-11
得票数 0
回答已采纳
1
回答
Android
3.6.1在自动完成框架布局时出错
、
、
、
、
没什么难
的
。代码运行良好,但我花了很多时间,因为如果我将frameLayout与自动编译挂钩,
Android
就会出错。; import
android
.view.View;import
android
.widget.FrameLayoutFragmentTransaction fragmentTransaction = fragmentManager.beginTransa
浏览 1
提问于2020-05-29
得票数 1
回答已采纳
1
回答
如何在活动
中
打开片段(非AppCompatAcitivity)?
、
、
、
、
正如标题所述,我想打开一个位于活动(非AppCompatActivity)
中
的
片段。beginTransaction(); ft.commit();java.lang.ClassCastException:
android
.app.Applicationfragment = new TableFragment();ft.commit();Requir
浏览 4
提问于2020-07-26
得票数 0
回答已采纳
3
回答
无法解析方法getParentFragmentManager
、
我正在清理一个小型
Android
项目,删除支持库
的
使用和androidx
的
使用似乎很有希望。然而,在我
的
MainActivity.java
中
,我面临着一个奇怪
的
问题:import androidx.fragment.app.FragmentManager不过,现在我得到了Cannot resolve method getParentFragmentManager编译错误,并得到了
Android</em
浏览 8
提问于2020-03-25
得票数 1
回答已采纳
1
回答
片段相容性雄激素问题?
、
、
我使用这段代码以编程方式在mainactivity
中
添加一个片段。R.id.nav_newview); ft.
add
FragmentTransaction.TRANSIT_FRAGMENT_FADE); ft.commit(); 我在ft.
add
(frag)上遇到错误,无法解决方法'<em
浏览 0
提问于2021-04-08
得票数 0
回答已采纳
1
回答
如何解决找不到NavigationView
、
我是
android
开发
的
初学者,在使用导航抽屉时遇到了一些困难。我正在开发一个应用程序与左侧
的
导航抽屉。但是,当我将导航视图添加到主活动
的
xml文件
中
时,它给出了这个错误消息:package com.hfad.catchat; import
浏览 2
提问于2020-06-08
得票数 1
4
回答
之前
的
活动在新片段下可见
、
当我从activity调用fragment,然后成功调用fragment,但前一个活动
的
某些部分位于片段
的
顶部时,任何人都可以帮助更正代码 打包com.example.newproject; importandroidx.appcompat.app.AppCompatActivity;import androidx.fragment.app.FragmentManager; import
androidx.fragment.app.FragmentTransaction<
浏览 15
提问于2019-10-02
得票数 2
3
回答
雄激素。FragmentTransaction动画不适用于反压
、
、
我有用于下列软件包
的
代码
的
工作版本:
android
.support.v4.app.FragmentTransaction;
androidx.fragment.app.FragmentTransaction
;我想这是雄激素包<e
浏览 0
提问于2019-08-30
得票数 1
回答已采纳
1
回答
无法动态添加分片
com.hiro.empty; import androidx.fragment.app.Fragment;{ @OverrideFragmentTransaction transaction
浏览 11
提问于2019-10-02
得票数 1
回答已采纳
2
回答
setFragment不能应用于其他片段
、
我正在尝试为我
的
安卓应用程序填写我
的
FragmentReplacerActivity.java,但我遇到了一些我感到困惑
的
错误。package com.example.soulforge; import
androidx.fragment.app.FragmentTransaction
; import
android
.widget.Fr
浏览 2
提问于2021-01-29
得票数 0
回答已采纳
1
回答
上下拖动碎片
、
、
、
我有主要
的
活动,它由两个片段组成,一个叫做画布,另一个是调色板。在主活动
中
,调色板只出现在屏幕
的
25%,我想让它成为可能,以便用户可以上下拖动它来选择颜色。我不知道该怎么做。com.example.paint; import androidx.fragment.app.Fragment; /
浏览 25
提问于2021-10-20
得票数 0
1
回答
片段通信问题(尝试调用虚拟方法)
、
、
、
、
我有一个带有2个片段
的
选项卡式活动。我试图将字符串从第一个片段传输到第二个片段,但是我得到了空指针异常。; import androidx.viewpager.widget.ViewPager; stringList.
add
(title);import androidx
浏览 30
提问于2019-12-20
得票数 0
1
回答
错误
的
第二个参数类型: Found:'com.google.
android
.youtube.player.YoutubePlayerFragment‘
这是我
的
代码: import
android
.os.Bundle;import
android
.view.View;import androidx.fragment.app.Fragment;import
androidx.fragment.app.FragmentTransaction
youTubeInitializat
浏览 13
提问于2020-04-03
得票数 0
3
回答
我想从MainActivity转到另一个使用intent
的
活动,但我不想
、
、
我在MainActivity
的
底部创建了一个botombar,并创建了五个不同
的
选项卡。当您单击Login选项卡时,您尝试实现转到另一个活动(Login)
的
意图,但它不起作用。当我重新执行中间
的
intent声明时,没有响应。有什么问题吗?import androidx.appcompat.app.AppCompatActivity;import
androidx.fragment.app.FragmentTransact
浏览 10
提问于2020-05-20
得票数 0
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Pixel 9的Add Me功能确保不会被遗漏在合影中
Android中的样式和主题
Android中数据的加密解密
Style在Android 中的继承关系
Android 中的响应式编程(1)
热门
标签
更多标签
云服务器
ICP备案
云直播
对象存储
腾讯会议
活动推荐
运营活动
广告
关闭
领券