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
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