Screenshot of CodeAndroid: код не работает, как предполагалось
Я пытаюсь для отображения информации о бизнесе. Однако номер телефона не используется в неправильном месте (то есть в правом верхнем углу) По моему мнению, оно должно соответствовать изображению звонка. Что с кодом phonenumber_text_view
<RelativeLayout 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"
tools:context="com.example.rafi.ansarenglishschool.MainActivity">
<ImageView
android:id="@+id/ansar_image_view"
android:layout_width="match_parent"
android:layout_height="200dp"
android:scaleType="centerCrop"
android:src="@drawable/ansar"
android:layout_alignParentTop="true"
/>
<TextView
android:id="@+id/ansar_text_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/ansar_image_view"
android:text="Ansar English School"
android:textSize="30sp"
android:background="#2962ff"
android:padding="20dp"
android:textColor="@android:color/white" />
<ImageView
android:id="@+id/call_image_view"
android:layout_width="100dp"
android:layout_height="100dp"
android:scaleType="centerCrop"
android:src="@drawable/call1"
android:layout_below="@id/ansar_text_view"
/>
<TextView
android:id="@+id/phonenumber_text_view"
android:layout_width="match_parent"
android:layout_height="100dp"
android:layout_toRightOf="@id/call_image_view"
android:layout_alignParentRight="true"
android:text="123456789"
android:textSize="30sp"
android:padding="20dp"
android:textColor="@android:color/black" />*
<ImageView
android:id="@+id/location_image_view"
android:layout_width="100dp"
android:layout_height="100dp"
android:scaleType="centerCrop"
android:src="@drawable/location1"
android:layout_below="@id/call_image_view"
/>
<TextView
android:id="@+id/disc_text_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/location_image_view"
android:text="Ansar English is a private school run by Ansari Charitable trust located in Perumpilavu."
android:textSize="15sp"
android:padding="20dp"
android:textColor="@android:color/black" />
Эти типы вопросов обычно лучше, когда вы включаете образ с чем вы поживаете, возможно, то, что вы ожидаете. – codeMagic
Хорошо. Iv включил один – rafi787