小编BSa*_*iya的帖子

CardView上的透明背景 - Android

我想在CardView上做透明的背景.我知道backgroundColor,但我的布局上有图像.

你知道怎么做吗?或者作为cardview的东西,但我会设置一个透明的背景?

问候

android background android-cardview

69
推荐指数
3
解决办法
5万
查看次数

如何使用MapBox SDK获取标记的点击事件?

我正在使用MapBox SDK进行离线地图我在地图上添加了多个标记,如何获取标记的点击事件.有没有办法获得标记的点击事件?

android marker clicklistener mapbox

6
推荐指数
1
解决办法
5785
查看次数

如何在textview文本中写下标和上标?

我正在android studio上的应用程序上工作,我需要下标和上标, textview而且我知道如何以编程方式进行操作,例如:


  Html.fromHtml(r7.getText().toString()+"  m<sup><small>2</small></sup>")
Run Code Online (Sandbox Code Playgroud)

但是当写它的文本textview给我这个错误:


错误:(104)XML解析错误:格式不正确(无效的令牌)


那么如何解决这个问题,请???

android string-formatting textview

3
推荐指数
1
解决办法
4003
查看次数

Reaction to Bluetooth Pairing dialog input

I am working on an App that connects the android device with another device (CAN modules) over Bluetooth.

I pair previously unpaired devices like this:

Method m = device.getClass().getMethod("createBond", (Class[]) null);
m.invoke(device, (Object[]) null);
Run Code Online (Sandbox Code Playgroud)

Which works like a charm.

There is an issue though. The CAN Modules are set up in a way that you don't need the pin stuff or any other form of pairing confirmation, you just say that you want to pair with the device and it'll …

android bluetooth

2
推荐指数
1
解决办法
3439
查看次数

Android防止更改方向刷新

我有layout/activity_main.xmllayout-land/activity_main.xml。当我改变方向时,活动会重新加载。

我尝试使用此代码android:configChanges="keyboardHidden|orientation",但它无法正常加载我喜欢的活动,但问题是布局没有从切换layout/activity_main.xmllayout-land/activity_main.xml

如何从切换layout/activity_main.xmllayout-land/activity_main.xml。而不刷新活动。

layout android android-orientation

2
推荐指数
1
解决办法
7472
查看次数

Check String是android代码中的URL吗?

我允许用户在我的EditView中输入文本字符串.当我获得Editview文本时,我想验证它是否是URL链接?任何人都可以给Android代码功能吗?谢谢

java url android

1
推荐指数
1
解决办法
3468
查看次数