码迷,mamicode.com
首页 >  
搜索关键字:layout_height    ( 604个结果
Android嵌套滑动控件的冲突解决和ViewPager适配当前子控件高度不留空白的办法
最近项目有一个需求,需要多层可滑动控件的嵌套展示,demo效果如下: 咋一看好像挺简单啊,不就是一个ScrollView + ViewPager + ListView吗,我开始也这样觉得,也用的这种方式实现,结果始终和效果不对劲。这里总结几点问题: 两个或两个以上的滑动控件嵌套时,如果layout_height采用的是wrap_content会造成内部滑动控件的高度不能...
分类:移动开发   时间:2016-06-19 06:50:58    阅读次数:501
UI控件之显示文本控件TextView(下)
(一)带阴影的TextView 涉及到的几个属性: 运行效果如下: 实现代码: <TextView android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:la...
分类:其他好文   时间:2016-06-19 06:48:16    阅读次数:295
Android项目创建欢迎页
1、制作一张启动图片splash.png,放置在res->drawable-hdpi文件夹中。 2,布局文件 <RelativeLayout xmlns:Android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="...
分类:移动开发   时间:2016-06-16 14:50:19    阅读次数:176
listview使用总结
1. android给listview的item设定高度 原文网址:http://blog.csdn.net/l_serein/article/details/7403992 在item的layout文件中,用android:layout_height设置item的高度。运行,高度设置无效。解决办法 ...
分类:其他好文   时间:2016-06-05 18:32:57    阅读次数:187
java.lang.IllegalStateException: Circular dependencies cannot exist in RelativeLayout
<ImageView android:id="@+id/singleimage" android:layout_width="@dimen/magin_corner70" android:layout_height="@dimen/magin_corner70" android:layout_ali ...
分类:编程语言   时间:2016-06-01 12:58:56    阅读次数:439
自定义状态栏notification布局
布局定义custom_notification.xml<?xmlversion="1.0"encoding="utf-8"?> <RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <ImageView android:id="@+..
分类:其他好文   时间:2016-05-25 19:04:49    阅读次数:438
GridView+下拉刷新+上拉加载
一、布局 1.activity_main布局     android:id="@+id/refresh_view"     android:layout_width="match_parent"     android:layout_height="match_parent" >                 android:id="@+id/gv"   ...
分类:其他好文   时间:2016-05-21 10:19:10    阅读次数:222
Android LinearLayout布局的layout_weight属性探究
Android布局文件中的layout_weight属性仅在LinearLayout布局中有效。 google推荐:当设置了控件的layout_weight属性时,该控件相应的layout_width或者layout_height属性应该设置为0dp。 如果设置了控件的layout_weight属性同时,又设置了layout_width或者layout_height属性,此时有多种情况需要分析...
分类:移动开发   时间:2016-05-18 18:50:51    阅读次数:255
layout_weight及常见属性解析
我们看一下下面的代码<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="...
分类:其他好文   时间:2016-05-12 23:53:03    阅读次数:325
59、微信-我-设置SettingActivity
xml version="1.0" encoding="utf-8"?>LinearLayoutandroid:gravity="center_horizontal"android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="fill_parent"xmlns:android="htt...
分类:微信   时间:2016-05-12 20:20:15    阅读次数:398
604条   上一页 1 ... 13 14 15 16 17 ... 61 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!