Time of Update: 2017-05-18
Android學習筆記-Button(按鈕),android-button文章參考自:http://www.runoob.com/w3cnote/android-tutorial-button-imagebutton.html Button是TextView的子類,所以TextView上很多屬性也可以應用到Button 上!我們實際開發中對於Button的,無非是對按鈕的幾個狀態做相應的操作,比如:按鈕按下的時候
Time of Update: 2017-05-14
Windows搭建安裝React Native環境配置,reactnative1、安裝Java這裡需要注意對環境變數的設定,可以根據Java -version來檢測一下,jdk最好是1.8以上2、安裝SDK這裡需要注意設定環境變數ANDROID_HOME:Android SDK Manager的位置 例如:(ANDROID_HOME=> E:\Android\sdk)設定環境變數PATH:例如:(PATH=>
Time of Update: 2017-05-04
PendingIntent 顯示通知,pendingintent通知安卓顯示通知PendingIntent pendingIntent=PendingIntent.getActivity(Media.this,0, new Intent(Media.this,Media.class),0); NotificationManager manager= (NotificationManager)
Time of Update: 2017-05-05
AndroidStudio下使用 RecyclerView xml檔案不顯示預覽條目並報錯類似:NoClassDefFoundError 問題解決,studiorecyclerview在項目中使用RecyclerView是很普遍的,最近工作中遇到了這種情況:RecyclerView可以正常使用 不會報錯
Time of Update: 2017-04-30
【Android】[Problem]-"Waiting for target device to come online".,androidtarget環境:win10專業版(創意者),Android studio 2.3.1問題描述:安裝玩Android studio之後建立一個項目,建立AVD之後,運行程式時一直不能啟動AVD,具體描述為:”Waiting for target device to come
Time of Update: 2017-04-28
關於百度地圖導航AndroidSDK的初始化問題,androidsdk初始化使用百度地圖有一段時間了,導航是一個一直困擾我的問題。今天剛發現百度地圖的導航SDK並不是對Android6.0版本不相容。而是對某一部分手機不相容,準確的說是對X64或X86的cpu不相容。下載百度的導航DEMO發現在libs檔案加下只有一個armeabi檔案夾。這裡面存放的是導航功能所需要的動態連結程式庫檔案。今天將公司的一部測試機從android4.4升級到了6.0。測試時偶然發現,升級到6.0以後導航功能還是可以
Time of Update: 2017-04-27
解決通過Intent調用系統拍照程式,返回圖片太小的問題,intent調用Intent it = newIntent("android.media.action.IMAGE_CAPTURE");startActivityForResult(it,
Time of Update: 2017-04-25
android 完全解析類比遙控器按鍵,android遙控器public class VirturlKeyPadCtr {private static Instrumentation mInstrumentation;public static void RC_ConttrollerAction(final int keyValue) {/** * Wrapper-function taking a KeyCode. A complete KeyStroke is DOWN and UP *
Time of Update: 2017-04-22
android:configChanges屬性總結,一.對android:configChanges屬性,一般認為有以下幾點:1、不設定Activity的android:configChanges時,切屏會重新調用各個生命週期,切橫屏時會執行一次,切豎屏時會執行兩次2、設定Activity的android:configChanges="orientation"時,切屏還是會重新調用各個生命週期,切橫、豎屏時只會執行一次3、設定Activity的android:configChanges="ori
Time of Update: 2017-04-24
自訂的dialog中的EditText無法彈出IME解決方案,dialogedittext1.解決無法彈出IME: 在show()方法調用之前,用dialog.setView(new EditText(context))添加一個空的EditText,由於是自訂的AlertDialog,有我們指定的布局,所以設定這個不會影響我們的功能,這樣就可以彈出IME了……2.可以彈出IME了,但了為了增強使用者體驗性,當dialog中含有editText時應該,在顯示dialog的同時自動彈出鍵盤:(1)
Time of Update: 2017-04-15
App字型大小不隨系統改變而改變,轉載請註明出處:http://www.cnblogs.com/cnwutianhao/p/6713724.html 在 "設定" , "顯示" , "字型大小" 裡面我們可以設定系統字型大小App介面字型,如果被修改之後,可能就達不到理想狀態的效果,介面布局就發生了變化。未修改過的效果(測試機型:Nexus
Time of Update: 2017-04-12
ButterKnife註解架構詳解,butterknife註解架構 Android 懶人註解架構 :https://github.com/JakeWharton/butterknife 前言: 註解,相信很多同學都用到了,對控制項進行初始化的時候需要用到 findViewById() ,當一個activity
Time of Update: 2017-04-14
類似朋友圈,點擊+號圖片,可以加圖片,信朋友圈xml:<?xml version="1.0" encoding="utf-8"?><LinearLayout
Time of Update: 2017-04-01
BottomBar之Android底部菜單,bottombarandroidBottomBar之Android底部菜單 前言:開源項目BottomBar,實現Android底部菜單(常用菜單,BottomBar實現動畫(上下式)+訊息菜單,BottomBar+ViewPager+Fragment實現炫酷的底部導航效果) 效果: 開發環境:AndroidStudio2.2.1+gradle-2.14.1 引入依賴: compile
Time of Update: 2017-03-30
Android第一天-->布局,android第一天-- LinearLayout(線性布局) 相片順序有2種horizontal(水平),vertical(垂直,預設)。 gravity:控制組件的對齊。 id:設定一個資源id,在java中可以通過findViewById(id)找到該組件。wrap_content:組件實際大小(強制性地使視圖擴充以顯示全部內容。) fill_parent 、match_parent
Time of Update: 2017-03-29
Android CursorAdapter的使用,cursoradapter使用CursorAdapter繼承於BaseAdapter,為Cursor和ListView串連提供了橋樑。首先看一下CursorAdapter的部分源碼:/** * @see android.widget.ListAdapter# getView(int, View, ViewGroup) */ public View getView( int position, View
Time of Update: 2017-03-26
Android二維碼之建立,android1.Android 有內建的jar包可以產生二維碼core-3.0.0.jar,其中的com.google.zxing包2.寫一個二維碼產生的工具類,網上搜的話應該一大堆。 1 package com.example.administrator.twocodedemo; 2 3 import android.content.Context; 4 import android.graphics.Bitmap; 5 import android.
Time of Update: 2017-03-24
Android 5.0(棒棒糖))十大新特性,android新特性Android 5.0(棒棒糖))十大新特性 1、 全新Material Design設計風格 Android Lollipop全新的設計語言是受到了多種因素影響,是一種大膽的平面化創新。換句話說,Google希望能夠讓Material
Time of Update: 2017-03-24
AsyncTask注意事項,面試技巧和注意事項需要知道的重點:1. 在1.6之前,所有的AsyncTask在一個單獨的線程中有序的執行。2. 從1.6到2.3,這些AsyncTask在一個線程池中執行,但是有上限。3.
Time of Update: 2017-03-23
[Android] 使用ViewPager