Android-Knopf in Linearlayout Fit Left
Ich möchte wie oben Bild Taste setzen. Aber ich habe unter Bild. Ich kann das nicht schaffen. Ich suche viel, kann es aber nicht finden.
Linearlayout in Linearlayout hat transparenten Hintergrund und es gibt Taste dieser links.
Activity.xml:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/genel_arkaplan"
android:orientation="vertical" >
<LinearLayout
android:orientation="vertical"
android:layout_width="750dp"
android:layout_height="wrap_content"
android:paddingLeft="40dp"
android:layout_gravity="center_vertical|center_horizontal"
android:background="@drawable/lay_transparan_aramasecenek"
android:layout_marginTop="100dp">
<LinearLayout
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/lay_transparan_aramasecenek_beyaz">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scaleType="fitCenter"
android:background="@drawable/kod_ile_arama"
android:id="@+id/imageButton" />
</LinearLayout>
</LinearLayout>
Ändern Sie Höhe und Breite auf 'match_parent' für das zweite' Linearlayout'. Button braucht nicht 'android: scaleType =" fitCenter "' entfernen Sie auch _android: paddingLeft = "40dp" _ – Piyush
Ich mache es, aber ich habe Platz links, oben und unten. Kannst du finales XML teilen? – mobileprogramming