안드로이드 - fill_parent의 텍스트 뷰에 의해 중복 둥근 선형 레이아웃 코너
이것은 내가 내 레이아웃의 상단에 필요하다
이 실제로 무엇을 가지고
내가 지금 계산하지 않고있는 간단한 옵션이 있습니다. 이미 처음의 LinearLayout 아이로 드로어 블을 이동하는 것을 시도했다
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/home_root"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/rounded_layout" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/filter_title"
android:background="@android:color/black"
android:textColor="@android:color/white"
android:padding="10dp"
android:textSize="20sp" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="15dp" >
<Spinner
android:id="@+id/sp_intorno_a_me_proximity"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:spinnerMode="dialog" />
.
.
.
<EditText
android:id="@+id/et_intorno_a_me_username"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:textSize="20sp"
android:digits="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"
android:hint="@string/agentNumber" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginTop="20dp"
android:layout_marginBottom="10dp"
android:weightSum="1" >
<Button
android:id="@+id/btn_intorno_a_me_close_search"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.5"
android:text="@string/annulla"
style="@style/HelianButtonRed"
android:textColor="@android:color/white" />
<Button
android:id="@+id/btn_intorno_a_me_search"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.5"
android:text="@string/find"
style="@style/HelianButtonGreen" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</ScrollView>
둥근 모서리
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#E9E9E9"/>
<stroke android:width="4dip" android:color="#B1BCBE" />
<corners android:radius="10dip"/>
<padding android:left="0dip" android:top="0dip" android:right="0dip" android:bottom="0dip" />
</shape>
레이아웃에 대한
드로어 블.
둥근 모서리가 보이지 않도록 텍스트보기를 방지하려면 어떻게합니까?
두 번째 LinearLayout에서 제목 TextView를 선언하지 않는 이유는 무엇입니까? 이렇게하면 textView 배경이 둥근 모서리와 겹치지 않게됩니다. – Manishika
결과는 ** android : padding = "15dp"**로 인해 채워집니다. 두 번째 선형 레이아웃. 하나의보기에서 패딩을 피할 수 있습니까? –