xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
andr...
分类:
其他好文 时间:
2015-04-20 18:35:19
阅读次数:
118
使用style替换背景,防止Activity黑色背景闪过1.原来的布局<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_...
分类:
移动开发 时间:
2015-04-17 22:25:19
阅读次数:
210
效果图》》
布局》》》
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@draw...
分类:
其他好文 时间:
2015-04-17 13:58:13
阅读次数:
227
<EditText ??????????????? android:id="@+id/searchEditText" ??????????????? android:layout_width="0dp" ??????????????? android:layout_height="fill_parent...
分类:
其他好文 时间:
2015-04-17 11:55:20
阅读次数:
121
android:id="@+id/toast_layout"
android:layout_width="200dip"
android:layout_height="fill_parent"
android:background="#f0f0f0"
android:orientation="vertical" >
andr...
分类:
移动开发 时间:
2015-04-17 11:26:46
阅读次数:
244
android:layout_width="200dp"
android:layout_height="wrap_content"
android:background="@android:color/black"
android:src="@drawable/v2_boutique_app_viewpager_indicator" />
...
分类:
移动开发 时间:
2015-04-17 09:42:47
阅读次数:
138
谷歌、百度该问题,发现,除非是真的忘记添加layout_height或者layout_width属性值,对于布局文件没有语法问题但又难以发现问题所在的情况,从自己的经历和一个帖子的说明看到,该错误多半是由于忘记在XML中添加某个属性的长度值。我遇到的情况,在布局中有如下的长度引用:android:l...
分类:
其他好文 时间:
2015-04-16 11:43:30
阅读次数:
219
如果不添加badgeview 点击是没有问题,如果添加了就点击不好使可以添加透明得button具体可以参考<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match...
分类:
其他好文 时间:
2015-04-15 23:26:21
阅读次数:
208
没什么技术难点,照着api做的。
这是效果图
我们先对Toast自定义一个布局:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="w...
分类:
移动开发 时间:
2015-04-14 19:47:18
阅读次数:
165
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
android:id="@+id/short...
分类:
移动开发 时间:
2015-04-14 11:22:10
阅读次数:
152