Also versuche ich einen Text bearbeiten über eine textview
, aber ich habe Schwierigkeiten damit. Wenn ich die Aktivität öffne, öffnet sich die Tastatur und wenn ich tippe, kann ich keine Texteingabe sehen. Auch wenn die Tastatur geöffnet wird, konzentriert es sich auf die Hälfte meiner imageview
statt wo ich versuche, den Bearbeitungstext zu platzieren.Kann editText nicht sehen
hier ist mein xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_route_details"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.example.zach.BirdsboroClimbing.RouteDetails">
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/scrollView1"
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<CheckBox
android:text="Route Climbed"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:id="@+id/routeCheckBox"
android:gravity="center" />
<CheckBox
android:text="Add Note"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:id="@+id/noteCheckBox"
android:gravity="center"
/>
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:inputType="text"
android:text="Name"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true"
android:id="@+id/noteEditText"
android:layout_below="@id/routeCheckBox"
android:background="#008000"
/>
<TextView
android:text="TextView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/routeDetailsView"
android:textSize="18sp"
android:textAlignment="center"
android:textColor="@android:color/black"
android:layout_below="@id/noteEditText"/>
<ImageView
android:layout_below="@id/routeDetailsView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/routeImage"
android:scaleType="fitCenter"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:adjustViewBounds="true" />
</RelativeLayout>
</ScrollView>
Vielen Dank für jede Hilfe!
können Sie einen Screenshot hochladen, was geschieht? –
Ich bin jetzt weg vom Computer, aber im Grunde ist es so, als ob der Bearbeitungstext nicht existiert. Ich kann es nicht sehen oder klicke darauf, um die Tastatur zu öffnen. – zsh5032