Android Phonegap-登录按钮用户界面修改
以下是登录按钮的代码:Android Phonegap-登录按钮用户界面修改,android,cordova,Android,Cordova,以下是登录按钮的代码: <button type="submit" data-theme="a" id="loginButton">Login</button> 登录 现在,我必须增加登录按钮的大小并显示在页面中央。如果您有任何想法,请与我们分享。如果您使用的是ecplise,那么您可以使用按钮属性部分下的布局权重 或者更快的方法是设置 <button type="submit" data-theme="a" and
<button type="submit" data-theme="a" id="loginButton">Login</button>
登录
现在,我必须增加登录按钮的大小并显示在页面中央。如果您有任何想法,请与我们分享。如果您使用的是ecplise,那么您可以使用按钮属性部分下的
布局权重
或者更快的方法是设置
<button
type="submit"
data-theme="a"
android:layout_width="40dp" //set size depending on your requirements
android:layout_width="wrap_content"
android:layout_centerInParent="true"
id="loginButton">
Login
</button>
属性android:layout\u centerInParent=“true”
将使其相对于屏幕居中如何使按钮成为页面的中心?我使用phonegap和HTML来显示按钮。请帮我集中电话间隔按钮
<RelativeLayout android:id="@+id/RelativeLayout01"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<button
type="submit"
data-theme="a"
android:layout_width="40dp" //set size depending on your requirements
android:layout_width="wrap_content"
android:layout_centerInParent="true"
id="loginButton">
Login
</button>
</RelativeLayout>