自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(3)
  • 收藏
  • 关注

转载 spinner 自定义样式

单纯的spinner并不能满足界面要求,可以修改spinner的background来实现。 <Spinner    android:id="@+id/space_plan_spinner"    android:layout_width="200dp"    android:layout_height="40dp"    android:layout_marginLeft=...

2018-10-19 09:46:31 643 1

原创 Android开发修改Spinner选中以后列表字体的颜色

    遇到这样一个需求,找了很久只找到能修改初始文字的颜色,不能改列表中的颜色。最后解决的实现方法是新写一个adapter去继承ArrayAdapter,在使用这个adapter的时候,传入点击的位置,然后在adapter里改变颜色。以下为自定义的adapter:import android.content.Context;import android.graphics.Color;impo...

2018-04-27 14:13:25 2828

转载 自定义ListView解决ScrollView嵌套ListView问题

import android.content.Context;import android.util.AttributeSet;import android.widget.ListView;public class ListViewForScrollView extends ListView {    public ListViewForScrollView(Context context) { ...

2018-04-26 09:05:13 112

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除