[英]ScrollView: Button is not visible completely
我的Android项目中存在一个活动xml的问题。 它的ScrollView和我里面有LinearLayout。 在LinearLayout中,我添加了一个按钮。 但是按钮并不完全可见。 只有2px或类似的像素。
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/image_view_one"
android:scaleType="fitCenter"
android:adjustViewBounds="true"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Titel"
android:textSize="20dp"
android:layout_gravity="center_horizontal"
android:layout_margin="10dp"
android:textColor="#000000"
android:id="@+id/textview_titel"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Content"
android:textSize="15dp"
android:layout_margin="10dp"
android:textColor="#000000"
android:id="@+id/textview_description"
/>
<android.support.v7.widget.AppCompatButton
android:id="@+id/btn_zum_gewinnspiel"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:padding="12dp"
android:text="ZUM GEWINNSPIEL"
android:background="?attr/colorPrimary"
android:textSize="18dp"
/>
</LinearLayout>
</ScrollView>
在LinearLayout
bottomPadding
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.