私はアンドロイドが新しく、このようなものを実現したいと思います。Android:相対的レイアウトセンター独自の空間内のもの
私はこのコードをした...私はそれを変更することができますどのように、なぜ?
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="15dp"
tools:context="se.avatarcontrol.MainActivity">
<TextView
android:id="@+id/weather"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_toLeftOf="@id/light"
android:layout_marginTop="15dp"
android:text="RAINY" />
<Button
android:id="@+id/light"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:text="Light OFF" />
<TextView
android:id="@+id/frontText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@id/sideText"
android:text="FrontView"/>
<TextView
android:id="@+id/sideText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/light"
android:layout_marginTop="15dp"
android:layout_alignParentRight="true"
android:text="SideView" />
<ImageView
android:id="@+id/frontImage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android: android:layout_below="@id/frontText"
android:src="**somesource**" />
<ImageView
android:id="@+id/sideImage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/sideText"
android:layout_alignParentRight="true"
android:src="**othersource**"/>
</RelativeLayout>
もう1つのことは、ImageViewsが互いに重なっていないすべてのスペースをどのように満たすことができるかです。
質問のタイトルをより具体的にしてください。このタイトルはあなたにdownhotesを得るでしょう – Nabin
あなたは制約のレイアウトをする必要があります、これはレイアウトの不要な入れ子を防ぐために、Googleが示唆しているものです。 –