編輯:關於android開發
試用的Activity文件ScrollViewDemoActivity.java
- package com.teleca.robin;
- import android.app.Activity;
- import android.os.Bundle;
- import android.os.Debug;
- public class ScrollViewDemoActivity extends Activity {
- /** Called when the activity is first created. */
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.main_scroll);
- }
- }
測試程序用的布局文件main_scroll.xml
- <?xml version="1.0" encoding="utf-8"?>
- <com.teleca.robin.ScrollLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/ScrollLayoutTest"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent" >
- <LinearLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:orientation="vertical"
- android:background="@drawable/girl">
- <TextView
- android:id="@+id/textView1"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:text="第一頁"
- android:textAppearance="?android:attr/textAppearanceLarge" >
- </TextView>
- </LinearLayout>
- <LinearLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:orientation="vertical"
- android:background="@drawable/girl2">
- <TextView
- android:id="@+id/textView1"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:text="第二頁"
- android:textAppearance="?android:attr/textAppearanceLarge" >
- </TextView>
- </LinearLayout>
- <LinearLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:orientation="vertical"
- android:background="@drawable/girl3"
- >
- <TextView
- android:id="@+id/textView1"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:text="第三頁"
- android:textAppearance="?android:attr/textAppearanceLarge" >
- </TextView>
- </LinearLayout>
- </com.teleca.robin.ScrollLayout>
android 特殊用戶通知用法匯總--Notification源碼分析 一直用的android手機,用過這麼多的app,平時也會遇到有趣的通知提醒,在這裡先總結
Android開發學習——ListView+BaseAdapter的使用,androidbaseadapterListView 就是用來顯示一行一行的條目的MVC結構&n
android重復的文件復制APK META-INF許可證錯誤記錄,apkmeta-inf* What went wrong:Execution failed for t
Android 播放在線視頻,android在線視頻首先開啟電腦上的tomcat,將視頻文件放在Tomcat 7.0\webapps\ROOT中 不用修改代碼,直接輸入地
Android Studio 優秀插件(二): Parcelable C