Android 在Realtivelayout中使用tablelayout
我很难得到下面的布局,有人能帮我得到下面的布局吗..总背景应该是白色的。任何帮助都是非常感谢的 下面是我的xml文件Android 在Realtivelayout中使用tablelayout,android,android-layout,android-relativelayout,tablelayout,Android,Android Layout,Android Relativelayout,Tablelayout,我很难得到下面的布局,有人能帮我得到下面的布局吗..总背景应该是白色的。任何帮助都是非常感谢的 下面是我的xml文件 <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="m
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:src="@drawable/askabud" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingLeft="5dp" >
</LinearLayout>
<EditText
android:id="@+id/fbedittext"
android:layout_width="250dp"
android:layout_height="100dp"
android:layout_alignParentLeft="true"
android:layout_below="@+id/imageView1"
android:layout_marginTop="33dp"
android:ems="10"
android:gravity="top"
android:hint="@string/saysomething"
android:lines="6"
android:paddingRight="5dp"
android:scrollHorizontally="true" />
<ImageView
android:id="@+id/imageView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:src="@drawable/fbcancel" />
<ImageView
android:id="@+id/imageView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@+id/fbedittext"
android:layout_toLeftOf="@+id/imageView2"
android:src="@drawable/facebooks1" />
<ImageView
android:id="@+id/imageView4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/fbedittext"
android:layout_alignLeft="@+id/imageView3"
android:layout_marginBottom="18dp"
android:src="@drawable/people" />
</RelativeLayout>
有人能建议我如何获得编辑文本和下拉列表的圆角吗。感谢使用EditText的圆角,您可以在drawables文件夹中定义roundcorner.xml,其中
<corners android:radius="14dp" />
选中此下拉列表对于EditText的圆角,您可以在drawables文件夹中定义roundcorner.xml,其中显示
<corners android:radius="14dp" />
检查此下拉列表检查我在代码中所做的更改:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:src="@drawable/ic_launcher" />
<ImageView
android:id="@+id/imageView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:src="@drawable/ic_launcher" />
<EditText
android:id="@+id/fbedittext"
android:layout_width="250dp"
android:layout_height="140dp"
android:layout_alignParentLeft="true"
android:layout_below="@+id/imageView1"
android:layout_marginTop="33dp"
android:ems="10"
android:gravity="top"
android:hint="saysomething"
android:lines="6"
android:paddingRight="5dp"
android:scrollHorizontally="true" />
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="130dp"
android:layout_alignBaseline="@id/fbedittext"
android:layout_alignParentRight="true"
android:layout_marginRight="10dip"
android:layout_toRightOf="@id/fbedittexts" >
<ImageView
android:id="@+id/imageView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:src="@drawable/ic_launcher" />
<ImageView
android:id="@+id/imageView4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:src="@drawable/ic_launcher" />
</RelativeLayout>
<Spinner
android:id="@+id/spinner"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/fbedittext" />
</RelativeLayout>
你不需要线性布局。您可以使用android:layout_marginRight
从右角开始设置间距。
对于下拉列表,您可以使用检查我在代码中所做的更改:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:src="@drawable/ic_launcher" />
<ImageView
android:id="@+id/imageView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:src="@drawable/ic_launcher" />
<EditText
android:id="@+id/fbedittext"
android:layout_width="250dp"
android:layout_height="140dp"
android:layout_alignParentLeft="true"
android:layout_below="@+id/imageView1"
android:layout_marginTop="33dp"
android:ems="10"
android:gravity="top"
android:hint="saysomething"
android:lines="6"
android:paddingRight="5dp"
android:scrollHorizontally="true" />
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="130dp"
android:layout_alignBaseline="@id/fbedittext"
android:layout_alignParentRight="true"
android:layout_marginRight="10dip"
android:layout_toRightOf="@id/fbedittexts" >
<ImageView
android:id="@+id/imageView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:src="@drawable/ic_launcher" />
<ImageView
android:id="@+id/imageView4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:src="@drawable/ic_launcher" />
</RelativeLayout>
<Spinner
android:id="@+id/spinner"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/fbedittext" />
</RelativeLayout>
你不需要线性布局。您可以使用android:layout_marginRight
从右角开始设置间距。
对于下拉列表,你可以使用你能为此发布你的.xml文件吗?
RelativeLayout
对于这个布局就足够了。在这里发布你的xml代码,这样我们就可以看到哪里出了问题…我不知道如何实现它..寻找xmlfile@Abhjith如何获取下拉列表?您可以为此发布.xml文件吗?RelativeLayout
就足够了layout.post您的xml代码在这里,这样我们就可以看到哪里出了问题…我不知道如何实现它..寻找xmlfile@Abhjith如何下载?谢谢甜心..知道如何下载吗?检查这个下载谢谢甜心..知道如何下载吗?检查这个下载谢谢..是的spinner是唯一的选择很多。是的,旋转器是唯一的选择