Android修改Gallery页面布局
2011-06-15 14:37
441 查看
在Android 实现显示文字的Gallery的基础上,修改了文字的样式,效果如下:
方法如下,增加了布局文件:
本文出自 “Android小子的” 博客,请务必保留此出处http://androidrigl.blog.51cto.com/7531835/1249449
方法如下,增加了布局文件:
<textview xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/text1" android:textAppearance="?android:attr/textAppearanceMedium" android:textColor="#FFFF0000" android:layout_width="wrap_content" android:layout_height="wrap_content" android:maxLines="1" android:textSize="30sp" />然后修改Activity中Adapter,如下:
SpinnerAdapter spinnerAdapter = new SimpleAdapter(this,getData(), R.layout.myfont_layout, new String[] {"mydata"},new int[] { android.R.id.text1 });
本文出自 “Android小子的” 博客,请务必保留此出处http://androidrigl.blog.51cto.com/7531835/1249449
相关文章推荐
- Android修改Gallery页面布局
- Android修改Gallery页面布局
- Android--->LinearLayout页面布局方式
- Android自带抽屉布局及NavigationView的使用(动态加载头部图片,修改user名称)
- Android Launcher分析和修改6——页面滑动(PagedView)
- AndroidManifest.xml 中修改程序布局的 Theme 主题
- Android Launcher分析和修改2——Icon修改、界面布局调整、壁纸设置
- android页面布局时定义控件ID时@id/XX和@+id/xx 有什么区别
- Android页面布局视图
- .Net程序猿乐Android开发---(4)注册页面布局
- android页面布局时定义控件ID时@id/XX和@+id/xx 有什么区别?
- Android开发自定RadioGroup实现多布局重叠并单选&修改radioButton按钮样式
- android:布局之Gallery
- 【Android】使用自定义Adapter优化ListView、修改数据及控件内部布局
- ECLIPSE android 布局页面文件出错故障排除Exception raised during rendering: java.lang.System.arraycopy([CI[CII)V
- android布局页面中引入另一个布局页面
- android 中页面布局中属性
- Android布局设计之ExpandableList绑定XML数据构成级联、item布局页面的控件查找及配置child事件,自定义适配显示内容
- android 较高版本,页面分割线实现LinearLayoutCompat布局简单事例
- Android 2.3 Gallery3D添加gif支持——修改代码(三)