android 时间轴
来源:互联网 发布:java 图片上传 跨域 编辑:程序博客网 时间:2024/06/05 19:57
今天 郁闷 搞了一天, 刚好今天 自己的 4.2.2的手机 放家里了, 公司用 4.3的 三星 note2 做时间轴
结果 打死都这样 ,中间的 9.png 图片无法拉伸 ,气死,
后来 找朋友救援 , 他说他的手机可以。 我郁闷死了 找不到原因
结果一回家, 把代码重新撞到我的 4.22机器上, 居然好了。
看来 和 操作系统版本有关系。 所以 中间图片的线 不能用 。9.png拉伸
最后没办法, 在 装listview的 配置文件 增加一个 absloulete一根线 才搞定
用4.22的机器 效果是正常的
修改代码 适配 2个 机器
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="zms.zte.listview.activity.TimeLine" >
<AbsoluteLayout
android:layout_width="wrap_content"
android:layout_height="match_parent" >
<View
android:layout_width="1dp"
android:layout_height="fill_parent"
android:layout_x="64dp"
android:background="@color/maroon"
/>
</AbsoluteLayout>
<ListView
android:id="@+id/timeListV"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:dividerHeight="10dp"
android:divider="@drawable/dx_42"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true" >
</ListView>
</RelativeLayout>
items布局文件
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="10dp "
android:layout_marginBottom="10dp"
>
<TextView
android:id="@+id/time"
android:layout_width="50dp"
android:layout_height="70dp"
android:layout_alignParentLeft="true"
android:layout_centerInParent="true"
android:gravity="center_vertical"
android:layout_marginLeft="2dp"
android:text="tt" />
<TextView
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:layout_toRightOf="@id/imageView1"
android:background="@drawable/memo"
android:text="zms" />
<!-- android:layout_alignTop="@id/title"
android:layout_alignBottom="@id/title" -->
<ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@id/title"
android:layout_alignBottom="@id/title"
android:layout_centerVertical="true"
android:layout_toRightOf="@+id/time"
android:background="@drawable/yuan"
/>
</RelativeLayout>
- android 时间轴
- Android实现时间轴
- android 时间轴
- Android 时间轴效果
- android时间轴
- 时间轴Android
- Android自定义时间轴
- Android自定义时间轴
- android 时间轴实现
- Android实现时间轴
- android 仿Path时间轴
- Android 时间轴的实现
- Android时间轴的实现
- Android时间轴简单优化
- Android 时间轴的实现
- Android中时间轴显示
- Android开发时间轴 TimeLine
- Android 时间轴的实现
- 针对beaglebone 扩展板,进行Linux驱动的调试
- 借用指针输出二维数组
- MySQL 数据库相关
- 关于void a;和void *a;
- 第十八章 18.1.5节练习
- android 时间轴
- 开发笔录
- uva 253 Cube painting
- IOS疯狂基础之屏幕旋转控制,获得当前方向
- 软件安装--telnet客户端和服务的安装
- 一季16集
- DG实验
- python核心编程7.5答案ver1
- Cocos2d-x 3.2 android实现原生对话框