我们有一个TextView,其里面的内容是可以通过代码动态改变的,我们想用一张图片作为TextView的背景,实现类似于手机QQ对话中的气泡文本效果。TextView定义如下:<TextView android:text="@string/hello_world"
android:layout_width="wrap_content"
android:layout_h...
分类:
其他好文 时间:
2016-01-05 01:34:29
阅读次数:
187
对手势感到好奇从网上学习了一部分。保存:在xml中添加手势绘制即类似画板可以绘制手势的:<android.gesture.GestureOverlayView
android:id="@+id/gesture"
android:layout_width="match_parent"
android:layout_height="match_parent"/>设置手势的一些属性:mGov=(Gest..
分类:
移动开发 时间:
2015-12-14 12:36:21
阅读次数:
242
今天碰到一个关于Button的问题:android Button上面的英文字符串会自动变成大写,运行的Android 5.1版本,如下图所示:图1:Button 图2:TextView这个Button的定义代码如下 <Button
android:id="@+id/addContacts"
android:layout_width="match_p...
分类:
移动开发 时间:
2015-12-10 13:33:19
阅读次数:
167
API这样介绍这种布局:示例:(来自API)注:打开默认展开第一个面板。Ext.create('Ext.panel.Panel', { title: 'Accordion Layout', width: 300, ...
分类:
Web程序 时间:
2015-12-07 20:53:11
阅读次数:
343
观看幕课网的视频的收获“layout_”下划线开头的属性都是交给父容器去处理的属性,如: android:layout_width="match_parent" android:layout_height="match_parent"没有layout_”下划线开头的属性都...
分类:
其他好文 时间:
2015-12-05 15:55:25
阅读次数:
105
今天在真机调试低版本系统的时候出现如题类似Layout Max Width在ios 8 之前不适用的问题,初步估计是autolayout 所导致的查找资料解决方法如下:将label下Preffered Width 设置成大于0.
分类:
移动开发 时间:
2015-12-02 22:33:31
阅读次数:
293
<RelativeLayoutxmlns: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:orientation="vertical">
<!--定义获得屏幕状态..
分类:
移动开发 时间:
2015-12-02 12:45:03
阅读次数:
150
第一在使用XScrollView布局是,无法在该布局.xml文件,放置内容布局控件,假如放置了会报错<com.markmao.pulltorefresh.widget.XScrollView
android:id="@+id/scroll_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@..
分类:
其他好文 时间:
2015-11-23 19:18:32
阅读次数:
185
widget.xml <?xml?version="1.0"?encoding="utf-8"?>
<LinearLayout?xmlns:android="http://schemas.android.com/apk/res/android"
????android:layout_width="match_parent"
????android:layout_heig...
分类:
其他好文 时间:
2015-11-18 10:53:45
阅读次数:
141
//layout布局<?xmlversion="1.0"encoding="utf-8"?><RelativeLayoutxmlns: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:pa..
分类:
移动开发 时间:
2015-11-16 17:42:42
阅读次数:
240