写UI布局:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"...
分类:
移动开发 时间:
2015-07-05 01:00:23
阅读次数:
329
1. layout xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_...
分类:
其他好文 时间:
2015-07-04 19:49:02
阅读次数:
292
1. main layout:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layou...
分类:
其他好文 时间:
2015-07-04 16:45:14
阅读次数:
150
TextView 显示文本框控件EditText输入文本框TextView的常用属性android:id---控件的idandroid:layout_width---控件的高度android:text ---文本内容android:textSize ---文本大小androidtextColor ....
分类:
移动开发 时间:
2015-07-04 09:33:20
阅读次数:
130
WebView(网络视图)能加载显示网页,可以将其视为一个浏览器。它使用了WebKit渲染引擎加载显示网页,使用方法很简单,直接在XML文件中写入webview控件即可,主要代码如下:
<AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="mat...
分类:
Web程序 时间:
2015-07-03 15:48:43
阅读次数:
281
一丶一个简单的访问服务器(访问网易新闻客户端)点击加载新闻:首页的布局文件<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:layout_height="match..
分类:
其他好文 时间:
2015-07-02 01:16:49
阅读次数:
146
当输入文字过多的时候,固定的高度,让字体可以滚动查看:
<ScrollView
android:id="@+id/ScrollView2"
android:layout_width="fill_parent"
android:layout_height="200px"
android:layout_marginBottom="8d...
分类:
其他好文 时间:
2015-06-26 16:19:19
阅读次数:
122
下面是布局文件里的代码,有两个TextView,但是为什么运行后只显示第一个TextView?? 1 2 6 10 11 15 16 解决办法:android:layout_width="match_parent" android:layout_height="m...
分类:
系统相关 时间:
2015-06-26 16:15:11
阅读次数:
167
<?xmlversion="1.0"encoding="utf-8"?>
<FrameLayoutxmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/view_compass"
android:layout_..
分类:
移动开发 时间:
2015-06-26 15:09:20
阅读次数:
219
xml文件代码部分<LinearLayoutxmlns: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"
>
<Image..
分类:
移动开发 时间:
2015-06-25 21:23:55
阅读次数:
170