Android知識合集

來源:互聯網
上載者:User

標籤: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知識合集

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.