Skip to content

Instantly share code, notes, and snippets.

@nein37
Created August 21, 2014 12:39
Show Gist options
  • Save nein37/4599ad5e3a52950da92f to your computer and use it in GitHub Desktop.
Save nein37/4599ad5e3a52950da92f to your computer and use it in GitHub Desktop.
xmlns:toolsでAndroid Studioのレイアウトエディタを活用する ref: http://qiita.com/nein37/items/51935c5a691aa8a0d014
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:context=".MyActivity"
<string name="show_all_apps" tools:ignore="MissingTranslation">All</string>
<GridLayout tools:targetApi="ICE_CREAM_SANDWICH" >
<resources xmlns:tools="http://schemas.android.com/tools" tools:locale="es">
<android.support.v7.widget.GridLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:context=".MainActivity"
<fragment android:name="com.example.master.ItemListFragment" tools:layout="@android:layout/list_content" />
<ListView
android:id="@android:id/list"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:listitem="@android:layout/simple_list_item_2" />
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:text="@string/hello_world"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:showIn="@layout/activity_main" />
<?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:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:menu="menu1,menu2" />
<?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:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:actionBarNavMode="tabs" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment