??1 布局文件, 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-19 01:31:50
阅读次数:
137
Android计算器开发实例
最近迷上了安卓开发, 自己做了个web浏览器,很好用,现在想做一个简单的计算器程序员,熟悉安卓的编程基础。下面我们来一起看一下吧。let`s go!
main.xml代码
http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"...
分类:
移动开发 时间:
2015-06-18 17:22:41
阅读次数:
150
第一种方法 图片自动依次轮播,第一轮轮播完,重新回到第一张轮播,但是界面不会后退去定位到第一张图片
main.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/rl"
android:layout_width="fill_parent"...
分类:
其他好文 时间:
2015-06-18 13:42:14
阅读次数:
166
//首先在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
在 AndroidManifest.xml中添加网络权限
activity_main.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="m...
分类:
移动开发 时间:
2015-06-16 19:24:03
阅读次数:
15580
本例主要研究一下如何在TextView中显示网页链接和改变特定文字颜色1.main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match...
分类:
移动开发 时间:
2015-06-16 19:17:38
阅读次数:
234
理论部分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