Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as XML by chirhoon ( 8 years ago )
<menu android:layout_height="wrap_content" android:layout_width="match_parent" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:android="http://schemas.android.com/apk/res/android">

    <item android:id="@+id/action_item1" android:icon="@drawable/food1" android:title="@string/item_1">
    <item android:id="@+id/action_item2" android:icon="@drawable/food2" android:title="@string/item_2">
    <item android:id="@+id/action_item3" android:icon="@drawable/food3" android:title="@string/item_3">
</menu>
























<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/activity_main" android:layout_width="wrap_content" android:layout_height="wrap_content" tools:context="com.example.user.choco2.MainActivity">


    <LinearLayout android:id="@+id/top_layout" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/gray" android:gravity="center" android:orientation="vertical">

<!--
        <TextView android:id="@+id/label" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center" android:text="@string/draggable_text" android:textColor="@android:color/black" android:textSize="20sp">
-->


        <ImageView android:id="@+id/image_view" android:layout_width="200dp" android:layout_height="200dp" android:src="@drawable/refrigerator">


        <!--
        <Button
            android:id="@+id/button"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/draggable_button" />
        -->

    </LinearLayout>


    <!--주석 그대로 두는 부분-->
    <!--
        <LinearLayout android:id="@+id/yellowLayout" android:layout_width="fill_parent" android:layout_height="match_parent" android:layout_weight="1" android:gravity="center" android:background="@color/black" android:orientation="horizontal">

            <LinearLayout android:id="@+id/left_layout" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" android:background="@color/colorPrimary" android:gravity="center" android:orientation="vertical">

            <LinearLayout android:id="@+id/right_layout" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" android:background="@color/colorAccent" android:gravity="center" android:orientation="vertical">

        </LinearLayout>
-->

    <FrameLayout android:id="@+id/frame_layout" android:layout_width="wrap_content" android:layout_height="wrap_content">

    <android android:id="@+id/navigation" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:background="@color/colorPrimary" app:menu="@menu/bottom_navigation_items">

</RelativeLayout>








<!--
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="com.example.user.choco.MainActivity">

<android android:id="@+id/recylcerView" android:layout_width="match_parent" android:layout_height="match_parent" tools:layout_editor_absoluteX="745dp" tools:layout_editor_absoluteY="-51dp">

</RelativeLayout>
-->

 

Revise this Paste

Your Name: Code Language: