信息反馈-冲刺02

昨天我做了学生登录后勤服务的界面;学生遇到问题需要上传图片,备注具体位置以及手机号

遇到问题:如何调用本地相机或从本地选取图片上传;

源代码:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/activity_main"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="com.example.helloworld.MainActivity"
    android:background="@drawable/fense">
    <RelativeLayout
        android:id="@+id/text11"
        android:layout_width="match_parent"
        android:layout_height="450dp"
        android:padding="100dp">
        <Button
            android:id="@+id/btn_xiangji"
            android:layout_width="150dp"
            android:layout_height="150dp"
            android:background="@drawable/xiangji">
        </Button>
    </RelativeLayout>
    <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_below="@id/text11">
            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent">
                    <Button
                         android:id="@+id/btn_textview1"
                         android:layout_width="180dp"
                         android:layout_height="match_parent"
                         android:text="操作说明"
                         android:background="@drawable/lvse"/>
                    <Button
                        android:id="@+id/btn_textview2"
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:text="我的服务"
                        android:layout_toRightOf="@id/btn_textview1"
                    android:background="@drawable/lvse"/>
            </LinearLayout>
    </RelativeLayout>
</RelativeLayout>
原文地址:https://www.cnblogs.com/sengzhao666/p/10801050.html