1,titlebar button + textview实现 在layout文件夹内创建titlebar.xml文件 创建一个水平linearlayout ,将button与text放进去,根绝上一节的 自适应特性 设置 layout-width 与layout-height 值...
分类:
移动开发 时间:
2015-06-25 19:04:24
阅读次数:
259
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".MainActivity" ...
分类:
其他好文 时间:
2015-06-25 17:35:24
阅读次数:
115
edittext 默认自动获取焦点的 而且会出现小键盘很烦人
android:id="@+id/focus"
android:layout_width="fill_parent"
android:layout_height="60dp"
android:background="#E...
分类:
其他好文 时间:
2015-06-25 12:28:30
阅读次数:
150
最近看到同事写的一段代码,很简单吧就是:
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:orientation...
分类:
移动开发 时间:
2015-06-24 11:01:00
阅读次数:
122
activity_main.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layou...
分类:
移动开发 时间:
2015-06-23 21:43:43
阅读次数:
178
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"
android:padding="5dp"
&g..
分类:
移动开发 时间:
2015-06-23 18:12:19
阅读次数:
144
本博文介绍了基本的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