基础控件的使用
文章平均质量分 63
Lisc8990
这个作者很懒,什么都没留下…
展开
-
如何在Android控件TextView中显示实时的时间
昨天在项目中遇到了在TextView控件中显示实时时间的情况 查阅了一些资料做起来很简单,今天整理一下,和大家共同学习 :xml布局文件如下 :就一个简单的TextView<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/...转载 2018-05-11 23:15:16 · 11455 阅读 · 4 评论 -
Button 按钮中改变字母全部是大写的问题
button按钮默认的字母状态是大写的 现在想让字母按自己的意思显示 更改button标签中的属性:android:textAllCaps="false"布局文件:<Button android:onClick="delTag" android:text="删除TagA" android:textAllCaps="false" ...原创 2018-05-28 18:52:27 · 2591 阅读 · 0 评论 -
RollViewPager 实现无限循环的轮播图效果
1.导入依赖:compile 'com.jude:rollviewpager:1.4.6'2. 在布局文件中添加控件:<com.jude.rollviewpager.RollPagerView android:id="@+id/rollPagerView" app:rollviewpager_play_delay="5000" android:lay...原创 2018-05-28 19:56:39 · 584 阅读 · 0 评论 -
AlertDialog 的基本使用
AlertDialog 在实际应用中的用途十分广泛 今天学习一下它的基本用法:java代码:AlertDialog alertDialog; public void dialogShow(View view) { AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.set...原创 2018-06-13 19:59:41 · 260 阅读 · 0 评论 -
EditText 进入页面默认失去焦点
需要在布局中对EditText的父布局,父布局,父布局设置两个属性android:focusable="true"android:focusableInTouchMode="true"原创 2019-03-29 11:47:14 · 2048 阅读 · 0 评论