由于某种原因,我的图像按钮保持重叠。当我使用顶部的滚动视图时,它正常工作,一切都很好,但我不想向下滚动,看看我点击了多少次。我只想在屏幕底部显示文本视图,而图像按钮没有重叠,我imageButton不断重叠我想要在屏幕底部的文本视图
我在做什么错? 这是我尝试新事物
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android:id="@+id/LinearLayout01"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical">
<!-- Stretching frame layout using weights will bring it to the bottom -->
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/pushme"
android:textSize="21sp"
android:gravity="center_horizontal|center_vertical"
android:textColor="#ff0005"
android:background="#ff99ff"
/>
<Button
android:id="@+id/button"
android:scaleType="fitCenter"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/push"
/>
<FrameLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="0dip"
android:layout_gravity="bottom"
android:layout_weight="1"
android:layout_below="@+id/numClicked"
>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="8dip"
android:text="@string/numClicked"
android:background="#ffffffff"
android:textColor="#ff127223"
/>
</FrameLayout>
</LinearLayout>
现在这是我使用它使用滚动视图,但我不想滚动视图
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
android:id="@+id/LinearLayout01"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical">
<LinearLayout
android:id="@+id/LinearLayout01"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical">
<!-- Stretching frame layout using weights will bring it to the bottom -->
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/pushme"
android:textSize="21sp"
android:gravity="center_horizontal|center_vertical"
android:textColor="#ff0005"
android:background="#ff99ff"
/>
<Button
android:id="@+id/button"
android:scaleType="fitCenter"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/push"
/>
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="0dip"
android:layout_gravity="bottom"
android:layout_weight="1"
>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="8dip"
android:text="@string/numClicked"
android:background="#ffffffff"
android:textColor="#ff127223"
/>
您的这些布局不完整。它没有显示你在说什么。使其正确,否则无法解决它。 – Debarati 2012-01-02 06:54:32
您的布局中的图像按钮在哪里。老兄,我看不到任何图像按钮标签在那里.. – AAnkit 2012-01-02 06:55:34