Time of Update: 2016-07-21
android xml的產生與解析,androidxml解析Main javapackage com.itheima.xml;import android.app.Activity;import android.content.Context;import android.os.Bundle;import android.view.View;import android.view.View.OnClickListener;import android.widget.Button;import
Time of Update: 2016-07-21
[android] 安卓自訂樣式和主題,android安卓簡單練習自訂樣式和主題,樣式是加在View上,主題是加在Application或者Activity上styles.xml<?xml version="1.0" encoding="utf-8"?><resources xmlns:android="http://schemas.android.com/apk/res/android"> <!-- 自訂樣式 --> <style
Time of Update: 2016-07-21
android 資料庫的增刪改查,android增刪主javapackage com.itheima.crud;import android.app.Activity;import android.content.Context;import android.database.sqlite.SQLiteDatabase;import android.os.Bundle;import android.view.View;import
Time of Update: 2016-07-21
mac 下安裝安卓模擬器,mac安裝安卓模擬器mac下的安卓模擬器——bluestacks下載:http://pan.baidu.com/s/1kVvZyYz該安卓模擬器除了能網路下載apk,本地還能安裝apk,但是與win版不同,安裝不是那麼簡單下載好apk首先開啟bluestacks,然後開“終端”輸入:~/Library/BlueStacks\ App\ Player/Runtime/uHD-Adb
Time of Update: 2016-07-21
android 資料庫的建立,android資料庫建立主javapackage com.itheima.createdatabase;import android.app.Activity;import android.content.Context;import android.database.sqlite.SQLiteDatabase;import android.os.Bundle;public class MainActivity extends Activity {
Time of Update: 2016-07-20
android軟體開發之TextView控制項常用屬性,androidtextviewTextView控制項text屬性,設定顯示的文本textColor:設定文本顏色textSize:設定文本字型大小autoLink:設定文本為電話,URL串連等的時候是否顯示為可點擊的連結cursorVisible:設定游標為顯示或者隱藏,預設為顯示drawableTop:在文本上方輸出一個drawable,片drawableLeft、drawableBottom、drawableRight如上drawabl
Time of Update: 2016-07-18
Android 在不同Actitity之間資料傳遞,androidactitity本文實現一個簡易的人品計算機來實踐在不同Actitity之間資料傳遞intent的資料傳遞從A介面開啟B介面 把A介面的資料傳遞給B介面1. intent.setData(uri) -- intent.getData();可以傳遞簡單的文本資料。2. intent.putExtra(name, value)8大基本類型的資料,數組都可以傳遞String對象 可以傳遞
Time of Update: 2016-07-20
android 檔案的許可權,android檔案許可權 檔案的許可權概念 檔案的4種操作模式: Context.MODE_PRIVATE:為預設操作模式,代表該檔案是私人資料,只能被應用本身訪問,在該模式下,寫入的內容會覆蓋原檔案的內容,如果想把新寫入的內容追加到原檔案中。可以使用Context.MODE_APPEND
Time of Update: 2016-07-21
android ListView的介紹和最佳化,androidlistviewxml設計<?xml version="1.0"?>-<RelativeLayout tools:context=".MainActivity" android:paddingTop="@dimen/activity_vertical_margin" android:paddingRight="@dimen/activity_horizontal_margin"
Time of Update: 2016-07-19
Content Providers,contentprovidersContent providers manage access to a structured set of data. They encapsulate the data, and provide mechanisms for defining data security. Content providers are the standard interface that connects data in one
Time of Update: 2016-07-19
Android Studio2.1.2 Java8環境下引用Java Library編譯出錯,studio2.1.2java8問題:在Android Studio2.1.2+Java8的環境下,引用Java Library,同時引用了dataBinding處於enable狀態,會導致編譯出錯,如所示:解決步驟:1、在所有的module的build.gradle檔案中添加如下代碼:android { compileOptions { sourceCompatibility
Time of Update: 2016-07-19
Building Local Unit Tests,buildingtestsIf your unit test has no dependencies or only has simple dependencies on Android, you should run your test on a local development machine. This testing approach is efficient because it helps you avoid the
Time of Update: 2016-07-18
開源的Android開發架構-------PowerFramework使用心得(四)資料庫管理DBFarmer,.netframework開源DBFarmer是PowerFramework資料庫管理工具的集合。可以進行對象的儲存,添加了setter和getter的參數會被收錄到資料庫中,每個參數作為一個項,int類型的id或_id會被作為primary
Time of Update: 2016-07-18
Android編程: 介面組成、事件監聽器,android監聽器學習知識:介面組成、事件監聽器====介面組成====1.使用者介面的基本組件叫做View,都是繼承android.view.View類,Android裡面預定義很多基本的介面組件,比如Button, CheckBox, ProgressBar and TextView,它們一般稱作組件或是組件(widgets or
Time of Update: 2016-07-18
Android中常用的布局,Android常用布局1.線性布局 LinearLayout orientation:方向;vertical,垂直;horizontal,水平 gravity:對齊,子控制項相對於當前控制項的對齊
Time of Update: 2016-07-16
Android編程: 調試方法,android編程學習知識:Android的調試方法====調試方法====前提: IDE環境為Android Studio,熟悉LogCat,知道如何查看日誌資訊工具: Android DDMS調試工具,一般點擊一個類似爬蟲的表徵圖就可以啟動該介面,進入偵錯模式裝置監控工具:Android Device Monitor(menu: tools->android->Android Device Monitor)Android Device
Time of Update: 2016-07-17
開通部落格第一天 (先發一些android(java)常見異常資訊,androidjava常見異常: java.lang.AbstractMethodError抽象方法錯誤。當應用試圖調用抽象方法時拋出。java.lang.AssertionError斷言錯。用來指示一個宣告失敗的情況。java.lang.ClassCircularityError類循環相依性錯誤。在初始化一個類時,若檢測到類之間循環相依性則拋出該異常。java.lang.ClassFormatError類格式錯誤。
Time of Update: 2016-07-17
Android 隱式意圖啟用另外一個Actitity,androidactitity上篇文章《Android 顯啟用另外一個Actitity》最後談到顯啟用另外一個Actitity會有一些局限性和弊端本文介紹另一種方法:隱式意圖啟用另外一個Actitity實戰項目:通過點擊按鈕實現介面跳轉到指定頁面代碼比較簡單package com.wuyudong.intent2;import android.net.Uri;import android.os.Bundle;import
Time of Update: 2016-07-16
[android] 天氣app布局練習(三),androidapp主要練習LinearLayout和layout_weight屬性<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_
Time of Update: 2016-07-17
安卓學習-- RecyclerView簡單入門,安卓recyclerview一、加入JAR包第一感覺這個東東,好複雜,沒ListView來的快,方便在項目中加入android-support-v7-recyclerview.jar包這個包在extras\android\support\v7\recyclerview\libs這個目錄下。在studio中加入依賴//添加依賴包compile