Немного новичков, когда дело доходит до android, только работало над ним должным образом в течение нескольких дней, но даже после всех поисков, которые я сделал, я был в тупике, и никто, кажется, не знает, как мне помочь. У меня это до сих пор:LinearLayout - Как получить текст справа от значка?
http://img263.imageshack.us/i/sellscreen.jpg
Как я могу переместить текст, чтобы быть к тому же каждый значок, а не под ним? Надеяться, что галерея не будет перемещена. Вот код, у меня есть: не кажется
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/scroller"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:fillViewport="true" >
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<Gallery xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/gallery"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
<ImageView
android:id="@+id/test_image"
android:src="@drawable/icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="The offcial UK driving theory test application. Over 190 questions."
/>
<ImageView
android:id="@+id/test_image"
android:src="@drawable/icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="The offcial UK driving theory test application. Over 190 questions."/>
<ImageView
android:id="@+id/test_image"
android:src="@drawable/icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="The offcial UK driving theory test application. Over 190 questions."/>
<ImageView
android:id="@+id/test_image"
android:src="@drawable/icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="The offcial UK driving theory test application. Over 190 questions."/>
<ImageView
android:id="@+id/test_image"
android:src="@drawable/icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="The offcial UK driving theory test application. Over 190 questions."
/>
</LinearLayout>
</ScrollView>
Верхняя половина моего кода, который будет показывать по какой-то причине, но это просто открытие линейной компоновки. Я буду навсегда благодарен всем, кто может помочь, я долго терзал мозги и никуда не уходил. На самом деле это усиливается. Заранее спасибо!!
Я думаю, что люди просто ленивы, так как я разместил его на двух форумах Android. О, хорошо так много для того, чтобы ломать мне мозги, когда он был исправлен через секунду, Большое спасибо! –
@ RED_: Обязательно. Но также рассмотрите ответ @ Mayra. Я не уверен, что использование относительной компоновки в ЭТОМ КОНКРЕТНОМ СЛУЧАЕ будет более эффективным, но обычно лучше использовать относительные макеты, чем глубоко вложенные линейные макеты. – Falmarri
Да, имеет смысл, RelativeLayouts сбивает меня с ума на данный момент. Как получить все в нужном месте - это главное, но я уверен, что я заберу его, тем больше у меня на нем. –