標籤:scrollbar 尺寸 版本 instance not key cal 視圖 value
1、Intent(意圖)
顯式意圖:調用Intent.setComponent()或Intent.setClass()方法明確指定組件名,
明確指定了Intent應該傳遞給哪個組件。
隱式意圖:沒有明確指定組件名,android系統根據隱式意圖中設定的動作(action)、
類別(category)、資料(Uri和資料類型)找最合適的組件來處理。
2、android textview內容超長滾動視圖
1、首先xml檔案TextView配置
<TextView
android:id="@+id/tv"
android:layout_width="500dp"
android:layout_height="fill_parent"
android:layout_marginLeft="30dp"
android:layout_marginTop="30dp"
android:layout_marginBottom="20dp"
android:textSize="22sp"
android:textColor="#000000"
android:scrollbars="vertical"
android:background="#C0C0C0"/>
2、然後代碼設定
tv = (TextView)this.findViewById(R.id.tv);
tv.setMovementMethod(ScrollingMovementMethod.getInstance())
3、server aidl+jni+串口
mark記憶:
server aidl+jni+串口
4、Android螢幕適配
例子:values-mcc310-en-sw320dp-w720dp-h720dp-large-long-port-car-night-ldpi-notouch-keysexposed-nokeys-navexposed-nonav-v7
解釋:values-mcc310(sim卡電訊廠商)-en(語言)-sw320dp(螢幕最小寬度)-w720dp(螢幕最佳寬度)-h720dp(螢幕最佳高度)-large(螢幕尺寸)-long(螢幕長短邊模式)- port(當前螢幕橫豎屏顯示模式)-car(dock模式)-night(白天或夜晚)-ldpi(螢幕最佳dpi)-notouch(觸控螢幕模類型)-keysexposed(鍵盤類型)-nokey(硬按鍵類型)-navexposed(方向鍵是否可用)-nonav(方向鍵類型)-v7(android版本)
Android知識合集