WIP: Converts the splash screen to XML format

Removes all programatic calls that modify the layout and uses the XML
resource instead.
This commit is contained in:
Santiago Torres
2016-03-24 23:15:13 -04:00
parent e9f77ecd37
commit e535be6d18
5 changed files with 85 additions and 44 deletions

View File

@@ -45,21 +45,9 @@ public class SplashScreenActivity extends BaseActivity {
public void onCreate(Bundle state) {
super.onCreate(state);
LinearLayout layout = new LinearLayout(this);
layout.setLayoutParams(MATCH_MATCH);
layout.setGravity(CENTER);
layout.setBackgroundColor(Color.WHITE);
int pad = LayoutUtils.getLargeItemPadding(this);
ImageView logo = new ImageView(this);
logo.setPadding(pad, pad, pad, pad);
logo.setImageResource(R.drawable.briar_logo_large);
layout.addView(logo);
setPreferencesDefaults();
setContentView(layout);
setContentView(R.layout.splash);
new Handler().postDelayed(new Runnable() {
@Override