Question: How to have a communication between a go server and java client without any external libraries?

Answer: 
check this out:

```
<android.constraintlayout.widget.ConstraintLayout 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"
            xmlns:app="http://schemas.android.com/apk/res-auto"
            android:orientation="vertical">

            <ImageButton
                    android:id="@+id/btnClose"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    app:layout_constraintTop_toTopOf="parent"
                    app:layout_constraintStart_toStartOf="parent"
                    android:layout_weight="3"
                    android:background="@null"
                    android:padding="10dp"
                    android:scaleType="fitCenter"
                    android:src="@drawable/com_facebook_close"
                    tools:src="@drawable/com_facebook_close" />

            <TextView
                    android:id="@+id/tvDescription"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    app:layout_constraintTop_toTopOf="parent"
                    app:layout_constraintStart_toEndOf="@+id/btnClose"
                    app:layout_constraintEnd_toStartOf="@+id/btnShare"
                    android:textAlignment="center"
                    android:text="image"
                    android:textColor="@color/white"
                    android:layout_weight="0"
                    android:textAppearance="?android:attr/textAppearanceLarge" />

            <ImageButton
                    android:id="@+id/btnShare"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    app:layout_constraintTop_toTopOf="parent"
                    app:layout_constraintEnd_toEndOf="parent"
                    android:layout_gravity="end"
                    android:gravity="top"
                    android:layout_weight="3"
                    android:background="@null"
                    android:padding="0dp"
                    android:scaleType="fitCenter"
                    android:src="@android:drawable/ic_menu_share"
                    tools:src="@android:drawable/ic_menu_share" />

    </android.constraintlayout.widget.ConstraintLayout>

```

I hope to be useful ;)
On your inner LinearLayout set the `android:orientation="horizontal"`

You should also change your weighting system as I wrote bellow and remember to always add `android:weightSum="10"` or other weights base on your calculation "I recommend weight some of 100 so it's comparable as a percentage" and give each child the right amount of weight you desire for that column or row.

As a final advice, I really recommend changing to `ConstraintLayout` which has percentage support by default and is more reliable on different screen resolutions.

your code should change like this:

```
 <LinearLayout
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"
android:orientation="vertical" >

<LinearLayout
    android:orientation="horizontal"
    android:gravity="top"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:weightSum="10"
    android:background="@null">
    <ImageButton
        android:id="@+id/btnClose"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="start"
        android:layout_weight="1"
        android:background="@null"
        android:padding="10dp"
        android:scaleType="fitCenter"
        android:src="@android:drawable/ic_menu_share"
        tools:src="@android:drawable/ic_menu_share" />

    <TextView
        android:id="@+id/tvDescription"
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:gravity="center"
        android:text="Image"
        android:layout_weight="8"
        android:textAppearance="?android:attr/textAppearanceLarge" />

    <ImageButton
        android:id="@+id/btnShare"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="end"
        android:gravity="top"
        android:layout_weight="1"
        android:background="@null"
        android:padding="10dp"
        android:scaleType="fitCenter"
        android:src="@android:drawable/ic_menu_share"
        tools:src="@android:drawable/ic_menu_share" />
</LinearLayout>

```