Home > Mobile >  An Activity has more than 500 controls, the mobile phone have much impact
An Activity has more than 500 controls, the mobile phone have much impact

Time:11-26

Install a ViewPager inside an Activity, then a total of 6 pages, the six pages of a total of 500 + controls, like the following
 
Android: layout_width="match_parent"
Android: layout_height="wrap_content"
Android: layout_marginStart="10 dp"
Android: layout_marginTop="10 dp"
Android: layout_marginEnd="10 dp"
Android: background="@ drawable/ff0819"
The android: orientation="horizontal" & gt;
Android: layout_width="0 dp"
Android: layout_height="wrap_content"
Android: layout_weight="1"
Android: layout_marginEnd="10 dp"
Android: layout_marginTop="2 dp"
Android: layout_marginBottom="2 dp"
Android: textAlignment="viewEnd"
Android: text="@ string/factory_index:"
Android: textSize="@ dimen/text_size_14"/& gt;
The android: id="@ + id/cellInfoArfcnEditText"
Android: layout_width="0 dp"
Android: layout_height="wrap_content"
Android: layout_weight="2"
Android: layout_marginStart="2 dp"
Android: layout_marginTop="2 dp"
Android: layout_marginEnd="2 dp"
Android: layout_marginBottom="2 dp"
Android: background="@ drawable/rect_corner"
Android: ellipsize="end"
Android: inputType="none"
Android: lines="1"
Android: textColor="# ff555555"
Android: textColorHint="# ff999999"
Android: textSize="@ dimen/text_size_20"/& gt;


Millet 9, for example, launched such an Activity for mobile phone
1. And empty Activity almost no difference between
2. Leads to cell phone startup verification caton (for several seconds)

PS: I start this Activity points every time a few times to start, I don't know why? Some worry that controls put much

CodePudding user response:

More than 500,,,,,,,

CodePudding user response:

To know about the android view, activity cache, destruction of memory recovery mechanism,
  • Related