腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
2
回答
Android
底部导航不更改目的地
、
、
android
:name="com.baba_abdullah.Project.
fragment
.HomeFragment"
android
:name="com.example.Project.
fragment
.AddBooksFragment"
android
:label="
fragm
浏览 19
提问于2022-09-30
得票数 2
回答已采纳
1
回答
如何将Drawerlayout与BottomNavigationView结合
、
、
、
<
fragment
android
:name="com.example.shereats.view.
fragment
.DishFragment" tools:layout="@layout/
浏览 9
提问于2021-10-25
得票数 0
1
回答
Android
:
Fragment
No View for ID for
fragment
、
我正在尝试实现动作栏选项卡,在此期间,我在实现
fragment
类时遇到错误。return inflater.inflate(R.layout.
fragment
_layout, container, false);}<?>
android
浏览 0
提问于2014-03-20
得票数 0
3
回答
Android
中的片段类型错误
、
、
我遵循了文章中关于如何在
Android
中的滑动抽屉活动中切换片段的指导,我确信我已经正确地按照显示的步骤执行了这些步骤。该方法需要
android
.support.v4.app.
Fragment
,而我使用的片段对象显然是
android
.app.
Fragment
。虽然我知道这也是错误的,因为如果我显式地定义我的
Fragment
,如下所示:最
浏览 5
提问于2016-01-13
得票数 2
回答已采纳
3
回答
片段$InstantiationException:尝试实例化一个不是片段的类
、
、
、
at
android
.app.
Fragment
.instantiate(
Fragment
.java:585) at
android
.app.Activity.onCreateView(Activity.java:4795)(
Fragment
.java:585) at <em
浏览 5
提问于2015-08-28
得票数 2
1
回答
从一行中的单击侦听器导航到另一个片段
、
、
"
android
:id="@+id/nav_viewpager1" app:destination="@id/
fragment
_pager2" /> </
浏览 1
提问于2020-02-02
得票数 2
回答已采纳
4
回答
为什么我不能返回片段?
、
、
、
Required:
android
.support.v4.app.
Fragment
Found:
android
.app.
Fragment
import
android
.app.
Fragment
;import
android
.support.design.widget.TabLayout; import
android
.
浏览 0
提问于2017-11-16
得票数 0
2
回答
NavigationComponents -导航抽屉未导航
、
、
、
、
.build(); NavController navController = Navigation.findNavController(this, R.id.nav_host_
fragment
|| super.onSupportNavigateUp();} 唯一显示的片段是这一段 public
浏览 30
提问于2019-10-10
得票数 0
1
回答
如何在条件导航中为片段动画制作动画
、
、
、
app:startDestination="@id/main_
fragment
">
android
:id="@+id/main_
fragment
"
android
:name="com.google.
android
.conditionalnav.MainFragment"
android
:label=&quo
浏览 25
提问于2020-09-05
得票数 1
回答已采纳
1
回答
Android
NavigationUI -当启动片段弹出时手柄反压
、
、
、
我在我的安卓应用程序中使用带有底部导航的安卓体系结构组件的。我有以下情况 现在问题是在我的导航图中,我的起始片段是A (通过定义app:startDestination="@id/fragmentA"),但现在它已经从活动中弹出了。由于这个原因,任何时候如果我向后按下,应用程序就会关闭,而返回到之前的片段。例如,假设我从片
浏览 0
提问于2018-12-13
得票数 1
1
回答
Android
Jetpack导航-通知底部Nav视图正确的项目
、
、
、
、
"@+id/mobile_navigation"
android
:id="@+id/
fragment
_home" <em
浏览 1
提问于2019-04-01
得票数 1
1
回答
带有闪屏的BottomNavigationView (体系结构导航组件)
、
、
但是,如果我选择
fragment
_splash作为"start Destination",从那里我使用popUpToInclusive导航到main_graph,BottomNavigation不会按预期工作
浏览 2
提问于2018-11-26
得票数 10
2
回答
使用导航架构组件时动画错误
、
、
、
我正在构建一个使用BottomNavigationView和导航架构组件(https://github.com/fkshiba/POCNavigation)的应用程序。我为每个选项卡都有一个graph.xml,选项卡之间的转换是由Activity完成的,没有导航AC,因为有多个backstack issue。我在home_graph.xml上有一个从Home2到Home3的过渡动画动作。问题是,一旦我运行此转换并弹回Home2,然后导航到另一个选项卡。当我从另一个选项卡过渡时,即使没有为其指定任何动画,它也会为Home2片段再次运行pop动画。 有没有人知道这个问题的解决方案?
浏览 31
提问于2019-02-03
得票数 2
4
回答
如何使用导航组件切换到不同后台堆栈中的其他片段?
、
、
、
在Home,我有
Fragment
1和
Fragment
2, 在Profile,我有MyProfile和EditProfile。现在,在
Fragment
2中,按钮changeAvatar可以在堆栈Profile中打开EditProfile。
浏览 2
提问于2020-04-29
得票数 10
2
回答
如何在单个活动中获取2个片段
、
、
、
我正在尝试在安卓系统中使用片段,并希望同时显示
fragment
1和
fragment
2,但通过这段代码,我只是获得了第二个片段。如何获取两个片段?import
android
.app.
Fragment
; import
android
.app.FragmentTransaction; import
android
.support.v7.app.AppCompatActivity;
浏览 1
提问于2017-04-19
得票数 0
2
回答
我的
android
应用程序每次都在ADT API:23中崩溃。
、
、
layout_width="fill_parent"
android
:id="@+id/
fragment
2"
android
浏览 2
提问于2016-09-16
得票数 1
2
回答
一个布局中有两个片段,但只显示了一个片段。
、
、
>
android
:layout_width<
fragment
android
:name="com.BoardiesITSolutions.MysqlManager.QueryEditor"
a
浏览 3
提问于2013-12-15
得票数 0
回答已采纳
1
回答
android
-导航组件中导航后的清除片段
、
、
、
这里有点问题。请在这方面帮助我,需要一些建议来做这件事,或者如果有任何其他解决方案,请在这里分享。
浏览 3
提问于2020-05-03
得票数 1
回答已采纳
1
回答
当改变碎片时SeekBar消失了吗?
、
、
、
= new
Fragment
1();
fragment
3 = new
Fragment
3();
android
:text="
fragment
1"/>
浏览 2
提问于2016-05-06
得票数 0
3
回答
为使用Kotlin的
android
片断设置进度条
、
、
、
、
>xmlns:
android
="http://schemas.
android
.com/apk/res/
android
"
android
:layout_width="match_parent"
android
:id
浏览 3
提问于2018-08-06
得票数 0
回答已采纳
点击加载更多
相关
资讯
Fragment Design x《赛博朋克2077》联名高清揭晓
两步搞定Fragment返回键
Babel 7.0正式发布,支持TypeScript,JSX Fragment
Telegram已推出在TON区块链上构建的用户名拍卖平台Fragment
Android开发需要掌握的设计模式——工厂模式
热门
标签
更多标签
云服务器
ICP备案
对象存储
云点播
实时音视频
活动推荐
运营活动
广告
关闭
领券