腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
如何
使用
RemoteViews
对
TextView
进行
getText
().
toString
()?
、
、
、
RemoteViews
views = new
Remoteviews
(context.getPackageName(), R.layout.my_widget_layout); views.setTextViewText(R.id.myTV, "Hello World"); 现在下一步
对
我来说有点复杂。我希望小部件上的按钮传递
TextView
文本并将其显示在敬酒词上。 这是我开始的..。I need to
getText
().
toString
() from the
浏览 30
提问于2020-07-11
得票数 1
回答已采纳
2
回答
如何
通过在Android小部件中按下按钮来更改
TextView
的文本
、
、
android:id="@+id/
textView
" androidPendingIntent pendingIntent = PendingIntent.getActivity(context,0,intent,0);
RemoteViews
views = new
RemoteViews
(context.getPackageName(), R.la
浏览 0
提问于2018-05-31
得票数 0
4
回答
如何
从TextViews中获取在android中动态创建的文本?
、
、
、
我正在
使用
下面的函数创建文本视图。因为我是android的新手,所以我不能从所有的文本视图中获取文本。请给我提个解决方案 private void
textview
(String text) {
TextView
txt_view= new
TextView
(this); txt_view.setText
浏览 77
提问于2017-01-24
得票数 0
回答已采纳
0
回答
从通知中读取WhatsApp消息
、
、
我
使用
以下代码来完成此操作,public class MyAccessibilityServicetitle; public static
TextView
text; protectedPackage : ", packagename); Log.d("NOTIFICA
浏览 6
提问于2017-01-07
得票数 1
4
回答
如何
在Android编程中获得
TextView
的默认值?
、
、
MainActivity.java中有两种方法:
TextView
textview
1 = (
TextView
) findViewById(R.id.
textView
1);}
TextView
textview
1= (
TextView</
浏览 7
提问于2014-12-30
得票数 1
4
回答
将TextViews动态添加到小部件
、
即使
使用
预定义的xml文件也可以做到这一点吗?提前感谢您的帮助! /bump!
浏览 1
提问于2013-01-15
得票数 2
回答已采纳
2
回答
如何
根据另一个文本视图的内容有条件地启用
TextView
?
、
、
我正在对它
进行
实验,我想知道如果
Textview
1包含一些东西,您
如何
启用(例如)
Textview
2。我试过这段代码,但它不起作用:
TextView
2.setEnabled(false);
TextView
2.setEnabled
浏览 13
提问于2020-01-19
得票数 1
3
回答
安卓将EditText文本分成多个TextViews
、
、
我有一个包含日期的EditText,例如15/05/2016,我希望
TextView
只包含EditText中包含的一小部分信息,例如EditText显示2016年5月15日,我的
TextView
查看它并从日期中提取数字15并将其显示在其
TextView
中。
浏览 0
提问于2016-05-15
得票数 0
5
回答
在setText中做数学运算?
、
、
、
、
textView
1.setText((editText1.
getText
() + editText2.
getText
() + (editText3.
getText
)) / 3); 我们能用setText
浏览 3
提问于2013-12-11
得票数 1
回答已采纳
4
回答
java.lang.ClassCastException: android.widget.RelativeLayout
、
、
、
orientation="vertical" android:layout_height="match_parent"> import android.widget.
TextView
) view).
getText
浏览 7
提问于2013-11-26
得票数 2
回答已采纳
1
回答
如何
从widgetConfigure类更新小部件
、
但是,在完成配置活动之后,
如何
开始更新我的小部件呢?我想在我的onUpdate类中调用WidgetProvider方法,因为我的Http请求是在那里完成的。(R.id.currencySpinner); String curr
浏览 2
提问于2014-10-12
得票数 0
回答已采纳
3
回答
在Button的父节点中获取
TextView
、
、
descendantFocusability="afterDescendants" android:orientation="vertical" > 当用户单击delete按钮(在<em
浏览 4
提问于2013-08-12
得票数 0
回答已采纳
1
回答
如何
在安卓系统中以一行方式显示
TextView
和EditText?
、
对
你们大多数人来说,这似乎很简单,但我一直在为一件事而挣扎。我在Android上创建了一个表单,我试图在单击按钮后将输入的值显示在一行中,但我不能。有人能帮我吗?<?android:text="xx.ku315.com:" android:layout_width="wrap_content" /&g
浏览 0
提问于2018-06-15
得票数 1
回答已采纳
2
回答
Android Studio计数器
TextView
字段未更新
、
tools:context="rav_singh.caloriecounter.MainActivity" android:layout_alignParentEnd="true" /> <
TextView
MainA
浏览 1
提问于2016-12-28
得票数 0
2
回答
为什么我得到一个nullpointerexception (Android)?
、
public void onClick(View v) { if(value.
toString
().length()==0||angle.
toString
().length()==0) Doublify(angle); //216 in
浏览 2
提问于2012-04-10
得票数 0
回答已采纳
5
回答
textview
.setvisibility(View.GONE)当文本是
TextView
、
我试图从方法中设置
textview
可见性,那我想让它消失private static int checkField(
TextView
tview){ if (tview.
getText
() == "
TextView
"){ vis = View.GONE;
浏览 2
提问于2018-10-06
得票数 0
回答已采纳
3
回答
如何
在android编程中获取放置在小部件上的文本视图
、
for (int i=0;i<appWidgetIds.length;i++){
RemoteViews
v=new
RemoteViews
(context.getPackageName(),R.layout.widgetshow);.抱歉,伙计们,我英语说得不好
浏览 7
提问于2012-03-17
得票数 5
5
回答
将文本视图中的数字转换为int
、
、
、
、
这是我现在拥有的代码,用于获取文本视图中的数字并将其转换为intint num1 = Integer.parseInt(value1.
toString
()); 据我所知,是第二行导致了错误,但我不确定它为什么要这样做。
浏览 3
提问于2013-08-01
得票数 14
2
回答
使用
共享首选项在单击按钮时保存数据
、
、
、
name;
TextView
firstContactName; } String a =
浏览 17
提问于2020-09-20
得票数 2
1
回答
android 4.1.1自定义通知中的选取框问题
、
、
、
这是我的代码.xml: android:id="@+id/notification_title" when);
RemoteViews
contentView = new
RemoteViews
浏览 1
提问于2012-10-30
得票数 1
点击加载更多
相关
资讯
综合实战:简单计算器的参考设计方法(1)
如何使用示波器探头对被测电路进行检测
WPScan使用完整攻略:如何对WordPress站点进行安全测试
如何使用微导流对苹果和安卓APP进行内测分发?
详解:从“脑波”到“机器人运动”,如何使用深度神经网络对大脑活动进行解码?
热门
标签
更多标签
云服务器
ICP备案
云直播
即时通信 IM
对象存储
活动推荐
运营活动
广告
关闭
领券