Skip to content

Instantly share code, notes, and snippets.

@fiskurgit
Created July 25, 2014 09:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fiskurgit/17857fd42d630076a6ec to your computer and use it in GitHub Desktop.
Save fiskurgit/17857fd42d630076a6ec to your computer and use it in GitHub Desktop.
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/edit_background"
tools:context=".MainActivity" >
<TableLayout
android:id="@+id/url_table"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:background="@color/button_bar_background"
android:gravity="center_vertical"
android:padding="0dp"
android:stretchColumns="*"
android:visibility="gone" >
<EditText
android:id="@+id/url_edit"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:ems="10"
android:hint="@string/url_edit_hint"
android:imeActionLabel="Go"
android:inputType="textUri"
android:textColor="@color/near_white" />
<ProgressBar
android:id="@+id/progress"
style="?android:attr/progressBarStyleHorizontal"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:visibility="gone"
/>
</TableLayout>
<ScrollView
android:id="@+id/scrollview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_above="@+id/m_table_menu"
android:layout_below="@+id/url_table" >
<EditText
android:id="@+id/json_text"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:background="@null"
android:ems="10"
android:gravity="top"
android:textSize="16dp"
android:inputType="textMultiLine|textNoSuggestions"
android:scrollHorizontally="true"
android:textColor="@color/edit_text" >
<requestFocus />
</EditText>
</ScrollView>
<LinearLayout
android:id="@+id/syntax_keyboard"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:background="@color/button_bar_background"
android:padding="0dp"
android:orientation="vertical" >
<LinearLayout
style="?android:attr/buttonBarStyle"
android:layout_width="match_parent"
android:layout_marginBottom="1dp"
android:layout_height="match_parent"
android:orientation="horizontal" >
<Button
android:id="@+id/int_button"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/button_margin"
android:layout_weight="1"
android:background="@color/button_background"
android:textSize="12dp"
android:text="int"
android:textColor="@color/syntax_keyword" />
<Button
android:id="@+id/string_button"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/button_margin"
android:layout_weight="1"
android:background="@color/button_background"
android:textSize="12dp"
android:text="String"
android:textColor="@color/syntax_keyword" />
<Button
android:id="@+id/boolean_button"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/button_margin"
android:layout_weight="1"
android:background="@color/button_background"
android:textSize="12dp"
android:text="bool"
android:textColor="@color/syntax_keyword" />
<Button
android:id="@+id/for_button"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/button_margin"
android:layout_weight="1"
android:background="@color/button_background"
android:textSize="12dp"
android:text="for"
android:textColor="@color/syntax_keyword" />
<Button
android:id="@+id/while_button"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/button_margin"
android:layout_weight="1"
android:background="@color/button_background"
android:textSize="12dp"
android:text="while"
android:textColor="@color/syntax_keyword" />
<Button
android:id="@+id/comment_button"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/button_margin"
android:layout_weight="1"
android:background="@color/button_background"
android:textSize="12dp"
android:text="//"
android:textColor="@color/syntax_keyword"/>
<Button
android:id="@+id/println_button"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/button_margin"
android:layout_weight="1"
android:background="@color/button_background"
android:textSize="12dp"
android:text="print"
android:textColor="@color/syntax_keyword"/>
</LinearLayout>
<LinearLayout
style="?android:attr/buttonBarStyle"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >
<Button
android:id="@+id/left_object_button"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/button_margin"
android:layout_weight="1"
android:background="@color/button_background"
android:text="@string/left_curly"
android:textColor="@color/syntax_object" />
<Button
android:id="@+id/right_object_button"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/button_margin"
android:layout_weight="1"
android:background="@color/button_background"
android:text="@string/right_curly"
android:textColor="@color/syntax_object" />
<Button
android:id="@+id/colon_button"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/button_margin"
android:layout_weight="1"
android:background="@color/button_background"
android:text="@string/semicolon"
android:textColor="@color/syntax_colon" />
<Button
android:id="@+id/inverted_comma_button"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/button_margin"
android:layout_weight="1"
android:background="@color/button_background"
android:text="@string/inverted_comma"
android:textColor="@color/syntax_inverted_comma" />
<Button
android:id="@+id/comma_button"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/button_margin"
android:layout_weight="1"
android:background="@color/button_background"
android:text="@string/comma"
android:textColor="@color/syntax_comma" />
<Button
android:id="@+id/left_array_button"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/button_margin"
android:layout_weight="1"
android:background="@color/button_background"
android:text="@string/left_bracket"
android:textColor="@color/syntax_array" />
<Button
android:id="@+id/right_array_button"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/button_margin"
android:layout_weight="1"
android:background="@color/button_background"
android:text="@string/right_bracket"
android:textColor="@color/syntax_array" />
</LinearLayout>
</LinearLayout>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment