Time of Update: 2015-01-20
Android:用ViewPager實現廣告欄現在常見的廣告欄效果,自動切換廣告,也可手動滑動切換。 我用ViewPager實現的,廢話不多說,上代碼: 1、布局檔案 layout_ad_pager.xml 2、主要代碼 AdPagerMainActivity.java package app.adpager;import java.util.ArrayList;import java.util.List;import
Time of Update: 2015-01-20
Android RakNet 系列之七
Time of Update: 2015-01-20
Android - 安裝應用(APP) 不顯示表徵圖安裝應用(APP) 不顯示表徵圖 本文地址:www.bkjia.com 在啟動的activity的AndroidManifest註冊中,添加隱式啟動的data:
Time of Update: 2015-01-20
Android 5.0新特性Android 5.0 是 Google 於 2014 年 10 月 15 日(美國太平洋時間)發布的全新 Android 作業系統,英文名為Lollipop,翻譯過來就是棒棒糖的意思,下面我們用這篇文章來瞭解下android 5.0 的新特性。Material DesignMaterial Design翻譯過來就是材料設計,是google對於android裝置顯示介面的主要更新,也可以說是一種新的設計語言。Material Design語言的一些重要功能包括
Time of Update: 2015-01-20
Android -- 處理ViewPager的notifyDataSetChanged無重新整理Viewpager在調用notifyDataSetChanged()時,介面無重新整理,它確實影響我們功能的實現了。可能選擇為Viewpager重新設定一遍適配器adapter,達到重新整理的目的。但是這種方法在大多數情況下,是有問題的。 查看方法 super.notifyDataSetChanged()調用的是PagerAdapter.notifyDataSetChanged()
Time of Update: 2015-01-20
Android-手機歸屬地和有線電話歸屬地查詢在開發Android項目
Time of Update: 2015-01-20
Android話筒音頻採樣和使用Android手機話筒採樣有部分代碼是在網上找的,具體不記得了。使用採樣結果以及是自己的app的功能代碼:1. 在一部分app中會需要對話筒的音頻輸入擷取使用,比如之前很火的吹裙子;2. 採樣線程:public class MicroLevelRunnable implements Runnable { private static final String tag = "MicroLevelThread"; private AudioRecord ar;
Time of Update: 2015-01-19
Bluetooth分析,bluetooth本文章分析了android藍芽的用法,包括藍芽的開啟關閉、設定可見、開始取消發現、配對、主動串連、反連、廣播等。1、樣本示範public class MainActivity extends Activity {private static final String TAG = MainActivity.class.getSimpleName();private BluetoothAdapter bluetoothAdapter;private
Time of Update: 2015-01-19
Android,android官網Viewpager在調用notifyDataSetChanged()時,介面無重新整理Viewpager在調用notifyDataSetChanged()時,介面無重新整理,它確實影響我們功能的實現了。可能選擇為Viewpager重新設定一遍適配器adapter,達到重新整理的目的。但是這種方法在大多數情況下,是有問題的。查看方法super.notifyDataSetChanged()調用的是PagerAdapter.notifyDataSetChanged()
Time of Update: 2015-01-19
cocos3——6.js讀取策劃json配置表,cocos3json1.excel轉json 這個可以參見前輩python的方式:https://github.com/gdgoldlion/ExcelAndJSON 不過這個需要裝python和xlrd,裝xlrd的時候需要用命令:python setup.py install 在win32上用批處理這樣轉換excel到json:python %~dp0../src/excel_and_json.py
Time of Update: 2015-01-19
ios檔案操作,ios檔案<span
Time of Update: 2015-01-19
第四章 Android開發三大基石—Activity、Service和Handler(1),androidhandler第四章 Android開發三大基石—Activity、Service和Handler
Time of Update: 2015-01-18
Android
Time of Update: 2015-01-19
unity從streamingassets拷貝到persistentassets,再從persistentassets用www載入進入情境,streamingassetsvoid OnClick() { //StartCoroutine(LoadLevel()); StartCoroutine(LoadFrompersister());
Time of Update: 2015-01-18
Android學習筆記之Theme主題的修改設定,android學習筆記(1)布局檔案<RelativeLayout 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-01-18
linux so庫產生(一),linuxso庫產生Dear!先貼個福士版,希望逐字理解,有益!$gcc -shared -Wl,-soname,libhello.so.1 -o libhello.so.1.0 hello.o另外再建立兩個符號串連:$ln -s libhello.so.1.0 libhello.so.1$ln -s libhello.so.1 libhello.so這樣一個libhello的動態串連庫就產生了。最重要的是傳gcc -shared
Time of Update: 2015-01-18
ActionBar的使用方法之一,actionbar使用方法在做項目時遇到需要使用ActionBar就寫下來了方便以後知道這種方法和使用,當然還有其他方法,以後慢慢研究:在oncreate寫如下代碼:final ActionBar ab = getActionBar(); if (ab != null) { ab.setTitle(R.string.group);設定頭 ab.setDisplayHomeAsUpEnabled(true)
Time of Update: 2015-01-18
一起學android之HTTP預備知識(16),android預備在Android系統中,提供了下面三種通訊介面:1、標準Java介面:java.net。2、Apache介面:org.apache.http。3、Android網路介面:android.net.http。為了訪問網路,需要設定應用程式擷取android.permission.INTERNET許可權的許可在Android系統中。以下便是與網路連接相關的包:1、java.net該包提供連網相關的類,包括流和資料通訊端、互連網協議以及通
Time of Update: 2015-01-18
android listView的item 顯示多種不同的布局,androidlistview 1.這篇博文不算什麼知識點。使用的都是的系統中已經提供給我們的方式方法。這是最近用到了,感覺很實用,特此貢獻出來。首先需要定義,listview中需要展示的view個數,和view的布布局類型 private final int TYPE_1 = 0; 類型1 private final int
Time of Update: 2015-01-18
Android學習筆記之ContextualMenu操作功能表用於長按事件的確定,contextual(1)在布局檔案中建立一個listview:<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"