Answer the question
In order to leave comments, you need to log in
How to organize the split screen into 2 parts in android?
Good day. I needed to make a screen split as used in Cardboard , but unfortunately for me I could not figure out how to add a part from the SurfaceView to the CardboardView fragments to play video, so I would like to find a library that could split the screen into 2 parts in real time, moreover, each of them will have the same thing as in Cardboard, where can I find one or how can this be implemented without using 2 identical components.
Answer the question
In order to leave comments, you need to log in
There is something very wrong with you.
Dig towards LinearLayout, maxWeight, layout_weight
Good day. I need to make an incision on the right to remove appendicitis, but unfortunately, I still couldn’t figure out where the right is, so I would like to find a robot that recognizes where the right is and tells me or makes the incision itself, but for some reason all existing robots cut a person on two parts, and I need a live person with a cut. Where can one find such a thing or how can one do it without using silicon components?
UPD.
Look towards OpenGL (then you have to draw everything yourself, but you can get the contents of the screen ... at least somehow). Or try to get a screenshot of the screen and do whatever you want with it. And to the next branch - no one would pay programmers thousands and tens of thousands of dollars for stupid gestures.
<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:weightSum="100" >
<LinearLayout
android:id="@+id/top"
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_weight="50"
android:background="#FFFF00"
android:gravity="center" >
.......
</LinearLayout>
<LinearLayout
android:id="@+id/bottom"
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_weight="50"
android:background="#FFFF00"
android:gravity="center" >
.......
</LinearLayout>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question