【发布时间】:2014-12-11 23:09:20
【问题描述】:
我正在尝试设计我的 Android 项目的布局,但我一定做错了什么。现在,当我尝试拖动文本框时,它们只是不会在屏幕上移动。我猜这是格式设置之一,但不确定是哪一个。
这是其外观的 XML 文件:
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.oldimagerevieal.MainActivity"
tools:ignore="MergeRootFrame" >
<TextView
android:id="@+id/textLat"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Medium Text"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:id="@+id/textLong"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Medium Text"
android:textAppearance="?android:attr/textAppearanceMedium" />
</FrameLayout>
【问题讨论】:
-
您能翻到 .xml 并为我们发布吗?
-
已发布。只是添加了两个标签,但根本无法拖动它们。 :-(
标签: android eclipse android-layout