mirror of
https://github.com/etlegacy/etlegacy-android.git
synced 2024-11-10 06:52:06 +00:00
java: change to use display metrics
This commit is contained in:
parent
46c4715170
commit
7b48c371fe
1 changed files with 2 additions and 2 deletions
|
@ -101,8 +101,8 @@ public class ETLMain extends Activity {
|
|||
|
||||
LinearLayout etl_Layout = new LinearLayout(this);
|
||||
|
||||
RelativeLayout.LayoutParams etl_Params = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,
|
||||
1024);
|
||||
RelativeLayout.LayoutParams etl_Params = new RelativeLayout.LayoutParams(Resources.getSystem().getDisplayMetrics().widthPixels,
|
||||
Resources.getSystem().getDisplayMetrics().heightPixels);
|
||||
|
||||
etl_Layout.addView(imageView, etl_Params);
|
||||
setContentView(etl_Layout);
|
||||
|
|
Loading…
Reference in a new issue