我在我的Android应用程序中需要一个自定义的FB登录功能.下面是我想要的FB登录按钮的示例快照.

FacebookLoginXMLFile
<com.facebook.widget.LoginButton
xmlns:fb="http://schemas.android.com/apk/res-auto"
android:id="@+id/authButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textAlignment = "center"
android:textColor="#ffffff"
android:background="@drawable/emailbtn"
android:drawableLeft="@drawable/facebook_small"
android:gravity="center_vertical|center_horizontal"
android:layout_gravity="center_horizontal"
android:layout_marginTop="13dp"
android:padding="5.75dp"
android:paddingTop ="4dp"
android:paddingRight="4dp"
android:paddingBottom="4dp"
android:textSize="12sp"
fb:login_text="@string/signinwithfacebook"
fb:logout_text="@string/sign_out_from_facebook"
android:longClickable="false"/>
Run Code Online (Sandbox Code Playgroud)
但我仍然在后台获得Facebook的蓝色.
PS:我已经尝试过SO本身的各种建议,但没有一个能为我工作
我有一个名为 WORKOUTS 的表,其中包含名为“install_time”和“local_id”的列。两者都有列类型整数。它们是唯一的键。我编写了两个查询,如下所示:
SELECT * from workouts where install_time = 123456 and local_id > 5
SELECT * from workouts where install_time = 987643 and local_id > 19
Run Code Online (Sandbox Code Playgroud)
现在我想将这些查询和一个 where 子句结合起来来处理这种情况,但找不到一种方法。
编辑
SELECT * from workouts where install_time = 123456 and local_id > 5 and date = xyz
SELECT * from workouts where install_time = 987643 and local_id > 19 and date = xyz
Run Code Online (Sandbox Code Playgroud)