一、先送上效果图:
二、xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:...
分类:
移动开发 时间:
2014-12-31 18:27:44
阅读次数:
190
代码package com.lxt008;import com.lxt008.R;import android.app.Activity;import android.os.Bundle;import android.view.View;import android.widget.AdapterVi...
分类:
移动开发 时间:
2014-12-28 14:07:02
阅读次数:
284
spinner类的onDetachedFromWindow为protected,非同一package不能调用 public void packUpSpinnerPopup(){ try { Class spinner = m_Spinner.getClass...
分类:
其他好文 时间:
2014-12-27 15:13:05
阅读次数:
313
Spinner是个下拉列表框,与listview一样,也是adapterView的一个间接子类,是一个显示数据的窗口。 为Spinner设定数据来源 Mercury Venus Earth Mars Jupiter ...
分类:
其他好文 时间:
2014-12-26 06:07:41
阅读次数:
257
final static int[] COLOR_LIST={Color.WHITE,Color.WHITE,Color.GRAY,Color.YELLOW,Color.RED}; spinner=(Spinner)findViewById(R.id.spinner1); ArrayA...
分类:
移动开发 时间:
2014-12-25 22:00:44
阅读次数:
313
有时候因为项目的界面风格 很多控件如果使用原生的样式感觉会与整体风格有些不搭 所以需要自定义样式 很多项目中自定义控件都是必不可少的 这里参考网上的一些资料 实现了一个自定义Spinner 记录下 加深印象效果图: 弹框是通过一个重写的Dialog和Listview实现第一步 重写Dialog类Se...
分类:
移动开发 时间:
2014-12-25 18:10:07
阅读次数:
246
android系统自带的Spinner样式是远远满足不了我们实际开发过程中对Spinner UI风格的要求,因此我们肯定需要为了切合整个应用的风格,修改我们的Spinner样式。系统给我们提供了两种常见的修改方式,一个是用XML方式静 态,另一个就是Java代码动态来修改啦,我们这篇文章呢主要就是介...
分类:
移动开发 时间:
2014-12-25 17:55:47
阅读次数:
317
.spinner { width: 400px; height: 400px; background-color: #0cf; border-radius: 100%; -webkit-animation: scaleout 1.0s infinite ease-in-out;} @-...
分类:
Web程序 时间:
2014-12-24 17:59:05
阅读次数:
198
(1)两种方法提冲Spinner中的数据源:通过list集合,或者是通过xml文件进行配置
(2)布局代码如下:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:lay...
分类:
移动开发 时间:
2014-12-22 16:18:26
阅读次数:
250
不知道UIRefreshController是什么的朋友可以参考iOS6新特征:UIRefreshControl[下拉刷新]使用示例一文了解这是什么,这里只提怎么使用代码的方式触发UIRefreshControl显示spinner动画,并发起正常情况下下拉之后进行的流程。项目中需要在界面显示出来的时...
分类:
其他好文 时间:
2014-12-17 20:28:31
阅读次数:
204