Android ImageView Circle Placement in RelativeLayout [geschlossen]
-
20-12-2019 - |
Frage
Anleitung zur obigen Sequenz in RelativeLayout
Lösung
Mit dieser Bibliothek können Sie ein kreisförmiges Layout erstellen: https://github.com/dmitry-zaitsev/CircleLayout
Einfacher Code (Verwendung der Bibliothek):
<ru.biovamp.widget.CircleLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@android:color/white"
app:angleOffset="90.0"
app:layoutMode="pie"
app:divider="#112233"
app:innerRadius="40dp"
app:innerCircle="#119922"
app:dividerWidth="10dp"
>
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="one"
android:id="@+id/w"
/>
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="two"
android:id="@+id/w1"
/>
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="three"
android:id="@+id/w2"
/>
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="four"
android:id="@+id/w3"
/>
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="five"
android:id="@+id/w4"
/>
</ru.biovamp.widget.CircleLayout>
Hinweis:Sie können jeden beliebigen Ansichtstyp (Textansichten, Schaltflächen, Bildansichten usw.) verwenden.
Ich habe Samsung verwendet Tuto aber Link tot, Hier ein weiteres von Samsung inspiriertes Tuto.
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow