
ji;
;
ty;
t;
;
;
;
publicclassMainActivityextendsActivity{
privateContextcontext=;
@Override
protectedvoidonCreate(BundlesavedInstanceState){
te(savedInstanceState);
tContentView(ty_main);
}
@Override
publicbooleanonCreateOptionsMenu(Menumenu){
//Inflatethemenu;thisaddsitemstotheactionbarifitisprent.
getMenuInflater().inflate(,menu);
returntrue;
}
publicvoidchangepicture(Viewv){
Intentintent=newIntent(context,);
startActivity(intent);
}
}
ji;
ty;
t;
;
;
;
publicclassnewactivityextendsActivity{
privateContextcontext=;
@Override
protectedvoidonCreate(BundlesavedInstanceState){
te(savedInstanceState);
tContentView(ivity);
}
publicvoidchangemessage(Viewv){
Intentintent=newIntent(context,);
startActivity(intent);
}
}
xmlns:android="/apk/res/android"
xmlns:tools="/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity">
android:id="@+id/textView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/textView1"
android:layout_alignParentTop="true"
android:layout_marginTop="132dp"
android:onClick="newfile"
android:text="@string/interview3"/>
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/textView3"
android:layout_below="@+id/textView3"
android:layout_marginTop="39dp"
android:text="@string/interview2"/>
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/textView3"
android:layout_alignParentLeft="true"
android:layout_marginBottom="49dp"
android:layout_marginLeft="76dp"
android:text="@string/interview1"/>
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/textView2"
android:layout_alignParentBottom="true"
android:layout_marginBottom="72dp"
android:onClick="changepicture"
android:text="切換圖片"/>
<?xmlversion="1.0"encoding="utf-8"?>
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
android:id="@+id/imageView1"
android:layout_width="287dp"
android:layout_height="81dp"
android:layout_weight="0.14"
android:src="@drawable/hfhkdhf"/>
android:id="@+id/button1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="changemessage"
android:text="跳轉到個人資料"/>
本文發布于:2023-03-16 00:08:08,感謝您對本站的認可!
本文鏈接:http://www.newhan.cn/zhishi/a/1678896488142984.html
版權聲明:本站內容均來自互聯網,僅供演示用,請勿用于商業和其他非法用途。如果侵犯了您的權益請與我們聯系,我們將在24小時內刪除。
本文word下載地址:安卓id.doc
本文 PDF 下載地址:安卓id.pdf
| 留言與評論(共有 0 條評論) |