Time of Update: 2016-07-18
[android] 天氣app布局練習(四),androidapp主要練習一下擷取網路資料和解析xmlMainActivity.javapackage com.example.weatherreport;import java.io.UnsupportedEncodingException;import java.net.URLEncoder;import java.util.ArrayList;import java.util.HashMap;import
Time of Update: 2016-07-19
android:Spinner(下拉框)控制項的使用,androidspinner 1. 2.建立分頁檔(main.xml) 1 <Spinner 2 android:id="@+id/spinner1" 3 android:layout_width="match_parent" 4 android:layout_height="wrap_content" /> 5 6
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 登陸案例_最終版本 sharedpreference,sharedpreferencexml 與之前的登陸案例相同 java代碼: 1 package com.itheima.login; 2 3 import java.util.Map; 4 5 import com.itheima.login.util.UserInfoUtil; 6 import com.itheima.login_shared.R; 7 8 import
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-18
Android立體旋轉動畫實現與封裝(支援以X、Y、Z三個軸為軸心旋轉),android立體旋轉本文主要介紹Android立體旋轉動畫,或者3D旋轉,是我自己實現的一個介面 立體旋轉分為以下三種: 1. 以X軸為軸心旋轉 2. 以Y軸為軸心旋轉 3. 以Z軸為軸心旋轉--這種等價於android預設內建的旋轉動畫RotateAnimation 實現立體旋轉核心步驟: 1.
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中dip,dp,sp,pt和px的區別,androiddipdip: device independent pixels(裝置獨立像素). 不同裝置有不同的顯示效果,這個和裝置硬體有關,一般我們為了支援WVGA、HVGA和QVGA 推薦使用這個,不依賴像素。 dp: dip是一樣的px: pixels(像素). 不同裝置顯示效果相同,一般我們HVGA代表320x480像素,這個用的比較多。pt:
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
Getting Started with Testing ——開始單元測試,startedtestingAndroid tests are based on JUnit, and you can run them either as local unit tests on the JVM or as instrumented tests on an Android device. This page provides an introduction to the concepts
Time of Update: 2016-07-18
Android中常用的布局,Android常用布局1.線性布局 LinearLayout orientation:方向;vertical,垂直;horizontal,水平 gravity:對齊,子控制項相對於當前控制項的對齊
Time of Update: 2016-07-17
Android 隱式意圖的配置,android意圖本文地址:http://www.cnblogs.com/wuyudong/p/5677473.html,轉載請註明源地址。《Android 顯啟用另外一個Actitity》一文介紹了一種啟用Activity的方法本文通過資訊清單檔(AndroidManifest.xml)來實現意圖的配置Intent-filter屬性詳解如果一個 Intent 請求在一片資料上執行一個動作, Android
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-18
android 電話撥號器,android電話撥號器(重點) 1.產品經理: 需求分析文檔,設計原型圖 2.UI工程師: 設計UI介面 3.架構師: 寫架構,介面文檔 4.碼農: 服務端,用戶端
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-17
Android 隱式意圖和顯的使用情境,android意圖本文實現一個隱式意圖的應用,啟用簡訊應用 public void click4(View view) { Intent intent = new Intent(); intent.setAction("android.intent.action.SENDTO"); intent.addCategory("android.intent.category.DEFAULT");
Time of Update: 2016-07-17
安卓學習-- RecyclerView簡單入門,安卓recyclerview一、加入JAR包第一感覺這個東東,好複雜,沒ListView來的快,方便在項目中加入android-support-v7-recyclerview.jar包這個包在extras\android\support\v7\recyclerview\libs這個目錄下。在studio中加入依賴//添加依賴包compile