腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
2
回答
FindViewByID
和
Xamarin.Forms.Listview
不
工作
、
我在第二个页面中添加了一个
Xamarin.Forms.ListView
,并在.cs文件中设置了一个变量,这样我就可以访问它并将其绑定到一个类对象列表。我开始使用Android.Widget.ListView,但我读到
Xamarin.Forms.Listview
是用来设置.ItemsSource的正确方法。然而,
FindViewByID
不能在
Xamarin.Forms.ListView
上
工作
。(savedInstanceState); SetContentView(Resource.
浏览 14
提问于2019-08-09
得票数 0
回答已采纳
5
回答
findviewbyid
不
工作
、
super.onCreate(savedInstanceState); ed=(EditText)
findViewById
浏览 7
提问于2012-07-16
得票数 0
回答已采纳
2
回答
Android -
findViewById
不
工作
。
、
savedInstanceState); ListView view; view = (ListView)
findViewById
浏览 0
提问于2014-08-31
得票数 0
回答已采纳
1
回答
setContentView()
和
findViewById
()在Kotlin
不
工作
、
、
、
我在一个空的活动中用Kotlin写了一个
工作
应用程序,它起了作用。我将xml文件复制到fragment_1中,并将其命名为setContentView(),然后给出setContentView()
和
findViewById
()上的错误。(R.id.ulamekLabel) mianownik =
findViewById
(R.id.mianownik) kUlamkowa =
浏览 4
提问于2022-06-04
得票数 0
回答已采纳
1
回答
findViewById
与getIdentifier
不
工作
、
、
、
、
int resID = getResources().getIdentifier(test, "id", getPackageName()); Spinner spnr = (Spinner)
findViewById
和
这个搏斗了好几个小时。非常感谢..。
浏览 2
提问于2015-01-22
得票数 0
回答已采纳
2
回答
ImageView
findViewById
和
setContent(R.layout.main)
不
工作
、
、
如果我尝试调试代码,svgView = (SVGView)
findViewById
(R.id.svgview)值始终为空。super.onCreate(savedInstanceState); svgView = (SVGView)
findViewById
} invalidate(); }
和
mai
浏览 1
提问于2011-11-18
得票数 1
2
回答
findViewById
在查找布局时
不
工作
?
、
、
当我这样做时,它说的是
不
兼容的类型(布局与视图)。我知道它们是不同的类型,但是在googling上,有几个帖子建议以这种方式选择活动中的布局。他们可以打这样的电话-而且他们似乎没有得到这个错误"wrap_content" android:id="@+id/textview"/>在活动中
浏览 0
提问于2015-11-21
得票数 1
回答已采纳
2
回答
findViewById
不
工作
在静态函数中
、
、
我在静态函数中发现了
findViewById
中的错误。void onYearSelect() { String yearName; yearSelector = (Spinner)
findViewById
浏览 7
提问于2016-07-30
得票数 1
回答已采纳
3
回答
Android ViewPager
findViewById
不
工作
-总是返回null
、
我在android开发领域还是个新手:/顺便说一下,这是一个按钮,它总是返回零!我甚至确保它只在实际加载该页面时调用。
浏览 1
提问于2011-11-01
得票数 10
回答已采纳
4
回答
活动xml片段中的
findViewById
属性
不
工作
、
、
、
、
layout_constraintRight_toRightOf="parent"</androidx.constraintlayout.widget.ConstraintLayout>TextView btn_back= (TextView) getView().
findViewById
(R.id.btn_back
浏览 6
提问于2020-11-11
得票数 2
回答已采纳
2
回答
ListView中的Xamarin Forms ListView问题
、
<ListView HasUnevenRows="True" x:Name="collectionView" HeightRequest="1000" <ListView.ItemTemplate> <ViewCell> <StackLayout
浏览 4
提问于2019-03-20
得票数 0
2
回答
如何在android中从listview中复制文本?
、
、
、
mMessagelist.get(arg2).getMessage_text().toString(); CLIPBOARD_TEXT = ((TextView)
findViewById
浏览 2
提问于2014-01-24
得票数 1
1
回答
我的
findViewById
不
工作
了。在我的碎片里
、
我的
findViewById
不
工作
了。它没有联系..。*<?xml version="1.0" encoding="utf-8"?
浏览 1
提问于2022-05-16
得票数 0
回答已采纳
2
回答
如何设置列表的初始滚动位置?
我将适配器设置为列表listView.setAdapter编辑ListView listView = (ListView) view.
findViewById
(R.id.listViewMovies);listView.setAdapter(myAdapter); listView.smoothScrollToPositio
浏览 3
提问于2016-12-10
得票数 0
回答已采纳
2
回答
Android ExpandableListView关闭群时获取群号
、
groupData, childData, groupCheckBox, childCheckBox); ExpandableListView exList = (ExpandableListView)
findViewById
inflater.inflate(R.layout.groupitem, null);
浏览 2
提问于2012-04-10
得票数 0
1
回答
android下滚动儿童滚动视图时,如何停止父滚动视图的滚动?
、
Override Log.v(TAG, "PARENT TOUCH"); return false;}); 我面对的是我的子滚动视图不是父滚动view.In的直接子滚动视图,这个v.getParent()
不
工作
浏览 1
提问于2015-04-27
得票数 9
3
回答
创建线性布局时的NullPointerException
、
、
、
layout_marginBottom="29dp"而导致错误的代码行是: setContentView((LinearLayout)(
findViewById
浏览 0
提问于2012-11-08
得票数 1
回答已采纳
1
回答
等到一个按钮被按下
活动
和
线程: volatile private ImageButton a; b =
findViewById
(R.id.flag_b); d =
findViewById
set_sqm0(); } }
浏览 0
提问于2018-01-25
得票数 0
2
回答
Android.widget textView to android.widget.button
、
、
、
、
但是,每次我添加粗体代码时,我都会尝试构建这个小应用:应用程序崩溃,如果我删除这一行,一切正常。我在Android2.2API8版本
和
nexus的仿真器上运行它。savedInstanceState); counter = 0; **d =
浏览 1
提问于2013-02-11
得票数 0
回答已采纳
2
回答
如何在HorizontalScrollView中禁用拆分?
、
我在我的项目中有一个HorizontalScrollView
和
一个按钮。我想要这个按钮时点击的>>>
不
滚动的HorizontalScrollView。真正的用户可以修复视图。我使用了这段代码,但它不
工作
。Button btn_s = (Button)
findViewById
(R.id.button999); final HorizontalScrollView h_scroll = (HorizontalScrollView)
findViewById
(R.id.hori
浏览 3
提问于2013-01-09
得票数 3
回答已采纳
点击加载更多
相关
资讯
当本场VOR/DME不工作以后
关于setInterval切换页面时不工作
不达目的不罢休,全球首次发现 OpenAI 模型工作时会破坏关机命令
RSCONN01发送邮件不工作
为何机器人抢不走你的工作
热门
标签
更多标签
云服务器
ICP备案
对象存储
云点播
智聆口语评测
活动推荐
运营活动
广告
关闭
领券