![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
android
nihao_医生
一步一步。希望能达到目标
展开
-
android textview 显示表情和文字 表情带超链接
public int getResourceId(String name){ try { //根据资源的id的变量名获得field对象。使用反射来实现的 Field field = R.drawable.class.getField(name); //取得并返回资源的id的字段。 Syst原创 2016-03-17 17:01:59 · 1231 阅读 · 0 评论 -
textview 通过SpannableString 打开activity
public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.原创 2016-03-17 17:40:03 · 279 阅读 · 0 评论 -
textview 实现跑马灯文字效果
需要在xml文件中添加几个属性。才能实现跑马灯效果<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation=原创 2016-03-17 18:00:17 · 210 阅读 · 0 评论 -
android edittext中输入特定字符 inputtype digits
android:layout_height="wrap_content" android:text="使用android:digits属性(输入数字)"> android:layout_height="wrap_content" android:layout_margin="10dp" android:digits="0123456789"> android:layout_heigh原创 2016-03-18 10:32:07 · 1742 阅读 · 0 评论 -
Android_解决android.os.NetworkOnMainThr
Android.os.NetworkOnMainThreadException异常,出错误地方是访问网络的webservice有问题,在网上找了半天说是用 @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub String strVer=Get转载 2016-03-31 12:58:56 · 437 阅读 · 0 评论