Android 具有编辑和保存选项的用户配置文件布局
我是android新手。我正在创建用户配置文件的布局。在此布局中,用户可以编辑和查看其个人资料详细信息。点击编辑按钮 请给我任何建议,使这种类型的布局Android 具有编辑和保存选项的用户配置文件布局,android,android-layout,Android,Android Layout,我是android新手。我正在创建用户配置文件的布局。在此布局中,用户可以编辑和查看其个人资料详细信息。点击编辑按钮 请给我任何建议,使这种类型的布局 试试这个,它对你有用,我的朋友 <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.c
试试这个,它对你有用,我的朋友
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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:id="@+id/activity_profile"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context="com.ncrypted.dempproject.Profile">
<View
android:id="@+id/view"
android:layout_width="match_parent"
android:layout_height="200dp"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_marginBottom="50dp"
android:background="@color/colorPrimary" />
<ScrollView
android:id="@+id/scrolView_account"
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout
android:id="@+id/linear_account"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="100dp"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="100dp"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:text="profile Details"
android:textStyle="bold" />
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColorHint="@color/colorPrimary">
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Please Enter User Name"
android:imeOptions="actionNext"
android:textColorHint="@color/colorPrimary" />
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColorHint="@color/colorPrimary">
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Email Address"
android:imeOptions="actionNext"
android:inputType="textEmailAddress"
android:textColorHint="@color/colorPrimary" />
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColorHint="@color/colorPrimary">
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="password"
android:imeOptions="actionNext"
android:inputType="textPassword"
android:textColorHint="@color/colorPrimary" />
</android.support.design.widget.TextInputLayout>
</LinearLayout>
</LinearLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_alignParentStart="true">
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/imageview_account_profile"
android:layout_width="150dp"
android:layout_height="150dp"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:src="@mipmap/ic_launcher"
app:civ_border_color="#FFFFFF"
app:civ_border_width="2dp" />
<android.support.design.widget.FloatingActionButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_alignEnd="@+id/imageview_account_profile"
android:layout_marginTop="10dp"
android:id="@+id/floatingActionButton" />
</RelativeLayout>
</RelativeLayout>
</ScrollView>
</RelativeLayout>
请将您的工作代码粘贴到此处。我正在创建一个布局
然后向我们展示您已经创建的内容。请向我们展示您到目前为止尝试做的事情,因为从目前的情况看,您似乎是在要求我们为您编写代码。为此,我使用android:visibility:Visible and Goe代码'@ChinthakaDevinda很乐意帮忙u@NileshRathod我应用了你的解决方案,它运行良好,但在安卓ICS中会产生奇怪的阴影效果。因此,最好在app:elevation=“0dp”中添加以删除sadow。为我工作希望这对某些人有所帮助在代码中圆形配置文件图像的编辑上载按钮在哪里?@NileshRathod:为XML添加Java代码难道没有意义吗?仅仅使用XML不会提供任何功能,只是一个布局