会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
平安喜乐
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
7
8
9
10
11
12
13
14
15
···
27
下一页
2021年3月9日
安卓开发
摘要: 限制EditText输入类型 有时我们可能需要对输入的数据进行限制,比如输入电话号码的时候,你输入了一串字母,这 显然是不符合我们预期的,而限制输入类型可以通过inputType属性来实现! 比如限制只能为电话号码,密码(textPassword): <EditText android:layout
阅读全文
posted @ 2021-03-09 16:34 平安喜乐v
阅读(32)
评论(0)
推荐(0)
2021年3月8日
安卓开发
摘要: 学习EditText: 和TextView非常类似,最大的区别是:EditText可以接受用户输入。 android:hint="默认提示文本" android:textColorHint="#95A1AA"
阅读全文
posted @ 2021-03-08 16:33 平安喜乐v
阅读(31)
评论(0)
推荐(0)
2021年3月7日
安卓开发
摘要: 实现文字跑马灯效果: <TextView android:id="@+id/txtOne" android:layout_width="match_parent" android:layout_height="wrap_content" android:textSize="18sp" android
阅读全文
posted @ 2021-03-07 11:06 平安喜乐v
阅读(34)
评论(0)
推荐(0)
2021年3月6日
安卓开发
摘要: 实现代码: public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanc
阅读全文
posted @ 2021-03-06 11:02 平安喜乐v
阅读(184)
评论(0)
推荐(0)
2021年3月5日
安卓开发
摘要: 开始做建民老师的体温开发app: 1.数据库操作: private void savedb(String name, String num, String cl,String date, String time, String area, String tem,String qw) { UserDa
阅读全文
posted @ 2021-03-05 11:00 平安喜乐v
阅读(37)
评论(0)
推荐(0)
2021年3月4日
安卓开发
摘要: src标签:public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanc
阅读全文
posted @ 2021-03-04 10:59 平安喜乐v
阅读(85)
评论(0)
推荐(0)
2021年3月3日
安卓开发
摘要: s设置文本超链接: package jay.com.example.textviewdemo; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.text.Html; i
阅读全文
posted @ 2021-03-03 10:45 平安喜乐v
阅读(74)
评论(0)
推荐(0)
2021年3月2日
安卓开发
摘要: 除了显示普通文本外,TextView还预定义了一些类似于HTML的标签,通过这些标签,我们可以使 TextView显示不同的字体颜色,大小,字体,甚至是显示图片,或者链接等!我们只要使用HTML中的一些 标签,加上android.text.HTML类的支持,即可完成上述功能
阅读全文
posted @ 2021-03-02 10:43 平安喜乐v
阅读(60)
评论(0)
推荐(0)
2021年3月1日
安卓开发
摘要: 带图片(drawableXxx)的TextView: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" a
阅读全文
posted @ 2021-03-01 10:37 平安喜乐v
阅读(22)
评论(0)
推荐(0)
2021年2月28日
安卓开发
摘要: 将TextView的blackground属性设置成上面这两个Drawable: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.
阅读全文
posted @ 2021-02-28 10:35 平安喜乐v
阅读(34)
评论(0)
推荐(0)
上一页
1
···
7
8
9
10
11
12
13
14
15
···
27
下一页
公告