Android
文章平均质量分 80
龙潭一条鱼
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
消息机制4
消息机制4main.xml文件内容。<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orienta原创 2015-08-10 21:10:19 · 435 阅读 · 0 评论 -
Animation动画之AlphaAnimation(透明度变化)
说到动画我想大家并不陌生,接下来就说一下Animation动画中的AlphaAnimation,这是一个改变组件透明度的类。接下来我们代码分析。1、首先编写布局文件。<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.androi原创 2015-08-14 14:21:27 · 3654 阅读 · 0 评论 -
Android事件处理
Android事件处理原创 2015-07-24 21:28:36 · 999 阅读 · 1 评论 -
标签(TabHost)
标签(TabHost):由于手机屏幕大小有限,为了更好地显示信息,我们可以设置多个标签,每当我们点击一个标签,就会显示这个标签中所设置的内容。这样做可以有效的节省屏幕空间。1、代码:(这个程序并没有用到main.xml布局文件,而是新创建了一个布局文件,所以在此不写main.xml文件的代码了)<LinearLayout xmlns:android="http://sche原创 2015-07-31 23:25:03 · 366 阅读 · 0 评论 -
计时器(Chronometer)
计时器(Chronometer):计时器顾名思义就是计时用的。1、代码<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"原创 2015-07-31 21:21:11 · 743 阅读 · 0 评论 -
文本切换
文本切换(TextSwitcher)1、代码:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:ori原创 2015-07-31 19:50:28 · 622 阅读 · 0 评论 -
Animation之TranslateAnimation(平移动画)
TranslateAnimation(平移动画)的意思无非就是一张图片或其他从一个位置到达另外一个位置。直接代码分析,相关重要属性参数解释都在代码中。1、首先编写main.xml文件。<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schem原创 2015-08-14 15:22:09 · 7127 阅读 · 0 评论 -
Animation之ScaleAnimation(缩放动画)
ScaleAnimation(缩放动画)缩放的意思就是对图片或者文字等进行扩大或缩小。下面开始编写代码,相关重要属性参数的解释都在代码中。1、编写main.xml文件。<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.and原创 2015-08-14 15:01:27 · 22485 阅读 · 0 评论 -
Service
Service(1)在android开发中,Services是一个很重要的组成部分,它的作用就是当你正在做一件事而又想做另外一件事的时候,而你又不想让正在做的事停止,这时就用到了Service。如果某些程序需要的部分操作是很耗时间的,那么可以将这些程序定义在Service中,即:Service是一个没有图形界面的Activity程序,而且当用户要执行某些操作需要进行跨进程访问的时候也可以使原创 2015-08-11 19:41:01 · 477 阅读 · 0 评论 -
Android相关控件
Android相关控件1、文本显示组件(TextView)原创 2015-07-23 23:43:05 · 507 阅读 · 0 评论 -
Android闹钟
Android闹钟在编写闹钟之前首先说一下Android中的广播机制,BroadCast是一种广泛应用的在应用程序之间传输信息的机制,例如在现实生活中人们听收音机,许许多多不同的广播电台发送特定频率的信号,当人们的收音机调成与广播电台频率相同时就可以收听广播内容了,Android中的广播机制差不多就是这个意思。注:1、在Android中我们所发送的广播内容是在一个Intent对象中的。原创 2015-08-13 19:20:42 · 1274 阅读 · 0 评论 -
列表显示(ListView)
列表显示(ListView)ListView与ScrollView类似。但是作用更加广泛,应用也比较多。代码:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layou原创 2015-07-30 09:12:41 · 584 阅读 · 0 评论 -
消息机制
消息机制main.xml代码<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layo原创 2015-08-10 19:48:35 · 332 阅读 · 0 评论 -
Service (剪贴板)
Service (2)大家应该都熟知剪贴板这个工具,下面就写一个简单的剪贴板。代码(main.xml):<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_heigh原创 2015-08-11 21:13:46 · 583 阅读 · 0 评论 -
消息机制
消息机制:在android中线程内部以及线程之间经常会进行通信,因此就会用到消息机制。下面看一些代码。main.xml文件代码。<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"原创 2015-08-10 19:01:27 · 460 阅读 · 0 评论 -
网格视图(GridView)
网格视图(GridView):网格视图的意思就是把屏幕按照一定的规则分开去显示准备显示的内容。1、代码<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="原创 2015-07-31 20:42:48 · 794 阅读 · 0 评论 -
Activity初步认识
Activity是Context的子类Activity的常用方法:public final View findViewById(int id) : 根据组件的ID取得它的对象(最常用)。public void setEnabled(boolean enabled) : 设置是否可以编辑。package com.example.timepicker;import android原创 2015-07-20 23:11:09 · 363 阅读 · 0 评论 -
对话框(Dialog)
一、对话框(Dialog)对话框就是程序与用户,或用户与程序进行人机交互当。比如说当我们退出某个程序时会弹出是否退出的对话框等等。代码:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" an原创 2015-07-30 09:12:49 · 1315 阅读 · 0 评论 -
Android布局管理器
Android布局管理器()1、TableLayout(采用表格的形式对控件的布局进行管理)。2、FramLayout(框架布局管理器)。3、LinearLayout(线性布局管理器)。一、对相关布局管理器的解释1、TableLayout。<TableLayout xmlns:android="http://schemas.android.com/apk/res/原创 2015-07-22 20:21:41 · 718 阅读 · 0 评论 -
信息提示框
信息提示框(Toast):信息提示框的意思就是当点击某一个按钮或其他组件会出现一个短暂或较长时间(也不是很长)的信息提示1、代码:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:la原创 2015-07-31 19:15:44 · 612 阅读 · 0 评论 -
随笔提示(AutoCompleteTextView)
Android基本控件1、滚动视图(ScrollView)由于手机屏幕有限,滚动视图就是当信息过多而无法在一个屏幕上显示完时提供滚屏的操作。<ScrollView 定义一个滚动视图 android:id="@+id/scroll" xmlns:android="http://s原创 2015-07-29 18:43:18 · 488 阅读 · 0 评论 -
滚动视图
1、滚动视图(ScrollView)由于手机屏幕有限,滚动视图就是当信息过多而无法在一个屏幕上显示完时提供滚屏的操作。<ScrollView 定义一个滚动视图 android:id="@+id/scroll" xmlns:android="http://schemas.andr原创 2015-07-30 09:09:35 · 574 阅读 · 0 评论 -
消息机制3
消息机制 main.xml文件代码。<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" androi原创 2015-08-10 20:56:22 · 532 阅读 · 0 评论
分享