Is there a view for the button bar? (Link to the image describing the performance)

I am looking for a view or some information regarding the bottom panel in the default Android applications, such as email or unlock pattern, as shown in the image below. I could not find anything about this on the Androids website or in a Google search.

Image: http://img11.imageshack.us/i/viewdn.jpg/

+3
source share
3 answers

I believe Christopher is right; There is no special widget to create a panel in your image. However, if you want to emulate it, you can create a layout and use a style style="@android:style/ButtonBar". This will give you a light gray background and the correct margins.

+7

, , ; Button, LinearLayout RelativeLayout.

, Android Open Source Project, Button .

, Google Android , , XML-.

+2

: http://code.google.com/p/k9mail/source/browse/k9mail/trunk/res/layout/account_setup_basics.xml?r=1314

<RelativeLayout
        android:layout_marginTop="-45dip" 
        android:padding="0dip"
        android:layout_alignParentBottom="true"
        android:gravity="bottom|right" 
        android:background="@android:drawable/bottom_bar"
        android:layout_height="fill_parent"
        android:layout_width="fill_parent">
        <Button
            android:id="@+id/manual_setup"
            android:text="@string/account_setup_basics_manual_setup_action"
            android:minWidth="@dimen/button_minWidth"
            android:layout_height="wrap_content"
            android:layout_width="wrap_content"
            android:layout_marginBottom="-4dip" 
            android:layout_alignParentLeft="true"
            android:layout_centerVertical="false" 
            />
        <Button
            android:id="@+id/next"
            android:text="@string/next_action"
            android:minWidth="@dimen/button_minWidth"
            android:layout_height="wrap_content"
            android:layout_width="wrap_content"
            android:drawableRight="@drawable/button_indicator_next"
            android:layout_marginBottom="-4dip" 
            android:layout_alignParentRight="true"
            android:layout_centerVertical="false" 
            />
    </RelativeLayout>
0
source

Source: https://habr.com/ru/post/1727054/


All Articles