随笔分类 -  Android_Mars学习笔记

摘要:一、代码 1.xml(1)radio.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 android:o 阅读全文
posted @ 2016-02-13 15:49 shamgod 阅读(205) 评论(0) 推荐(0)
摘要:1.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <TableLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 android:layout_width="fill_ 阅读全文
posted @ 2016-02-13 14:26 shamgod 阅读(177) 评论(0) 推荐(0)
摘要:1.AndroidManifest.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <manifest xmlns:android="http://schemas.android.com/apk/res/android" 3 package="mars. 阅读全文
posted @ 2016-02-13 13:43 shamgod 阅读(154) 评论(0) 推荐(0)
摘要:一、代码 1.xml(1)activity_main.xml 1 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 xmlns:tools="http://schemas.android.com/ 阅读全文
posted @ 2016-02-13 11:54 shamgod 阅读(218) 评论(0) 推荐(0)
摘要:一、Intent简介 二、代码 1.activity_main.xml 1 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 xmlns:tools="http://schemas.android 阅读全文
posted @ 2016-02-12 22:27 shamgod 阅读(213) 评论(0) 推荐(0)
摘要:一、AppWidget介绍 1.要在手机生成AppWidget需的东西 (1)AppWidgetProviderInfo a).res\xml\example_appwidget_info.xml b)a中需要布局文件res\layout\example_appwidget.xml来定义AppWid 阅读全文
posted @ 2016-02-12 18:15 shamgod 阅读(209) 评论(0) 推荐(0)
摘要:1.main.xml 1 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 xmlns:tools="http://schemas.android.com/tools" 3 android:lay 阅读全文
posted @ 2016-02-12 17:26 shamgod 阅读(195) 评论(0) 推荐(0)
摘要:一、 1 public class CountriesActivity extends Activity { 2 protected void onCreate(Bundle icicle) { 3 super.onCreate(icicle); 4 setContentView(R.layout. 阅读全文
posted @ 2016-02-12 16:14 shamgod 阅读(159) 评论(0) 推荐(0)
摘要:一、文档用法 1.xml 1 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 xmlns:tools="http://schemas.android.com/tools" 3 android:l 阅读全文
posted @ 2016-02-12 16:11 shamgod 阅读(225) 评论(0) 推荐(0)
摘要:1.strings.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <resources> 3 4 <string name="app_name">S02_E01_SpinnerEtc</string> 5 <string name="hello_wor 阅读全文
posted @ 2016-02-12 15:41 shamgod 阅读(210) 评论(0) 推荐(0)
摘要:1.xml 1 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 xmlns:tools="http://schemas.android.com/tools" 3 android:layout_w 阅读全文
posted @ 2016-02-12 13:08 shamgod 阅读(209) 评论(0) 推荐(0)
摘要:1.xml 1 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 xmlns:tools="http://schemas.android.com/tools" 3 android:layout_w 阅读全文
posted @ 2016-02-12 13:06 shamgod 阅读(235) 评论(0) 推荐(0)
摘要:文档是这样来设置样式 <ProgressBar android:layout_width="wrap_content" android:layout_height="wrap_content" style="@android:style/Widget.ProgressBar.Small" andro 阅读全文
posted @ 2016-02-12 13:03 shamgod 阅读(166) 评论(0) 推荐(0)
摘要:1.xml 1 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 xmlns:tools="http://schemas.android.com/tools" 3 android:layout_w 阅读全文
posted @ 2016-02-12 12:03 shamgod 阅读(195) 评论(0) 推荐(0)
摘要:1. 1 <?xml version="1.0" encoding="utf-8"?> 2 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 android:layout_width="match 阅读全文
posted @ 2016-02-11 17:05 shamgod 阅读(165) 评论(0) 推荐(0)
摘要:1.netstone_layout.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 android:la 阅读全文
posted @ 2016-02-08 21:16 shamgod 阅读(210) 评论(0) 推荐(0)
摘要:一、介绍 二、1.linear_layout.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 andro 阅读全文
posted @ 2016-02-08 20:36 shamgod 阅读(274) 评论(0) 推荐(0)
摘要:一、ImageView介绍 设置scalType Must be one of the following constant values. ConstantValueDescription matrix 0 Scale using the image matrix when drawing. Se 阅读全文
posted @ 2016-02-08 20:32 shamgod 阅读(194) 评论(0) 推荐(0)
摘要:一、 1.checkbox_layout.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 android 阅读全文
posted @ 2016-02-08 14:03 shamgod 阅读(174) 评论(0) 推荐(0)
摘要:一、dpi、dp介绍 sp会随着用户在手机中设置字体大小而改变,而dp不会 二、1.dpsp_layout.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout xmlns:android="http://schemas.andro 阅读全文
posted @ 2016-02-08 13:58 shamgod 阅读(385) 评论(0) 推荐(0)

haha