我需要漫长的样式按钮,谷歌+的登入android系统。
I need the long style button for google+ signin in android.
据该品牌指引 有不同的风格像长的按钮,中,短等
According to the Branding guidelines here there are different styles for the button like long, medium, short etc
我收到媒体样式的按钮与示例应用程序的帮助,但我想从长远样式的按钮。
I am getting the medium style button with help of the sample app, But I want the long style button.
这是我的按钮`
<com.google.android.gms.common.SignInButton
android:id="@+id/sign_in_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:visibility="visible" />
`
由于网站描述有3个大按钮
As the website described there are 3 sized button
图标只= SignInButton.SIZE_ICON_ONLY 普通按钮= SignInButton.SIZE_STANDARD 宽按钮= SignInButton.SIZE_WIDE您可以使用它是这样的。
You can use it like this.
gSignInButton = (SignInButton) findViewById(R.id.sign_in_button);
gSignInButton.setOnClickListener(this);
gSignInButton.setEnabled(true);
gSignInButton.setSize(SignInButton.SIZE_WIDE);// wide button style