-3
http://tinypic.com/r/abmhs3/8设计按钮
此图片显示了一个唱歌或注册按钮,上面的它跳过按钮。我怎样才能创建这些按钮?
每当我尝试创建一个像注册按钮一样的按钮作为fill_parent宽度它不会一直提交到屏幕的尽头,而是停止。
对不起,对初学者的问题。我一直在网上搜索解决方案,但无法找到可能与我的问题相关的解决方案。
http://tinypic.com/r/abmhs3/8设计按钮
此图片显示了一个唱歌或注册按钮,上面的它跳过按钮。我怎样才能创建这些按钮?
每当我尝试创建一个像注册按钮一样的按钮作为fill_parent宽度它不会一直提交到屏幕的尽头,而是停止。
对不起,对初学者的问题。我一直在网上搜索解决方案,但无法找到可能与我的问题相关的解决方案。
我试试下面的代码:
<RelativeLayout
android:id="@+id/login_relLayoutCenter"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_centerInParent="true" >
<Button
android:id="@+id/skip"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:color/transparent"
android:text="Skip"
android:textColor="#ffffff"
android:layout_centerHorizontal="true"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
android:layout_marginTop="250dp"
android:textStyle="bold"
android:textSize="18sp" />
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:color/transparent"
android:text="Sign up or Sign in"
android:textColor="#ffffff"
android:layout_below="@+id/skip"
android:layout_centerHorizontal="true"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
android:layout_marginTop="30dp"
android:textStyle="bold"
android:textSize="18sp" />
</RelativeLayout>
截图:
Downvotes没有意见吗?请给出意见。 –
我没有-1 bcoz你的代码不会显示SKIP @center。 –
OP想要按钮到屏幕的尽头,而不是透明按钮或@null按钮。 –