【问题标题】:Add Button inside a TextureView (Android/Java) [closed]在 TextureView (Android/Java) 中添加按钮 [关闭]
【发布时间】:2016-08-09 16:48:23
【问题描述】:

我对此进行了搜索,但没有为我的申请找到任何好的结果。

我正在使用 TextureView 流式传输相机预览,并且我想在此 TextureView 内添加一个按钮,因此该按钮位于相机预览的顶部。就像 Snapchat 一样。

谢谢。

【问题讨论】:

    标签: java android button android-camera textureview


    【解决方案1】:

    我尝试将 TextureView 插入 FrameLayout 中,并且成功了。

     <RelativeLayout
     ..........
         <FrameLayout
               <TextureView>
         </FrameLayout>
    
         <Button>
    
     </RelativeLayout>
    

    【讨论】:

      猜你喜欢
      • 2021-01-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-03-25
      • 2013-11-11
      • 2013-06-27
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多