Tag: xml-layout
Android nutzt xml-Dateien, um das layout seiner Komponenten auf ein Fenster.
5
Antworten
Habe ich ein fragment namens HostFragment die Nester ein, um vier weitere Fragmente. Dies ist das layout der HostFragment: <?xml version="1.0" encoding="utf-8"?> <TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/hostFragmentLayout" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginTop="12dp"> <TableRow android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1"> <RelativeLayout android:id="@+id/fragmentContainer1" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_weight="1"/>
5
Antworten
Ich arbeite an ein paar ListView ich möchte eine Anzeige Button unter ihm ich bin mit dem folgenden code, der aber nicht funktioniert. <?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" > <ListView android:id="@android:id/list" android:layout_width="fill_parent" android:layout_height="wrap_content" android:cacheColorHint="#00000000" android:drawSelectorOnTop="false"
3
Antworten
Habe ich eine Aktivität entwickelt, um Kunden Informationen. Ersten Zeile wird der name, 2. Zeile Straße, die Dritte Zeile ist die Stadt, Staat und zip. Ich kann erreichen, was will ich mit einem RelativeLayout und durch die
3
Antworten
In den /res/values-Ordner von meinem android-Projekt, an dem ich ein string und wird in eine text-Ansicht in meiner xml-Datei, die ich ändern möchte die Strings in meinem java-Datei. Als Sie können siehe unten im code habe ich
3
Antworten
Ich denke, das sollte ein ziemlich einfach zu beantworten, wenn Sie verstehen, XML-Layouts besser als ich, dass ist. Ich scheine nicht zu bekommen, was ich dachte, ich sollte bei der Verwendung der match_parent layout_height. Ich habe eine
4
Antworten
In Meinem android xml layout beantrage ich die Grenze mit der borderframe.xml als ein hintergrund. borderframe.xml Datei sieht wie folgt aus: <?xml version="1.0" encoding="UTF-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <stroke android:width="1dip" android:color="#ffffff"/> <solid android:color="#95865F"/> <corners android:radius="10px"/> <padding android:left="1dp" android:right="1dp" android:top="1dp"
7
Antworten
Habe ich eine sehr einfache Form, die ich will, zum festlegen der Breite: <shape android:shape="rectangle"> <solid android:color="@color/orange"/> <size android:width="2dp"/> </shape> Allerdings, wenn ich diese zuordnen, als hintergrund eines EditText es zeigt nur eine orange hintergrund, anstatt ein
11
Antworten
Meine aktuelle einfachen XML ist unten, jedoch möchte ich die 3 TextViews zu werden kreisförmig statt rechteckig. Wie kann ich das ändern mein code damit zu tun? <?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:orientation="vertical" > <TextView
3
Antworten
habe ich ein problem. Ich entwickle android-Anwendung. Ich zweites layout zum ersten layout so: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" > <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="300dp" android:layout_height="match_parent" android:layout_gravity="clip_horizontal" android:layout_alignParentLeft="true" android:id="@+id/rlMenu" > <Button android:id="@+id/bMusteriler" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Musteriler" android:textSize="45dp" android:layout_alignParentLeft="true"