D
D
Dmitry Richter2014-12-21 04:21:58
Google
Dmitry Richter, 2014-12-21 04:21:58

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

4 answer(s)
M
Max, 2014-12-21
@mbelskiy

There is something very wrong with you.
Dig towards LinearLayout, maxWeight, layout_weight

D
Deerenaros, 2014-12-21
@Deerenaros

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.

B
boomwest, 2014-12-22
@boomwest

<?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>

Z
zhekazt, 2015-04-19
@zhekazt

Google it and find out a lot about the new cardboard SDK

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question