240 發(fā)簡信
IP屬地:西藏
  • @army魔君 我的布局是這樣的 <FrameLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    <SurfaceView
    android:id="@+id/scanner_view"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:layout_gravity="center" />
    <com.citicbank.pos.google.zxing.view.ViewfinderView
    android:id="@+id/viewfinder_content"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    app:corner_color="@color/fw_key_done"
    app:frame_color="@color/viewfinder_frame"
    app:label_text="@string/scan_hint_text"
    app:mask_color="@color/viewfinder_mask"
    app:result_color="@color/result_view" />
    <FrameLayout
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">
    <LinearLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">
    <include
    android:id="@+id/header_layout"
    layout="@layout/common_app_header_layout" />
    <Button
    android:id="@+id/btn_code_input"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="center"
    android:layout_marginTop="30dp"
    android:background="@null"
    android:hint="@string/scan_edit_hint"
    android:textSize="@dimen/all_tenpay_main_second_title" />
    </LinearLayout>
    </FrameLayout>
    </FrameLayout>
    但是在父類加了 public void onAttachedToWindow() {
    this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG);
    }這個僵驰,然后子類重寫父類的onAttachedToWindow()方法之后就只顯示SurfaceView不顯示我別的布局了

    Android視圖SurfaceView的實現(xiàn)原理分析

    在Android系統(tǒng)中疯坤,有一種特殊的視圖滩援,稱為SurfaceView,它擁有獨立的繪圖表面蛮粮,即它不與其宿主窗口共享同一個繪圖表面。由于擁有獨立的繪圖表面,因此SurfaceV...

  • 作者你好名秀,我在BaseActivity的onAttachedToWindow()里面寫了一個禁用HOME鍵的操作,在相機掃描CaptureActivity繼承BaseActivity藕溅,導致布局只有SurfaceView而我的其他布局不顯示匕得,這個問題有解決的思路么?重寫onAttachedToWindow()也不行。

    Android視圖SurfaceView的實現(xiàn)原理分析

    在Android系統(tǒng)中汁掠,有一種特殊的視圖略吨,稱為SurfaceView,它擁有獨立的繪圖表面考阱,即它不與其宿主窗口共享同一個繪圖表面翠忠。由于擁有獨立的繪圖表面,因此SurfaceV...

  • 120
    Android 和 Cordova 混合開發(fā) 以及自定義插件

    寫在開始 : 主要介紹了在Android平臺上使用Cordova 開發(fā) JS/HTML 程序 , Cordova 提供了一些設(shè)備相關(guān)的API, 通過api 可以通過 js 調(diào)...

  • 120
    【Android】Service前臺服務(wù)的使用

    1.什么是前臺服務(wù) 前臺服務(wù)是那些被認為用戶知道(用戶所認可的)且在系統(tǒng)內(nèi)存不足的時候不允許系統(tǒng)殺死的服務(wù)乞榨。前臺服務(wù)必須給狀態(tài)欄提供一個通知秽之,它被放到正在運行(Ongoing...

亚洲A日韩AV无卡,小受高潮白浆痉挛av免费观看,成人AV无码久久久久不卡网站,国产AV日韩精品