Android控件实例
文章平均质量分 92
易辰_
当你的能力撑不起你的野心的时候,你就静下心来努力学习
展开
-
写字板
activity_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:lay原创 2015-07-28 23:27:29 · 724 阅读 · 0 评论 -
匿名项目连载(五)--->发布说说
点击左边图片右上角的加号,进行发表说说界面AtyPublishpackage com.jikexueyuan.secret.atys;import com.jikexueyuan.secret.Config;import com.jikexueyuan.secret.R;import com.jikexueyuan.secret.net.Publish;import andro原创 2015-08-24 14:48:28 · 506 阅读 · 0 评论 -
黑马北京新闻项目连载(1)--->引导界面
看引导界面效果先看欢迎界面的布局(动画效果)activity_welcome.xml[html] view plaincopyRelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" androi原创 2015-09-19 22:32:36 · 951 阅读 · 0 评论 -
黑马北京新闻项目连载(8)--->画片缓存
先看主页的布局文件menu_photo_pager.xml<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" > <ListVie原创 2015-09-26 14:15:51 · 644 阅读 · 0 评论 -
黑马北京新闻项目连载(7)--->图片轮播
activity_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:lay原创 2015-09-25 10:00:18 · 1126 阅读 · 0 评论 -
黑马北京新闻项目连载(6)--->Gson解析、刷新加载、WebView展现
点击打开链接,下载项目源码主页面布局activity_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"原创 2015-09-24 17:39:54 · 896 阅读 · 0 评论 -
黑马北京新闻项目连载(5)--->ViewPagerIndicator结合PagerAdapter使用
上篇是ViewPagerIndicator结合FragmentPagerAdapter 使用,这篇是ViewPagerIndicator结合PagerAdapter使用上篇链接地址 ViewPagerIndicator初探使用(开源库的Git上的demo)布局文件activity_main.xml<LinearLayout xmlns:android="http://s原创 2015-09-22 00:25:26 · 899 阅读 · 0 评论 -
黑马北京新闻项目连载(4)--->ViewPagerIndicator结合FragmentPagerAdapter(开源库的Git上的demo)
开源库和代码下载地址由于项目中用到这个开源库,所以将git上的demo,摘出来,先学习下,后续在写一篇添加pager的,这篇是fragment布局文件activity_main.xml //布局线性布局 上面TabPageIndicator 下面ViewPager<LinearLayout xmlns:android="http://schemas.and原创 2015-09-21 20:59:43 · 1015 阅读 · 0 评论 -
黑马北京新闻项目连载(3)--->Tab栏、侧栏页面完成
开源库、源码、服务器代码下载地址这篇博客去下载资料1、这篇就实现菜单栏切换对应的新闻、专题、组图、互动界面2、重点实现新闻页面--新闻页面还包含可以左右移动的11个子界面——————————————————首先贴出服务器地址和json数据bean——————————————————GlobalContantspackage com.itheima.zhb原创 2015-09-20 17:39:06 · 1185 阅读 · 0 评论 -
匿名项目连载(四)--->评论说说
AtyMessagepackage com.jikexueyuan.secret.atys;import java.util.List;import com.jikexueyuan.secret.Config;import com.jikexueyuan.secret.R;import com.jikexueyuan.secret.net.Comment;import com.j原创 2015-08-24 14:40:26 · 709 阅读 · 0 评论 -
匿名项目连载(三)--->说说列表
AtyTimeline(联系人说说的列表)package com.jikexueyuan.secret.atys;import java.util.List;import android.app.ListActivity;import android.app.ProgressDialog;import android.content.Intent;import android.o原创 2015-08-24 14:32:42 · 715 阅读 · 0 评论 -
侧滑删除进阶(五)
*********************************************跟上一篇效果一样***********************************activity_main.xml<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:to原创 2015-08-12 16:50:30 · 758 阅读 · 0 评论 -
侧滑删除进阶(四)
滑动删除j原创 2015-08-12 16:48:41 · 695 阅读 · 0 评论 -
侧滑删除进阶(二)
侧滑删除,popupwindow实现原创 2015-08-12 16:35:41 · 659 阅读 · 0 评论 -
上拉加载(二)
上拉加载原创 2015-08-08 09:30:51 · 735 阅读 · 0 评论 -
下拉刷新(二)!
下拉刷新原创 2015-08-08 00:37:47 · 1239 阅读 · 0 评论 -
侧滑删除进阶(一)
效果是在某个Item上右滑可以删除某个条目--效果虽然很简单,但是思路很重要原创 2015-08-12 16:28:25 · 753 阅读 · 0 评论 -
匿名项目连载(一)--->项目概要
一、项目项目概要工作期间,周天闲来无聊,就花了一天时间看点视频学习学习,项目虽小,五脏不全,但是涉及到的知识有1、项目登录流程--获取验证码,通过手机号MD5加密、验证码登录,登录成功后返回Token标识本地存储2、网络通讯--HttpUrlConnection、AsyncTask异步任务3、大量的接口编程、回调接口4、手机联系人上传,评论上传,说说上传及其下载5、JSon原创 2015-08-24 13:58:34 · 1065 阅读 · 2 评论 -
匿名项目连载(二)--->登录流程
先看访问服务器的2种方式--枚举HttpMethodpackage com.jikexueyuan.secret.net;public enum HttpMethod { GET,POST}NetConnection(访问服务器的公共基类)package com.jikexueyuan.secret.net;import java.io.BufferedReader;i原创 2015-08-24 14:19:30 · 838 阅读 · 0 评论 -
黑马北京新闻项目连载(2)--->侧滑菜单栏、主页面Fragment搭建
项目Json数据下载地址。。。北京新闻框架代码侧滑开源库下载。。。xutil库下载,,,先看总体的导图看ui图************************************************先看整体布局开始*************************************************原创 2015-09-20 14:52:26 · 993 阅读 · 0 评论 -
微信6.0-变色TAB栏
activity_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:hyman="http://schemas.android.com/apk/res/com.i原创 2015-07-26 22:56:29 · 915 阅读 · 0 评论 -
ScrollView嵌套圆角Listview 实现同时滑动效果
免积分下载demo效果图如下,我的模拟器异常,就看个静态图片把: 首先看主布局文件activity_main.xml<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layo原创 2016-08-12 17:27:28 · 1501 阅读 · 0 评论 -
收藏2个常用的进度条
免积分下载代码activity_main.xml主页布局就2个button,分别弹出不同效果的2个进度条<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width=原创 2016-08-12 13:25:12 · 592 阅读 · 0 评论 -
一款清新、简约的PopupWindow
点击打开链接,免积分下载主界面布局activity_main.xml 就是有左边右边2个imageview生成2个popupwindow<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/原创 2016-07-04 15:32:19 · 1290 阅读 · 0 评论 -
ListView分组导航+挤压动画(二)
activity_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="v原创 2015-08-27 19:04:27 · 637 阅读 · 0 评论 -
弧形Dialog进度条
点击打开链接,免积分下载MainActivitypackage com.example.waitprogress;import android.annotation.SuppressLint;import android.app.Activity;import android.os.Bundle;import android.os.Handler;imp原创 2016-07-04 18:15:55 · 530 阅读 · 0 评论 -
高仿IOS---Dialog(底部式)
activity_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layou原创 2015-10-31 18:01:05 · 4516 阅读 · 0 评论 -
下拉刷新之高仿京东头部快递小哥(1)
先看主页面布局文件activity_main.xml--有一个SeekBar、还有一个缩放快递小哥的自定义控件<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layou原创 2015-11-24 19:23:55 · 996 阅读 · 0 评论 -
ListView分组导航+挤压动画(一)
感谢郭神,转自郭神——————————————————————————————————————————首先来看下面这个表格,这是一个排序好的list,Position是唯一,就像ID一样; List是排序的数据;Section是分组的号PositionListSection0A01AB02AC0原创 2015-08-27 17:06:15 · 1355 阅读 · 0 评论 -
ViewPager实现页面切换
先贴出来效果图(切换每个Tab键,页面跟随变化,效果图蓝条增加用户体验)首先看整体效果图的布局文件吧(很简单,就三部分,分别是Tab栏目、定位蓝条、各个页面(是V4包下的ViewPager))activity_tab_winter_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res原创 2015-06-02 22:39:10 · 1144 阅读 · 0 评论 -
ListView阻尼效果
效果图省略。。。activity_main.xml(只有一个自定义ListView)<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="原创 2015-06-04 17:20:19 · 1286 阅读 · 0 评论 -
BadgeView+weixinUi
activity_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layou原创 2015-07-22 00:05:43 · 781 阅读 · 0 评论 -
ViewPager手势切换页面+图片左右轮播效果(精简版本)
效果图是:手势可以左右滑动界面,并且自动从第一张开始轮播到最后一张图片,紧接着开始从最后一张图片开始向反方向第一张轮播源码地址就不传了,代码已经贴出,你可以随便放5张图片即可activity_main.xml<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:too原创 2015-06-17 19:33:59 · 1336 阅读 · 0 评论 -
实现页面切换(动画效果实现,不用ViewPager)
源码地址 http://write.blog.csdn.net/postedit/46439929先看主页面布局activity_main<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" and原创 2015-06-10 11:52:34 · 1306 阅读 · 0 评论 -
AnimWelcome引导页面VS图片切换动画效果
LensFocusActivitypackage com.example.animwelcome;import android.app.Activity;import android.graphics.drawable.Drawable;import android.os.Bundle;import android.view.animation.Animation;import a原创 2015-06-09 20:23:33 · 976 阅读 · 0 评论 -
ScrollView阻尼效果
activity_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layou原创 2015-06-04 23:46:04 · 2621 阅读 · 0 评论 -
getAllAPP
activity_main.xml<ListView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertic原创 2015-03-05 22:01:57 · 788 阅读 · 2 评论 -
ExpandableListView+pull解析
activity_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:lay原创 2015-05-25 13:17:54 · 971 阅读 · 0 评论 -
TabHost三种方法
方式一:TabHost继承TabActivity方法相当简单首先看布局文件activity_main.xml<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fil原创 2015-06-02 14:20:32 · 770 阅读 · 0 评论 -
侧滑删除进阶(六)
activity_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layou原创 2015-08-12 16:54:27 · 589 阅读 · 0 评论