AndroidManifest,xml
activity_main.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_widt...
分类:
移动开发 时间:
2015-08-04 13:30:04
阅读次数:
305
首先我们看看代码:1.activity_main.xml: 2.然后是MainActivity.java:package com.himi.textview_img;import android.app.Activity;import android.gra...
分类:
移动开发 时间:
2015-08-04 13:28:25
阅读次数:
289
activity_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:lay...
分类:
其他好文 时间:
2015-08-04 00:42:39
阅读次数:
129
ListView Layout示例:MainActivity.java中定义待显示的数据countryArray,在activity_main中定义ListView,activity_listview中定义TextView。 1 package com.example.shad_fnst.listv...
分类:
其他好文 时间:
2015-08-03 19:03:33
阅读次数:
87
1.创建程序activity_main:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientatio...
分类:
移动开发 时间:
2015-08-02 18:24:36
阅读次数:
184
众所周知,我们既可以在activity_main.xml文件中控制activity中的view,也可以使用java代码的set..()方法控制它。在学习过程中,发现在ADT新版本中,和以前版本有区别:新建Andriod工程后,MainActivity不再继承Activity,而继承的是ActionB...
分类:
编程语言 时间:
2015-08-02 11:27:57
阅读次数:
191
**************************************ViewPager***************************************************
activity_main.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xm...
分类:
其他好文 时间:
2015-07-31 01:25:53
阅读次数:
110
布局如下:activity_main.xml 1 5 6 12 13 activity_main.xmlshape 实现效果:android:shape有四种形状,分别为:rectangle矩形 oval椭圆形 line线形 ring环形。strok...
分类:
其他好文 时间:
2015-07-30 19:17:04
阅读次数:
131
activity_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:lay...
分类:
其他好文 时间:
2015-07-29 01:06:54
阅读次数:
203
1.activity_main_fragment.xml 2.fragment1.xml 3.fragment2.xml 4.fragment3.xml 5.fragmen...
分类:
移动开发 时间:
2015-07-28 12:31:47
阅读次数:
154