Time of Update: 2015-12-03
Android設定TextView行間距(非行高),androidtextview Android設定TextView行間距(非行高)
Time of Update: 2015-12-03
Android Material Design的FloatingActionButton,Snackbar和CoordinatorLayout,androidsnackbar如果是為了相容低版本的Android系統,則需要引用Android Material Design的擴充支援庫,我在之前的一篇文章張,較為詳細的說明了如何匯入Android Material
Time of Update: 2015-12-03
開啟線程以get 和post方式來訪問網路,getpost 1 import java.io.IOException; 2 3 import org.apache.http.HttpResponse; 4 import org.apache.http.HttpStatus; 5 import org.apache.http.client.ClientProtocolException; 6 import org.apache.http.client.HttpClient; 7 import
Time of Update: 2015-12-03
android 開啟軟鍵盤,android鍵盤<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent"
Time of Update: 2015-12-03
Android第三方資源使用之ImageCache 我們常用的諸如ImageLoader ,Picasso
Time of Update: 2015-12-03
(轉)Android SlidingTabLayout定製分割線和指示條顏色,android分割線本文轉載與:http://blog.csdn.net/zhangphil/article/details/48863347Android SlidingTabLayout預設的滑動指示條是系統預設的某個藍色系色值,分割線是灰色。如果要自訂實現滑動指示條和分割線定製顏色,則主要通過SlidingTabLayout的setCustomTabColorizer()方法實現。現在給出一個例子加以說明。(1)
Time of Update: 2015-12-03
40.Android 資源Id工具類ResourcesUtil40.Android 資源Id工具類ResourcesUtilAndroid 資源Id工具類ResourcesUtil ResourcesUtil ResourcesUtilActivityResourcesUtilpublic class ResourcesUtil { /** * 根據mipmap檔案的名字取得id * * @param context * @param name *
Time of Update: 2015-12-02
android DatePicker使用,androiddatepicker<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent"
Time of Update: 2015-12-02
android 長按快顯功能表,複製,粘貼,全選,android全選<!-- 定義基礎布局LinearLayout --><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
Time of Update: 2015-12-02
android 開啟瀏覽器指定網頁,android瀏覽器<?xml version="1.0" encoding="utf-8"?><!-- 定義當前布局的基本LinearLayout --><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent"
Time of Update: 2015-12-02
android EditText監聽和長度監測事件,androidedittext<?xml version="1.0" encoding="utf-8"?><!-- 定義基礎的LinearLayout布局 --><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent"
Time of Update: 2015-12-02
android 播放MP3,android播放mp3<?xml version="1.0" encoding="utf-8"?><!-- 定義當前布局的基本LinearLayout --><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent"
Time of Update: 2015-11-28
載入頁面遮擋耗時操作任務頁面--第三方開源--AndroidProgressLayout,androidview.layout在Android的開發中,往往有這種需求,比如一個耗時的操作,連網擷取網狀圖片、內容,資料庫耗時讀寫等等,在此耗時操作過程中,開發人員也許不希望使用者再進行其他動作(其他動作可能會引起邏輯混亂),而此時需要給使用者一個額外的載入頁面遮擋住主邏輯代碼的運行,待首頁面的耗時操作完成後,自動消失這樣載入過度頁面,恢複出正常應該顯示的頁面。舉個實際的例子,如代碼使用Android
Time of Update: 2015-11-28
(轉)android底部彈出iOS7風格對話選項框(QQ對話方塊)--第三方開源--IOS_Dialog_Library,android刷ios7本文轉載於:http://blog.csdn.net/zhangphil/article/details/44940339完成這個效果的是使用了 IOS_Dialog_Library:http://files.cnblogs.com/files/zzw1994/IOS_Dialog_Library.zip或者:http://download.
Time of Update: 2015-11-28
兩個Activity之間的互動startActivityForResult的使用,startactivityresult 代碼如下: 1 package com.zzw.teststartintentforrequest; 2 3 import android.app.Activity; 4 import android.content.Intent; 5 import android.os.Bundle; 6 import android.util.Log; 7 import
Time of Update: 2015-11-27
擷取手機通訊錄放入PinnedSectionListView中,按名字首字母排序,並且實現撥打到電話功能。,DingTalk撥打非通訊錄 1 package com.lixu.tongxunlu; 2 3 import java.util.ArrayList; 4 import com.lixu.tongxunlu.PinnedSectionListView.PinnedSectionListAdapter; 5 import android.app.Activity; 6
Time of Update: 2015-11-28
遊戲中簡單資料存放區,遊戲簡單資料存放區在遊戲開發中,有時要設定持久的簡單資料存放區。Preferences主要是使用簡單,但是功能不是很強大,一般適合用於儲存一些簡單的使用者佈建的參數,是一種輕量級的儲存機制。Preferences僅可以用來儲存幾種簡單類型的資料,如:boolean、int、floate、long、或者String。這些資料以索引值對的形式儲存在應用程式私人的Preferences目錄下的xml檔案中。可以使用 SharedPreferences
Time of Update: 2015-11-27
Android 首頁面頂部欄的通知Notification ,可以自訂通知訊息欄的風格,並且點擊通知欄進人本程式。,android自訂訊息列常用的程式通知,顯示到首頁面的頂部欄。 1 package com.lixu.tongzhi; 2 3 import android.app.Activity; 4 import android.app.Notification; 5 import android.app.NotificationManager; 6 import android.app.
Time of Update: 2015-11-27
xml中背景為圓形狀顏色 ,圖片為透明圖片,xml 1 . <ImageView android:id="@+id/zhongjie" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@drawable/mark_caller_house_agent"
Time of Update: 2015-11-27
用Kotlin開發Android應用(IV):定製視圖和Android擴充,kotlinandroid原文標題:Kotlin for Android (IV): Custom Views and Android Extensions原文連結:http://antonioleiva.com/kotlin-android-custom-views/原文作者:Antonio