У меня есть вертикально ориентированный LinearLayout
, у которого есть дочерний элемент LinearLayout
, который включает TextView
, EditText
, Button
и дочерний элемент ImageView
.
Что-то вроде:
<LinearLayout>
<LinearLayout>
<TextView>
<EditText>
<Button>
<ImageView>
И проблема, с которой я сталкиваюсь, заключается в том, что разделение между LinearLayout и ImageView (отображение .png в качестве фона с android: background = "@drawable / sun ") отображает видимую складку между ними.У меня есть LinearLayout, использующий тот же цвет фона, что и .png, так что похоже, что они сливаются вместе, но складка разрушает этот аспект.
Редактировать: Вот скриншот!
Вы видите тонкую линию под кнопкой отправки?
Вот xml:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@color/lightblue"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/welcome"
android:textSize="17sp"
android:textColor="@color/black"
/>
<EditText
android:id="@+id/entry"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:hint="@string/hint_text"
android:textSize="25sp"
android:inputType="text"
/>
<Button
android:id="@+id/submitButton"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textSize="25sp"
android:text="Submit"
/>
<FrameLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:paddingTop="0px"
>
<ImageView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/sunclouds"
android:layout_marginBottom="20dip"/>
<TextView
android:id="@+id/marq"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="10dip"
android:layout_gravity="center_horizontal|bottom"
android:textColor="@color/black"
android:text="@string/provider"
android:marqueeRepeatLimit="marquee_forever"
android:ellipsize="marquee"
android:focusable="true"
android:focusableInTouchMode="true"
android:singleLine="true"
android:scrollHorizontally="true"
/>
</FrameLayout>
</LinearLayout>
Как я могу это исправить?
(примечание: у моего солнца и облака неровные края, какие-нибудь быстрые исправления с gimp?)