Commit c1601154 by Simhachalam ch

changed back to vera theme

parent 6c3966bf
......@@ -178,18 +178,6 @@ public class LoginScreen extends Activity {
}
}
@OnClick({R.id.login_screen_login_text_view,R.id.login_screen_login_text_view_twillio})
void onLoginClicked(View mView) {
if(mView.getId()==R.id.login_screen_login_text_view){
callLoginAPI(false);
}else if(mView.getId()==R.id.login_screen_login_text_view_twillio){
callLoginAPI(true);
}
}
private void launchOptValidationScreen(){
......
......@@ -10,6 +10,7 @@ import android.support.v4.content.LocalBroadcastManager;
import android.text.TextUtils;
import android.util.Log;
import android.view.Window;
import android.widget.ImageView;
import android.widget.LinearLayout;
import com.androidquery.AQuery;
......@@ -39,24 +40,26 @@ public class SplashScreen extends Activity {
// Splash screen timer
private static int SPLASH_TIME_OUT = 3000;
private LinearLayout mainLayt;
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.splash_screen);
AppCenter.start(getApplication(), "f7408b15-e0d4-4157-ab67-8bb5ba833bdb", Analytics.class,
Crashes.class);
requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.splash_screen);
mainLayt = (LinearLayout) findViewById(R.id.splash_main_lyt);
Glide.with(this).load(R.drawable.splash_screen_bg).into(new SimpleTarget<Drawable>() {
final ImageView splashImageView = (ImageView) findViewById(R.id.splash_image);
Glide.with(this).load(R.drawable.logo_splash).into(new SimpleTarget<Drawable>() {
@Override
public void onResourceReady(Drawable resource, Transition<? super Drawable> transition) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
mainLayt.setBackground(resource);
splashImageView.setBackground(resource);
}
}
});
......@@ -73,7 +76,7 @@ public class SplashScreen extends Activity {
startActivity(new Intent(SplashScreen.this, HomeScreen.class));
}else{
startActivity(new Intent(SplashScreen.this, ADALActivity.class));
startActivity(new Intent(SplashScreen.this, LoginScreen.class));
}
}
private void startThread() {
......
......@@ -107,24 +107,7 @@
android:text="@string/login_screen_login_string"
android:textColor="@android:color/white"
android:textSize="@dimen/large_text_size" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content" android:text="(or)" android:gravity="center" android:textSize="30dp" android:textStyle="bold"/>
<TextView
android:id="@+id/login_screen_login_text_view_twillio"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/normal_margin"
android:layout_marginLeft="@dimen/extra_large_margin"
android:layout_marginRight="@dimen/extra_large_margin"
android:layout_marginTop="30dp"
android:background="@drawable/login_bg"
android:gravity="center"
android:paddingBottom="@dimen/normal_margin"
android:paddingTop="@dimen/normal_margin"
android:text="@string/login_screen_login_string_twillio"
android:textColor="@android:color/white"
android:textSize="@dimen/large_text_size" />
</LinearLayout>
</LinearLayout>
</ScrollView>
\ No newline at end of file
......@@ -4,7 +4,15 @@
android:layout_height="match_parent"
android:id="@+id/splash_main_lyt"
android:layout_gravity="center"
android:background="#000"
android:orientation="vertical">
<ImageView
android:id="@+id/splash_image"
android:layout_gravity="center"
android:layout_width="200dp"
android:layout_height="150dp"
/>
</LinearLayout>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment