Frage

Ich möchte meine Fußzeile auf der obersten Ebene meiner App setzen. Es sollte keine Shakes und Bewegungen haben, während die Aktivitätsnavigation oder die Tastatur angezeigt wird. Es sollte sich immer am unteren Bildschirmrand niederlegen. wie geht das? Alle Ideen plz.

War es hilfreich?

Lösung

Dies könnte sein vielleicht sein generasacodicetagpre.

sollte sein generasacodicetagpre.

Sie versuchen, den gleichen Timer für jede Auftragsdefinition in der Web-App hinzuzufügen;)

Andere Tipps

Der Unterschied besteht darin, dass die Aktivität darin sieht, dass die OnPause zuerst die Ausführung der Ausführung vor dem "Zerstörung" der Ansicht abschließen sollte.

Dinge innen Innerung zu tun, sorgt dafür, dass die Elemente, die Sie zum Speichern benötigen, noch intakt sind, bevor Sie von ihnen loslassen - zum Beispiel müssen Sie den Text in Ihrem EDITEXT oder der EIN / AUS-Position von Radiobuttons usw. speichern.

DealLocation braucht jedoch keine dieser Dinge mehr, daher sollte es gut sein, wenn Sie es in Ihrem OnStop tun

Du kannst das. Ich habe es versucht und es funktioniert. Die Tastatur versteckt meine Fußzeile.

Hier füge ich meinen Code -Snippet ein.

 <RelativeLayout android:layout_width="fill_parent"
android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android">    
<LinearLayout android:layout_width="fill_parent"
    android:orientation="vertical" android:layout_below="@+id/top_layout"
    android:id="@+id/control_layout" android:layout_height="fill_parent"
    android:layout_centerVertical="true" android:layout_centerHorizontal="true"
    android:background="@drawable/bg" android:fadingEdge="horizontal|vertical"
    android:fitsSystemWindows="true">
    <EditText android:layout_width="wrap_content"
        android:textStyle="normal" android:typeface="serif"
        android:imeOptions="actionDone|flagNoEnterAction" android:textSize="14sp"
        android:text="Enter TExt here"
        android:isScrollContainer="true" android:scrollHorizontally="false"
        android:layout_height="fill_parent" android:layout_marginBottom="45dip"
        android:scrollbarStyle="insideInset" android:id="@+id/edit_text"
        android:background="@android:color/transparent" android:gravity="top"
        android:paddingBottom="1dip" android:paddingLeft="2dip"
        android:paddingRight="1dip" android:paddingTop="1dip" android:visibility="visible"></EditText>
</LinearLayout>
<LinearLayout android:layout_width="fill_parent"
    android:orientation="vertical" android:id="@+id/main_layout"
    android:gravity="bottom" android:isScrollContainer="true"
    android:layout_height="wrap_content" android:layout_alignParentBottom="true">
    <LinearLayout android:id="@+id/bottom_panel"
        android:layout_height="wrap_content" android:orientation="horizontal"
        android:layout_width="fill_parent" android:background="@drawable/bottom_panel_bg">
        <Button android:layout_width="wrap_content" android:text="Explore"
            android:background="@drawable/explore" android:layout_gravity="center_vertical"
            android:id="@+id/explore_text" android:textColor="#FFFFFF"
            android:gravity="bottom" android:paddingRight="1dip"
            android:layout_height="fill_parent" android:textColorHighlight="#FFFFA6"
            android:typeface="serif" android:layout_marginLeft="5dip"></Button>
        <Button android:layout_width="wrap_content" android:id="@+id/search_text"
            android:background="@drawable/btn_search" android:gravity="bottom"
            android:text="Search" android:textColor="#FFFFFF"
            android:layout_height="fill_parent" android:typeface="serif"
            android:layout_marginLeft="11dip"></Button>
        <Button android:layout_width="wrap_content" android:id="@+id/fav_text"
            android:text="Favorite" android:background="@drawable/favorites_text"
            android:gravity="bottom" android:textColor="#FFFFFF"
            android:layout_height="fill_parent" android:typeface="serif"
            android:layout_marginLeft="10dip"></Button>
        <Button android:layout_width="wrap_content" android:text="My Data"
            android:id="@+id/my_text" android:background="@drawable/my_texts"
            android:gravity="bottom" android:textColor="#FFFFFF"
            android:layout_height="fill_parent" android:typeface="serif"
            android:layout_marginLeft="11dip"></Button>
        <Button android:id="@+id/about_us" android:background="@drawable/about_us"
            android:gravity="bottom" android:textColor="#FFFFFF"
            android:layout_gravity="center_horizontal" android:text="About"
            android:layout_height="fill_parent" android:textColorHighlight="#FFFFA6"
            android:layout_width="wrap_content" android:typeface="serif"
            android:layout_marginLeft="11dip"></Button>
    </LinearLayout>
</LinearLayout>

Überprüfen Sie, ob es Ihnen hilft oder nicht

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top