parent
7898f58a84
commit
abbf5b6129
@ -0,0 +1,93 @@
|
|||||||
|
Index: app/src/main/java/hunnu/sj/raise_money/MainActivity.java
|
||||||
|
IDEA additional info:
|
||||||
|
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
|
||||||
|
<+>UTF-8
|
||||||
|
===================================================================
|
||||||
|
--- app/src/main/java/hunnu/sj/raise_money/MainActivity.java (date 1571791518000)
|
||||||
|
+++ app/src/main/java/hunnu/sj/raise_money/MainActivity.java (date 1571791523878)
|
||||||
|
@@ -25,7 +25,7 @@
|
||||||
|
|
||||||
|
private AppBarConfiguration mAppBarConfiguration;
|
||||||
|
|
||||||
|
-
|
||||||
|
+
|
||||||
|
@Override
|
||||||
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
|
super.onCreate(savedInstanceState);
|
||||||
|
Index: app/src/main/res/layout/activity_main.xml
|
||||||
|
IDEA additional info:
|
||||||
|
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
|
||||||
|
<+>UTF-8
|
||||||
|
===================================================================
|
||||||
|
--- app/src/main/res/layout/activity_main.xml (date 1571791518000)
|
||||||
|
+++ app/src/main/res/layout/activity_main.xml (date 1571794335249)
|
||||||
|
@@ -22,4 +22,6 @@
|
||||||
|
app:headerLayout="@layout/nav_header_main"
|
||||||
|
app:menu="@menu/activity_main_drawer" />
|
||||||
|
|
||||||
|
+
|
||||||
|
+
|
||||||
|
</androidx.drawerlayout.widget.DrawerLayout>
|
||||||
|
Index: app/src/main/res/layout/nav_header_main.xml
|
||||||
|
IDEA additional info:
|
||||||
|
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
|
||||||
|
<+>UTF-8
|
||||||
|
===================================================================
|
||||||
|
--- app/src/main/res/layout/nav_header_main.xml (date 1571791518000)
|
||||||
|
+++ app/src/main/res/layout/nav_header_main.xml (date 1571794335139)
|
||||||
|
@@ -18,7 +18,7 @@
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:contentDescription="@string/nav_header_desc"
|
||||||
|
android:paddingTop="@dimen/nav_header_vertical_spacing"
|
||||||
|
- app:srcCompat="@mipmap/ic_launcher_round" />
|
||||||
|
+ app:srcCompat="@drawable/ic_menu_gallery" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
Index: app/src/main/res/menu/activity_main_drawer.xml
|
||||||
|
IDEA additional info:
|
||||||
|
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
|
||||||
|
<+>UTF-8
|
||||||
|
===================================================================
|
||||||
|
--- app/src/main/res/menu/activity_main_drawer.xml (date 1571791518000)
|
||||||
|
+++ app/src/main/res/menu/activity_main_drawer.xml (date 1571794361373)
|
||||||
|
@@ -1,38 +1,4 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
- tools:showIn="navigation_view">
|
||||||
|
-
|
||||||
|
- <group android:checkableBehavior="single">
|
||||||
|
- <item
|
||||||
|
- android:id="@+id/nav_home"
|
||||||
|
- android:icon="@drawable/ic_menu_camera"
|
||||||
|
- android:title="@string/menu_home" />
|
||||||
|
- <item
|
||||||
|
- android:id="@+id/nav_gallery"
|
||||||
|
- android:icon="@drawable/ic_menu_gallery"
|
||||||
|
- android:title="@string/menu_gallery" />
|
||||||
|
- <item
|
||||||
|
- android:id="@+id/nav_slideshow"
|
||||||
|
- android:icon="@drawable/ic_menu_slideshow"
|
||||||
|
- android:title="@string/menu_slideshow" />
|
||||||
|
- <item
|
||||||
|
- android:id="@+id/nav_tools"
|
||||||
|
- android:icon="@drawable/ic_menu_manage"
|
||||||
|
- android:title="@string/menu_tools" />
|
||||||
|
- </group>
|
||||||
|
-
|
||||||
|
- <item android:title="Communicate">
|
||||||
|
- <menu>
|
||||||
|
- <item
|
||||||
|
- android:id="@+id/nav_share"
|
||||||
|
- android:icon="@drawable/ic_menu_share"
|
||||||
|
- android:title="@string/menu_share" />
|
||||||
|
- <item
|
||||||
|
- android:id="@+id/nav_send"
|
||||||
|
- android:icon="@drawable/ic_menu_send"
|
||||||
|
- android:title="@string/menu_send" />
|
||||||
|
- </menu>
|
||||||
|
- </item>
|
||||||
|
-
|
||||||
|
-</menu>
|
||||||
|
+ tools:showIn="navigation_view"/>
|
@ -0,0 +1,42 @@
|
|||||||
|
package hunnu.sj.raise_money;
|
||||||
|
|
||||||
|
import androidx.appcompat.app.AppCompatActivity;
|
||||||
|
|
||||||
|
import android.content.Intent;
|
||||||
|
import android.os.Bundle;
|
||||||
|
import android.os.Message;
|
||||||
|
import android.view.View;
|
||||||
|
import android.widget.EditText;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
public class SignInActivity extends AppCompatActivity {
|
||||||
|
public static final String IS_SIGNIN = "is.user.sign.in";
|
||||||
|
@Override
|
||||||
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
|
super.onCreate(savedInstanceState);
|
||||||
|
setContentView(R.layout.activity_signin);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void user_commit(View view){
|
||||||
|
EditText usnm = findViewById(R.id.user_name);
|
||||||
|
EditText pswd = findViewById(R.id.pass_word);
|
||||||
|
String name = usnm.getText().toString();
|
||||||
|
String pasd = pswd.getText().toString();
|
||||||
|
if(!name.equals("admin")){
|
||||||
|
usnm.setError("用户名错误");
|
||||||
|
}else if(!pasd.equals("admin")){
|
||||||
|
pswd.setError("密码错误");
|
||||||
|
}else{
|
||||||
|
User user = new User();
|
||||||
|
user.setName(name);
|
||||||
|
user.setPasd(pasd);
|
||||||
|
Bundle bundle = new Bundle();
|
||||||
|
bundle.putSerializable("user",user);
|
||||||
|
Intent intent =new Intent(this,MainActivity.class);
|
||||||
|
intent.putExtras(bundle);
|
||||||
|
startActivity(intent);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,98 @@
|
|||||||
|
package hunnu.sj.raise_money;
|
||||||
|
|
||||||
|
import androidx.appcompat.app.AppCompatActivity;
|
||||||
|
import androidx.core.content.FileProvider;
|
||||||
|
|
||||||
|
import android.content.Intent;
|
||||||
|
|
||||||
|
|
||||||
|
import android.net.Uri;
|
||||||
|
import android.os.Build;
|
||||||
|
import android.os.Bundle;
|
||||||
|
import android.provider.MediaStore;
|
||||||
|
import android.view.View;
|
||||||
|
import android.widget.Button;
|
||||||
|
import android.widget.ImageView;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.net.URI;
|
||||||
|
|
||||||
|
import hunnu.sj.raise_money.R;
|
||||||
|
|
||||||
|
public class UploadActivity extends AppCompatActivity {
|
||||||
|
public static final int TAKE_PHOTO = 1;
|
||||||
|
private ImageView stu_pic;
|
||||||
|
private ImageView[] stu_src;
|
||||||
|
private Uri imageUri;
|
||||||
|
@Override
|
||||||
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
|
super.onCreate(savedInstanceState);
|
||||||
|
setContentView(R.layout.activity_upload);
|
||||||
|
stu_pic = findViewById(R.id.stu_pic);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void onUploadPic(View view){
|
||||||
|
/*File outputImage = new File(getExternalCacheDir(),"output_image.jpg");
|
||||||
|
try {
|
||||||
|
if(outputImage.exists()){
|
||||||
|
outputImage.delete();
|
||||||
|
}
|
||||||
|
outputImage.createNewFile();
|
||||||
|
}catch (IOException e){
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
if(Build.VERSION.SDK_INT>=24){
|
||||||
|
imageUri = FileProvider.getUriForFile(UploadActivity.this,"com.example.cameraalbumtest.fileprovider",outputImage);
|
||||||
|
}else {
|
||||||
|
imageUri = Uri.fromFile(outputImage);
|
||||||
|
}*/
|
||||||
|
|
||||||
|
Intent intent = new Intent(Intent.ACTION_PICK,null);
|
||||||
|
intent.setDataAndType(MediaStore.Images.Media.EXTERNAL_CONTENT_URI,"image/*");
|
||||||
|
startActivityForResult(intent,1);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void onLoadPic(){
|
||||||
|
Intent intent = new Intent(Intent.ACTION_PICK,null);
|
||||||
|
intent.setDataAndType(MediaStore.Images.Media.EXTERNAL_CONTENT_URI,"image/*");
|
||||||
|
startActivity(intent);
|
||||||
|
}
|
||||||
|
|
||||||
|
private class stu{
|
||||||
|
private ImageView stu_pic;
|
||||||
|
private ImageView stu_src1;
|
||||||
|
private ImageView stu_src2;
|
||||||
|
private ImageView stu_src3;
|
||||||
|
public void setStu_pic(ImageView imageView){
|
||||||
|
this.stu_pic = imageView;
|
||||||
|
}
|
||||||
|
public ImageView getStu_pic(){
|
||||||
|
return stu_pic;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStu_src1(ImageView imageView){
|
||||||
|
this.stu_src1 = imageView;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ImageView getStu_src1() {
|
||||||
|
return stu_src1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStu_src2(ImageView stu_src2) {
|
||||||
|
this.stu_src2 = stu_src2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ImageView getStu_src2() {
|
||||||
|
return stu_src2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStu_src3(ImageView stu_src3) {
|
||||||
|
this.stu_src3 = stu_src3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ImageView getStu_src3() {
|
||||||
|
return stu_src3;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,24 @@
|
|||||||
|
package hunnu.sj.raise_money;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
public class User implements Serializable{
|
||||||
|
private String name;
|
||||||
|
private String pasd;
|
||||||
|
|
||||||
|
public void setName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPasd(String pasd) {
|
||||||
|
this.pasd = pasd;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPasd() {
|
||||||
|
return pasd;
|
||||||
|
}
|
||||||
|
}
|
After Width: | Height: | Size: 490 KiB |
After Width: | Height: | Size: 4.8 KiB |
@ -0,0 +1,18 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<layer-list
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item>
|
||||||
|
<shape
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:shape="rectangle">
|
||||||
|
<solid
|
||||||
|
android:color="#EFEFEF"/>
|
||||||
|
<corners
|
||||||
|
android:radius="3dip"
|
||||||
|
/>
|
||||||
|
<stroke
|
||||||
|
android:width="0.5px"
|
||||||
|
android:color="#505050"/>
|
||||||
|
</shape>
|
||||||
|
</item>
|
||||||
|
</layer-list>
|
@ -0,0 +1,9 @@
|
|||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:viewportWidth="24.0"
|
||||||
|
android:viewportHeight="24.0">
|
||||||
|
<path
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M15.5,14h-0.79l-0.28,-0.27C15.41,12.59 16,11.11 16,9.5 16,5.91 13.09,3 9.5,3S3,5.91 3,9.5 5.91,16 9.5,16c1.61,0 3.09,-0.59 4.23,-1.57l0.27,0.28v0.79l5,4.99L20.49,19l-4.99,-5zM9.5,14C7.01,14 5,11.99 5,9.5S7.01,5 9.5,5 14,7.01 14,9.5 11.99,14 9.5,14z"/>
|
||||||
|
</vector>
|
@ -0,0 +1,69 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
tools:context=".Initial">
|
||||||
|
|
||||||
|
<EditText
|
||||||
|
android:id="@+id/user_name"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:ems="10"
|
||||||
|
android:hint="用户名"
|
||||||
|
android:inputType="textPersonName"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintHorizontal_bias="0.431"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
app:layout_constraintVertical_bias="0.193"
|
||||||
|
tools:ignore="MissingConstraints" />
|
||||||
|
|
||||||
|
<EditText
|
||||||
|
android:id="@+id/pass_word"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="16dp"
|
||||||
|
android:layout_marginLeft="16dp"
|
||||||
|
android:ems="10"
|
||||||
|
android:hint="密码"
|
||||||
|
android:inputType="textPassword"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintHorizontal_bias="0.381"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
app:layout_constraintVertical_bias="0.295"
|
||||||
|
tools:ignore="MissingConstraints" />
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:id="@+id/register"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="16dp"
|
||||||
|
android:text="注册"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintHorizontal_bias="0.653"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
app:layout_constraintVertical_bias="0.443"
|
||||||
|
tools:ignore="MissingConstraints" />
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:id="@+id/sign_in"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:onClick="user_commit"
|
||||||
|
android:text="登录"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintHorizontal_bias="0.263"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
app:layout_constraintVertical_bias="0.456"
|
||||||
|
tools:ignore="MissingConstraints" />
|
||||||
|
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
@ -0,0 +1,113 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
tools:context=".UploadActivity">
|
||||||
|
|
||||||
|
<ScrollView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="bottom"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/stu_pic"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="@drawable/ic_menu_gallery"
|
||||||
|
android:foregroundGravity="center_horizontal"
|
||||||
|
tools:srcCompat="@tools:sample/avatars" />
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:id="@+id/upload_pic"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginLeft="@android:dimen/app_icon_size"
|
||||||
|
android:onClick="onUploadPic"
|
||||||
|
android:text="上传图片" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<EditText
|
||||||
|
android:id="@+id/editText"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="125dp"
|
||||||
|
android:layout_marginTop="@dimen/activity_horizontal_margin"
|
||||||
|
android:background="@drawable/edit_background"
|
||||||
|
android:ems="10"
|
||||||
|
android:gravity="left"
|
||||||
|
android:hint="个人说明"
|
||||||
|
android:inputType="textMultiLine" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/textView2"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="@android:dimen/notification_large_icon_width"
|
||||||
|
android:text="提交材料"
|
||||||
|
android:textColor="@android:color/background_dark"
|
||||||
|
android:textSize="30sp" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<ImageButton
|
||||||
|
android:id="@+id/update_src1"
|
||||||
|
android:layout_width="90dp"
|
||||||
|
android:layout_height="90dp"
|
||||||
|
app:srcCompat="@drawable/ic_menu_gallery" />
|
||||||
|
|
||||||
|
<ImageButton
|
||||||
|
android:id="@+id/upload_src2"
|
||||||
|
android:layout_width="90dp"
|
||||||
|
android:layout_height="90dp"
|
||||||
|
android:layout_marginLeft="@dimen/activity_horizontal_margin"
|
||||||
|
app:srcCompat="@drawable/ic_menu_gallery" />
|
||||||
|
|
||||||
|
<ImageButton
|
||||||
|
android:id="@+id/upload_src3"
|
||||||
|
android:layout_width="90dp"
|
||||||
|
android:layout_height="90dp"
|
||||||
|
android:layout_marginLeft="@dimen/activity_horizontal_margin"
|
||||||
|
app:srcCompat="@drawable/ic_menu_gallery" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="97dp"
|
||||||
|
android:gravity="center"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:id="@+id/commit"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="@dimen/activity_horizontal_margin"
|
||||||
|
android:gravity="center"
|
||||||
|
android:text="提交" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
</ScrollView>
|
||||||
|
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
@ -0,0 +1,11 @@
|
|||||||
|
<RelativeLayout
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
|
<Switch
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_centerHorizontal="true"
|
||||||
|
android:layout_centerVertical="true" />
|
||||||
|
</RelativeLayout>
|
@ -1,38 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
<item
|
||||||
tools:showIn="navigation_view">
|
android:id="@+id/needhelp"
|
||||||
|
android:onClick="onNeedHelp"
|
||||||
<group android:checkableBehavior="single">
|
android:title="@string/need_help" />
|
||||||
<item
|
|
||||||
android:id="@+id/nav_home"
|
|
||||||
android:icon="@drawable/ic_menu_camera"
|
|
||||||
android:title="@string/menu_home" />
|
|
||||||
<item
|
|
||||||
android:id="@+id/nav_gallery"
|
|
||||||
android:icon="@drawable/ic_menu_gallery"
|
|
||||||
android:title="@string/menu_gallery" />
|
|
||||||
<item
|
|
||||||
android:id="@+id/nav_slideshow"
|
|
||||||
android:icon="@drawable/ic_menu_slideshow"
|
|
||||||
android:title="@string/menu_slideshow" />
|
|
||||||
<item
|
|
||||||
android:id="@+id/nav_tools"
|
|
||||||
android:icon="@drawable/ic_menu_manage"
|
|
||||||
android:title="@string/menu_tools" />
|
|
||||||
</group>
|
|
||||||
|
|
||||||
<item android:title="Communicate">
|
|
||||||
<menu>
|
|
||||||
<item
|
|
||||||
android:id="@+id/nav_share"
|
|
||||||
android:icon="@drawable/ic_menu_share"
|
|
||||||
android:title="@string/menu_share" />
|
|
||||||
<item
|
|
||||||
android:id="@+id/nav_send"
|
|
||||||
android:icon="@drawable/ic_menu_send"
|
|
||||||
android:title="@string/menu_send" />
|
|
||||||
</menu>
|
|
||||||
</item>
|
|
||||||
|
|
||||||
</menu>
|
</menu>
|
||||||
|
Loading…
Reference in new issue