[Offen] Android Layout funktioniert nicht

Y

YouKnowNow

Neues Mitglied
0
Hallo Leute,
ich hab zwei Fragen:
Die kürzere zuerst: Kann man eine Apk die man heruntergeladet hat mit Android Studio öffnen??
Also wenn man nur die APk hat??
die Zweitte ist:
Warum funktioniert das so nicht:
ich hab die Buttons in der reihenfolge sortiert aber die letzte Spalte überlappt sich aus irgendeinem Grund mit der ersten
Hier die Xml Datei:
<?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:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.abbas.soundboard.MainActivity">


<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Soundboard"
android:textSize="20dp"
android:textStyle="bold"
android:layout_marginTop="19dp"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true" />


<Button
android:id="@+id/button1"
android:layout_width="100dp"
android:layout_height="60dp"
android:background="@color/yellow"
android:text="Button1"
android:layout_marginLeft="15dp"
android:layout_marginTop="60dp"
/>


<Button
android:id="@+id/button2"
android:layout_width="100dp"
android:layout_height="60dp"
android:background="@color/yellow"
android:text="Button2"
android:layout_centerHorizontal="true"
android:layout_marginTop="60dp"/>


<Button
android:id="@+id/button3"
android:layout_width="100dp"
android:layout_height="60dp"
android:layout_marginRight="15dp"
android:layout_marginTop="60dp"
android:background="@color/yellow"
android:text="Button3" />


<Button
android:id="@+id/button4"
android:layout_width="100dp"
android:layout_height="60dp"
android:text="Button4"
android:background="@color/yellow"
android:layout_marginLeft="15dp"
android:layout_marginTop="160dp"/>


<Button
android:id="@+id/button5"
android:layout_width="100dp"
android:layout_height="60dp"
android:text="Button5"
android:background="@color/yellow"
android:layout_centerHorizontal="true"
android:layout_marginTop="160dp"/>

<Button
android:id="@+id/button6"
android:layout_width="100dp"
android:layout_height="60dp"
android:text="Button6"
android:background="@color/yellow"
android:layout_marginTop="160dp"
android:layout_marginRight="15dp" />


<Button
android:id="@+id/button7"
android:layout_width="100dp"
android:layout_height="60dp"
android:text="Button7"
android:background="@color/yellow"
android:layout_marginLeft="15dp"
android:layout_marginTop="260dp" />


<Button
android:id="@+id/button8"
android:layout_width="100dp"
android:layout_height="60dp"
android:text="Button8"
android:background="@color/yellow"
android:layout_marginTop="260dp"
android:layout_centerHorizontal="true" />

<Button
android:id="@+id/button9"
android:layout_width="100dp"
android:layout_height="60dp"
android:text="Button9"
android:background="@color/yellow"
android:layout_marginTop="260dp"
android:layout_marginRight="15dp" />


<Button
android:id="@+id/button10"
android:layout_width="100dp"
android:layout_height="60dp"
android:text="Button10"
android:background="@color/yellow"
android:layout_marginLeft="15dp"
android:layout_marginTop="360dp" />


<Button
android:id="@+id/button11"
android:layout_width="100dp"
android:layout_height="60dp"
android:text="Button11"
android:background="@color/yellow"
android:layout_marginTop="360dp"
android:layout_centerHorizontal="true" />

<Button
android:id="@+id/button12"
android:layout_width="100dp"
android:layout_height="60dp"
android:background="@color/yellow"
android:text="Button12"
android:layout_marginTop="360dp"
android:layout_marginRight="15dp" />




</RelativeLayout>



Warum funktioniert der android:layout_marginRight="15dp" Code nicht??
Was hab ich falsch gemacht...

Mit freundlichen Grüßen
YKN
 
Hallo YKN

zu a) : nein - AS dient zur Entwicklung des Source-Codes und nicht um signierte Pakete zu bearbeiten.
Ausserdem sei darauf hingewiesen, dass das Entpacken, Bearbeiten oder Verändern von APKs illegal ist und wir
zu diesem Thema eher ungern Anfragen hier erhalten und normalerweise die Thread dann ohne Kommentar schliessen.

zu b)
Dein Ansatz ist falsch . So wie ich das sehe, hast du immer Reihen mit jeweils drei Buttons.
Dazu nimmst du dir ein LinearLayout vertical und für jeweils drei Buttons eine Linear horizontal oder Relative.
Möchtest du das Ganze scrollen , dann nochmals drumrum eine Scrollview
 
Zuletzt bearbeitet:

Ähnliche Themen

SaniMatthias
Antworten
19
Aufrufe
858
swa00
swa00
O
Antworten
15
Aufrufe
2.826
ORHUX
O
M
Antworten
4
Aufrufe
1.129
swa00
swa00
Zurück
Oben Unten