我在sceneform AR Fragment中的垂直平面上添加了一个图像.但它总是被轮换.代码在水平面上工作正常.我在垂直平面上放置图像的代码如下.
arFragment.setOnTapArPlaneListener { hitResult: HitResult,
plane: Plane,
motionEvent: MotionEvent ->
if(!isOnceTapedOnSurface) {
val anchor = hitResult.createAnchor()
val anchorNode = AnchorNode(anchor)
anchorNode.setParent(arFragment.arSceneView.scene)
andy = TransformableNode(arFragment.transformationSystem)
if(plane.type == Plane.Type.VERTICAL) {
val anchorUp = anchorNode.up
andy.setLookDirection(Vector3.up(), anchorUp)
}
andy.setParent(anchorNode)
andy.renderable = andyRenderable
andy.select()
// arFragment.arSceneView.planeRenderer.isVisible = false
isOnceTapedOnSurface = true
}
}
Run Code Online (Sandbox Code Playgroud) 我创建了一个包含多个数据和倒数计时器的 recyclerview。所有事情都正常工作,直到我无法滚动列表。当我向下滚动列表倒计时将与上述视图项冲突。它也计算当前查看时间和随机时间。我尝试了太多东西来解决它,但无法解决。请帮帮我。提前致谢 。
这是我的 RecyclerAdapter 代码。
public class ReferendumQuestionAdapter extends RecyclerView.Adapter<ReferendumQuestionAdapter.MyViewHolder> {
List<QuestionsModel.QuestionsData> questionBeen = new ArrayList<>();
List<QuestionsModel.LikedImages> likedImagesList = new ArrayList<>();
Activity activity;
boolean channerlView = false;
OnViewClick onViewClick ;
AppPreference preference;
CustomDialog customDialog;
AdminAPI adminAPI;
ReferendumImagesAdapter imagesRecycleViewAdapter;
List<CommentModel.GetCommentData> commentDataList = new ArrayList<>();
CommentViewAdapter commentViewAdapter;
public ReferendumQuestionAdapter(List<QuestionsModel.QuestionsData> questionBeen, Activity activity, boolean channerlView , OnViewClick onViewClick) {
this.questionBeen = questionBeen;
this.activity = activity;
this.channerlView = channerlView;
this.onViewClick = onViewClick ;
this.preference = new AppPreference(activity);
this.customDialog = new CustomDialog(activity);
this.adminAPI = …Run Code Online (Sandbox Code Playgroud) 我正在使用 ARCore 创建一个应用程序以在空白表面上显示一些图像。我想捕获显示对象的那个表面的图像。我在 AR 相机屏幕上放了一个捕获按钮。
是否可以使用 ARCore 相机中的对象捕捉该视图?
按照API,我要求编辑用户个人资料。我必须发送用户个人资料图片,所以我在API中使用了multipart。
@Multipart
@POST(ApiURLs.EDIT_USER_PROFILE)
Call<EditProfileModel> EditUserProfile (@Part("user_id) String userId ,
@Part("user_name") String userName ,
@Part("language_id") String languageId ,
@Part("state_id") String stateId ,
@Part MultipartBody.Part
profilePicture);
Run Code Online (Sandbox Code Playgroud)
当服务调用请求的参数时,就像
“ user_id”:“” 23“”“ user_name”:“”基瓦尔舒克拉“”“ language_id”:“” 27“”“ state_id”:“ 53”“
如何使用MultiPart删除该双引号?
我正在从事 AR 项目,我需要捕获当前帧并将其保存到图库。我可以使用 AR 核心中的 Frame 类获取图像,但图像格式为 YUV_420_888。我已经尝试了很多解决方案来将其转换为位图,但无法解决。
android ×5
arcore ×3
sceneform ×3
kotlin ×2
httprequest ×1
java ×1
retrofit ×1
retrofit2 ×1
web-services ×1