它的工作好,其他一切都是好的,但Facebook的按鈕的大小並不好。 我試圖用多種方式從xml編輯它,但按鈕尺寸保持不變 任何人都可以請幫助嗎?
<EditText
android:id="@+id/password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/prompt_password"
android:imeActionId="@+id/login"
android:imeActionLabel="@string/action_sign_in_short"
android:imeOptions="actionUnspecified"
android:inputType="textPassword"
android:maxLines="1" />
<Button
android:id="@+id/forgot_password"
android:layout_marginTop="8dp"
android:text="@string/forgot_password"
android:layout_gravity="end"
android:typeface="normal"
android:textSize="14sp"
style="@style/Widget.AppCompat.Button.Borderless"
android:background="@drawable/tw__transparent"
android:layout_height="38dp"
android:layout_width="130dp" />
<Button
android:id="@+id/email_sign_in_button"
style="?android:textAppearanceSmall"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="@string/action_sign_in"
android:background="@drawable/rounded_corners"
android:textSize="18sp" />
</LinearLayout>
<LinearLayout
android:id="@+id/facebook_login"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="bottom"
android:orientation="horizontal">
<com.facebook.login.widget.LoginButton
android:id="@+id/facebook_login_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</LinearLayout>
</LinearLayout>
</ScrollView>
<ProgressBar
android:id="@+id/login_progress"
style="?android:attr/progressBarStyleLarge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="gone" />
你想增加高度還是減少寬度? – Redman
您可以發佈完整的XML –
提升高度 –