4.2 ????????????
???ߣ?????
?????̳???????Ҫ????һ?????????????????????????Ƚϼ????ȫ????˳?????ڿ???ȥ?????????ﻹ???ùؼ???????λ??
?????????????Ľ?ͼ????????????????????֮??????˳?ģ??????????û?취?ص????档
?????Ǹ???ʱ?????????Ǹ???ť??ֱ?Ӱ??»???ʾ?????????ˡ???????????????Ϊ?ؼ???????????
?????ַ?????Դ????????_?m@0x7f040007
?????ǵ?public.xml
??????һ?£???????????????0x7f040007
??ת??ʮ??????2130968583
??
<public type="string" name="_?m@0x7f040007" id="0x7f040007" />
Ȼ???????ڷ??????? Java ????????????????ֵ??
paramAnonymous2View = (TextView)Floatw.access$L1000002(Floatw.this).findViewById(2131099651);
paramAnonymous2View.setText(Floatw.this.getResources().getString(2130968583));
??һ???Ǽ???ij???ı???ڶ????ǻ?ȡ?ַ??????????ı???
?????????Ͽ???
@Override
public void onClick(View paramAnonymous2View)
{
int i = Floatw.this.my_password;
if (this.val$etext.getText().toString().equals(String.valueOf(i)))
{
paramAnonymous2View = Floatw.this;
Floatw localFloatw = Floatw.this;
try
{
Class localClass = Class.forName("com.as.xiaoyu.Floatw");
paramAnonymous2View.stopService(new Intent(localFloatw, localClass));
return;
}
catch (ClassNotFoundException paramAnonymous2View)
{
throw new NoClassDefFoundError(paramAnonymous2View.getMessage());
}
}
// ?ղŵĴ???
// ...
}
????val$etext
?????ݵ???i
???ַ???ֵ????ô?ͻ??رշ??????˳??????????¿???????֪????????????????֮???ʹ?????һ??????????л?ȡ??WindowsManager
??Ȼ????????һ??LinearLayout
????????????ʵ????????Ч????
private void createFloatView()
{
this.wmParams = new WindowManager.LayoutParams();
Application localApplication = getApplication();
this.mWindowManager = ((WindowManager)localApplication.getSystemService(Context.WINDOW_SERVICE));
this.wmParams.type = 2010;
this.wmParams.format = 1;
this.wmParams.flags = 1280;
this.wmParams.width = -1;
this.wmParams.height = -1;
this.mFloatLayout = ((LinearLayout)LayoutInflater.from(getApplication()).inflate(2130903041, (ViewGroup)null));
this.mWindowManager.addView(this.mFloatLayout, this.wmParams);
this.mFloatLayout.measure(View.MeasureSpec.makeMeasureSpec(0, 0), View.MeasureSpec.makeMeasureSpec(0, 0));
}
Ҳ????˵??????ʹ?????رգ??Ǿͽ???????????
???Dz鿴onClick
?ĵ?һ?У?????i
??my_password
??Ȼ????????my_password
??
int my_password = this.number * 2 + 1;
int number = (int)((Math.random() + 1) * 100000);
???????????䣬֪????????ֵ??number
?˶??ټ?һ??????number
??ʲô?أ???????????number
??
Object localObject = (TextView)Floatw.access$L1000002(Floatw.this).findViewById(2131099650);
String str = Floatw.this.getResources().getString(2130968582);
((TextView)localObject).setText(str + String.valueOf(Floatw.this.number));
??Щ??????????һ???ı??????ַ?????Ȼ?????ַ?????number
ƴ??????ʾ???????????ַ?????????????ͬ??ʽѰ?ң????˻?ID??
????ônumber
??Ӧ???Ǻ????????֡?????????108316
????ô??????Ӧ????216633
??
??????һ?????룺
localObject = (EditText)Floatw.access$L1000002(Floatw.this).findViewById(2131099649);
2131099649
??ʮ??????Ϊ0x7f060001
???????ҿ?֪???Ǹ?????????
<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
???ٴε?????????ť??
?????ɹ??????????ǿ????·??ؼ????˳??ˡ?