随笔分类 - 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
阅读全文
摘要: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_
阅读全文
摘要: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.
阅读全文
摘要:一、代码 1.xml(1)activity_main.xml 1 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 xmlns:tools="http://schemas.android.com/
阅读全文
摘要:一、Intent简介 二、代码 1.activity_main.xml 1 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 xmlns:tools="http://schemas.android
阅读全文
摘要:一、AppWidget介绍 1.要在手机生成AppWidget需的东西 (1)AppWidgetProviderInfo a).res\xml\example_appwidget_info.xml b)a中需要布局文件res\layout\example_appwidget.xml来定义AppWid
阅读全文
摘要: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
阅读全文
摘要:一、 1 public class CountriesActivity extends Activity { 2 protected void onCreate(Bundle icicle) { 3 super.onCreate(icicle); 4 setContentView(R.layout.
阅读全文
摘要:一、文档用法 1.xml 1 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 xmlns:tools="http://schemas.android.com/tools" 3 android:l
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要:文档是这样来设置样式 <ProgressBar android:layout_width="wrap_content" android:layout_height="wrap_content" style="@android:style/Widget.ProgressBar.Small" andro
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要:一、介绍 二、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
阅读全文
摘要:一、ImageView介绍 设置scalType Must be one of the following constant values. ConstantValueDescription matrix 0 Scale using the image matrix when drawing. Se
阅读全文
摘要:一、 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
阅读全文
摘要:一、dpi、dp介绍 sp会随着用户在手机中设置字体大小而改变,而dp不会 二、1.dpsp_layout.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout xmlns:android="http://schemas.andro
阅读全文

浙公网安备 33010602011771号