Meine Fragen:Ausrichten von Symbolen und Anzeigetexten als Laufschrift in verschachtelten linearen und relativen Layouts?
Wie ich das Layout unter
wie gezeigt
ausrichten Wie ich Text in einem Textview mit Animation ähnlich der Marquee-Text (anstelle von Welcome Back empfangen kann, John Doe), die von rechts scrollt
Ziel nach links
aber ich bin nicht in der Lage die Symbole hier auszurichten, und das ist, was ich bin immer: Screenshot_2
Konzept:
Dies sind Symbole und zeigt die Nummern im roten Kreis an, wenn eine Benachrichtigung oder eine Nachricht empfangen wird.
Auf der rechten Seite möchte ich Text anzeigen, der den Text als Nachricht oder Text in Form von Benachrichtigungen erhalten. Betrachten Sie es dynamisch, die sich häufig ändert.
Ich bin auf diesem Teil stecken geblieben und kann es nicht lösen. Ich werde dankbar sein, wenn mir jemand dabei helfen kann !! Dank
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_landing_page"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="16dp"
android:paddingRight="16dp"
tools:context="com.thebitshoes.uocn.AdminHome"
android:orientation="vertical"
android:weightSum="2" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="0.66"
android:orientation="vertical"
android:weightSum="1">
<ImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@mipmap/admin_bg_pic"
android:layout_gravity="center_horizontal"
android:layout_weight="1.22" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="1"
android:background="#737D8C">
<RelativeLayout
android:layout_width="0dp"
android:layout_height="40dp"
android:background="#3c424c"
android:layout_weight="0.31">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/message_icon_new"
android:id="@+id/message_icon"
android:layout_centerVertical="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_marginLeft="18dp"
android:layout_marginStart="18dp" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/notification_icon"
android:id="@+id/notification_icon"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Welcome Back, John Doe !"
android:textColor="#ffffff"
android:textSize="18sp"
/>
</RelativeLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1.34"
>
</LinearLayout>
</LinearLayout>
nicht sicher, warum es downvoted hätte :( – ThePercept