parent
							
								
									e108a15a8c
								
							
						
					
					
						commit
						a30527f8fc
					
				| @ -0,0 +1,35 @@ | ||||
| package com.frank.ffmpeg.activity | ||||
| 
 | ||||
| import android.os.Bundle | ||||
| import android.view.SurfaceView | ||||
| import android.view.View | ||||
| import com.frank.camerafilter.widget.BeautyCameraView | ||||
| import com.frank.ffmpeg.FFMediaPlayer | ||||
| import com.frank.ffmpeg.R | ||||
| 
 | ||||
| class CameraFilterActivity : BaseActivity() { | ||||
| 
 | ||||
|     private var cameraView: BeautyCameraView ?= null | ||||
| 
 | ||||
|     override val layoutId: Int | ||||
|         get() = R.layout.activity_camera_filter | ||||
| 
 | ||||
|     override fun onCreate(savedInstanceState: Bundle?) { | ||||
|         super.onCreate(savedInstanceState) | ||||
| 
 | ||||
|         initView() | ||||
|     } | ||||
| 
 | ||||
|     fun initView() { | ||||
|         cameraView = getView(R.id.surface_camera_filter) | ||||
|     } | ||||
| 
 | ||||
|     override fun onViewClick(view: View) { | ||||
| 
 | ||||
|     } | ||||
| 
 | ||||
|     override fun onSelectedFile(filePath: String) { | ||||
| 
 | ||||
|     } | ||||
| 
 | ||||
| } | ||||
| @ -0,0 +1,16 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|     xmlns:tools="http://schemas.android.com/tools" | ||||
|     android:layout_width="match_parent" | ||||
|     android:layout_height="match_parent" | ||||
|     tools:context=".activity.CameraFilterActivity" | ||||
|     android:layout_marginTop="66dp" | ||||
|     android:layout_marginBottom="66dp"> | ||||
| 
 | ||||
|     <com.frank.camerafilter.widget.BeautyCameraView | ||||
|         android:id="@+id/surface_camera_filter" | ||||
|         android:layout_width="wrap_content" | ||||
|         android:layout_height="wrap_content" | ||||
|         android:layout_centerInParent="true"/> | ||||
| 
 | ||||
| </RelativeLayout> | ||||
					Loading…
					
					
				
		Reference in new issue