моя проблема сейчас:Cardview - вид фикс - прикрепить к нижней части [обновлено]
мне нужно «прикрепить» эти две кнопки вниз - я не хочу, чтобы они были доступны для прокручиваться (только на нижней - всегда видимый). Но мой Edittext должен быть прокручиваемый, потому что есть длинный текст. В андроид-студии это выглядит хорошо, но в APP нет.
XML
<android.support.v7.widget.CardView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:cardBackgroundColor="#212121"
app:cardCornerRadius="8dp"
app:cardElevation="5dp"
app:cardMaxElevation="0dp"
app:cardPreventCornerOverlap="false"
app:cardUseCompatPadding="true">
<EditText
android:id="@+id/storyTextView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/choiceButton1"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:background="@null"
android:cursorVisible="false"
android:focusable="false"
android:focusableInTouchMode="false"
android:lineSpacingMultiplier="1.2"
android:paddingBottom="15dp"
android:paddingLeft="18dp"
android:paddingRight="18dp"
android:paddingTop="15dp"
android:text="You continue your course to Earth. Two days later, you receive a transmission from HQ saying that they have detected some sort of anomaly on the surface of Mars near an abandoned rover. They ask you to investigate, but ultimately the decision is yours because your mission has already run much longer than planned and supplies are low."
android:textColor="#9E9E9E"
android:textSize="16sp"
/>
</android.support.v7.widget.CardView>
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:cardBackgroundColor="#212121"
app:cardCornerRadius="8dp"
app:cardElevation="5dp"
app:cardMaxElevation="0dp"
app:cardPreventCornerOverlap="false"
app:cardUseCompatPadding="true">
<Button
android:id="@+id/choiceButton1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="1dp"
android:background="@null"
android:text="CONTINUE HOME TO EARTH"
android:textColor="#b71c1c"/>
</android.support.v7.widget.CardView>
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:cardBackgroundColor="#212121"
app:cardCornerRadius="8dp"
app:cardElevation="5dp"
app:cardMaxElevation="0dp"
app:cardPreventCornerOverlap="false"
app:cardUseCompatPadding="true">
<Button
android:id="@+id/choiceButton2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="1dp"
android:background="@null"
android:text="STOP AND INVESTIGATE"
android:textColor="#b71c1c"/>
</android.support.v7.widget.CardView>
Все в:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_story"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#000000"
android:orientation="vertical"
tools:context="com.project.StoryActivity">
</LinearLayout>
IN APP - CLICK - прокручивать, но это "не приспосабливает"
Я надеюсь, вы понимаете мою проблему, спасибо вы, ребята :)
Что с тобой случилось? – Joy
Что не так с вашей точки зрения? –
Что не так с вашим видом: P –