4.2 ????????????
???ߣ?????
?????̳???????Ҫ????һ?????????????????????????Ƚϼ????ȫ????˳?????ڿ???ȥ?????????ﻹ???ùؼ???????λ??
?????????????Ľ?ͼ????????????????????֮??????˳?ģ??????????û?취?ص????档

?????Ǹ???ʱ?????????Ǹ???ť??ֱ?Ӱ??»???ʾ?????????ˡ???????????????Ϊ?ؼ???????????

?????ַ?????Դ????????_?m@0x7f040007?????ǵ?public.xml??????һ?£???????????????0x7f040007??ת??ʮ??????2130968583??
1. <public type="string" name="_?m@0x7f040007" id="0x7f040007" />
Ȼ???????ڷ??????? Java ????????????????ֵ??
1. paramAnonymous2View = (TextView)Floatw.access$L1000002(Floatw.this).findViewById(2131099651);
2. paramAnonymous2View.setText(Floatw.this.getResources().getString(2130968583));
??һ???Ǽ???ij???ı???ڶ????ǻ?ȡ?ַ??????????ı???
?????????Ͽ???
1. @Override
2. public void onClick(View paramAnonymous2View)
3. {
4. int i = Floatw.this.my_password;
5. if (this.val$etext.getText().toString().equals(String.valueOf(i)))
6. {
7. paramAnonymous2View = Floatw.this;
8. Floatw localFloatw = Floatw.this;
9. try
10. {
11. Class localClass = Class.forName("com.as.xiaoyu.Floatw");
12. paramAnonymous2View.stopService(new Intent(localFloatw, localClass));
13. return;
14. }
15. catch (ClassNotFoundException paramAnonymous2View)
16. {
17. throw new NoClassDefFoundError(paramAnonymous2View.getMessage());
18. }
19. }
20. // ?ղŵĴ???
21. // ...
22. }
????val$etext?????ݵ???i???ַ???ֵ????ô?ͻ??رշ??????˳??????????¿???????֪????????????????֮???ʹ?????һ??????????л?ȡ??WindowsManager??Ȼ????????һ??LinearLayout????????????ʵ????????Ч????
1. private void createFloatView()
2. {
3. this.wmParams = new WindowManager.LayoutParams();
4. Application localApplication = getApplication();
5. this.mWindowManager = ((WindowManager)localApplication.getSystemService(Context.WINDOW_SERVICE));
6. this.wmParams.type = 2010;
7. this.wmParams.format = 1;
8. this.wmParams.flags = 1280;
9. this.wmParams.width = -1;
10. this.wmParams.height = -1;
11. this.mFloatLayout = ((LinearLayout)LayoutInflater.from(getApplication()).inflate(2130903041, (ViewGroup)null));
12. this.mWindowManager.addView(this.mFloatLayout, this.wmParams);
13. this.mFloatLayout.measure(View.MeasureSpec.makeMeasureSpec(0, 0), View.MeasureSpec.makeMeasureSpec(0, 0));
14. }
Ҳ????˵??????ʹ?????رգ??Ǿͽ???????????
???Dz鿴onClick?ĵ?һ?У?????i??my_password??Ȼ????????my_password??
1. int my_password = this.number * 2 + 1;
2. int number = (int)((Math.random() + 1) * 100000);
???????????䣬֪????????ֵ??number?˶??ټ?һ??????number??ʲô?أ???????????number??
1. Object localObject = (TextView)Floatw.access$L1000002(Floatw.this).findViewById(2131099650);
2. String str = Floatw.this.getResources().getString(2130968582);
3. ((TextView)localObject).setText(str + String.valueOf(Floatw.this.number));
??Щ??????????һ???ı??????ַ?????Ȼ?????ַ?????numberƴ??????ʾ???????????ַ?????????????ͬ??ʽѰ?ң????˻?ID??????ônumber??Ӧ???Ǻ????????֡?????????108316????ô??????Ӧ????216633??
??????һ?????룺
1. localObject = (EditText)Floatw.access$L1000002(Floatw.this).findViewById(2131099649);
2131099649??ʮ??????Ϊ0x7f060001???????ҿ?֪???Ǹ?????????
1. <EditText android:textColor="#ff000000" android:id="@id/_?m@0x7f060001" android:background="#ffffffff" android:layout_width="200.0dip" android:layout_height="4.0dip" android:layout_marginEnd="200.0dip" />
???ﷴ????????һЩ???⣬û????val$etext??ֱ?Ӹ?ֵ????????Ӧ?þ????????༭??????????????????ҵ???????ʵҲ???ѣ????ǿ??Կ????????༭???ĸ߶Ⱥ?С?????ǻ??п??ȣ??????ڰ?ť???·??Ĵ???λ???ϵ?һ?㣬???ͳ????ˡ?

???ǰѱ༭????????ȫ??ɾ????Ȼ??????216633???ٴε?????????ť??

?????ɹ??????????ǿ????·??ؼ????˳??ˡ?
