mirror of
https://github.com/etlegacy/etlegacy-android.git
synced 2024-11-10 06:52:06 +00:00
java: get image from resources
This commit is contained in:
parent
85c6c58f36
commit
9998d3f61d
2 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@ public class ETLActivity extends SDLActivity implements JoyStickListener {
|
|||
|
||||
// This needs some refactoring
|
||||
final ImageButton buttonPopUpMenu = new ImageButton(getApplicationContext());
|
||||
buttonPopUpMenu.setImageBitmap(getBitmapFromAsset("btn_menu.png"));
|
||||
buttonPopUpMenu.setImageResource(R.drawable.ic_one_line);
|
||||
buttonPopUpMenu.setBackgroundResource(0);
|
||||
|
||||
final ImageButton btn2 = new ImageButton(getApplicationContext());
|
||||
|
|
|
@ -121,7 +121,7 @@ public class ETLMain extends Activity {
|
|||
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
|
||||
|
||||
ImageView imageView = new ImageView(this);
|
||||
imageView.setBackground(getSplashScreenFromAsset("etl_splashscreen.png"));
|
||||
imageView.setBackgroundResource(R.drawable.ic_horizontal_black);
|
||||
|
||||
LinearLayout etl_Layout = new LinearLayout(this);
|
||||
|
||||
|
|
Loading…
Reference in a new issue