本博文介绍了基本的Spinner的使用方法首先写一下xml中的代码部分<Spinner
android:id="@+id/myspinner"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>再写一下Strings.xml中的文件部分<string-array
name="tongxue"
>
<ite..
分类:
移动开发 时间:
2015-06-23 13:45:51
阅读次数:
182
代码已经整理好,这里要说一下,因为手动和Json获取写法不一样。手动直接xml设置:<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="..
分类:
移动开发 时间:
2015-06-19 21:50:01
阅读次数:
265
xml文件代码部分<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:padding="10dp"
>
<EditText
a..
分类:
移动开发 时间:
2015-06-19 21:39:20
阅读次数:
180
xml中的代码实现<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:padding="20dp"
>
<TextView
and..
分类:
移动开发 时间:
2015-06-19 13:40:55
阅读次数:
152
//首先在XML文件中配置一下
<TextView
android:id="@+id/textViewId"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="数据"
/>
<Button
android:id="@+id/butid"
android:layout_width="match_parent"
android:layout..
分类:
移动开发 时间:
2015-06-18 11:45:13
阅读次数:
176
理论部分1、ScrollView和HorizontalScrollView是为控件或者布局添加滚动条2、上述两个控件只能有一个孩子,但是它并不是传统意义上的容器3、上述两个控件可以互相嵌套4、滚动条的位置现在的实验结果是:可以由layout_width和layout_height设定5、Scroll...
分类:
移动开发 时间:
2015-06-15 22:00:50
阅读次数:
175
<?xml?version="1.0"?encoding="utf-8"?>
<LinearLayout?xmlns:android="http://schemas.android.com/apk/res/android"
????android:layout_width="match_parent"
????android:layout_height="match_...
分类:
其他好文 时间:
2015-06-15 19:01:50
阅读次数:
96
<EditText
android:id="@+id/et_endeValue"
android:textSize="20pt"
android:minLines="2"
android:maxLines="3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:hint="请在这里输入内容"
android:text=""/>
android:id@+id是在R...
分类:
移动开发 时间:
2015-06-15 16:45:51
阅读次数:
118
main.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_height="...
分类:
移动开发 时间:
2015-06-15 09:19:29
阅读次数:
189
学习Android的同学可能想让TabHost的标签在底部实现,如下图所示很简单的实现,只需要在两个地方改动即可:改动一:将标签对放在标签的下面改动二:在中修改两条代码1. android:layout_height = "0dp"2. android:layout_weight = "1"
分类:
移动开发 时间:
2015-06-13 21:23:23
阅读次数:
131