Skip to content

Instantly share code, notes, and snippets.

@julianshen
Last active December 19, 2015 00:29
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 julianshen/5869223 to your computer and use it in GitHub Desktop.
Save julianshen/5869223 to your computer and use it in GitHub Desktop.
Attributes of SimpleCellLayout
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:celllayout="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=".MainActivity">
<com.jlnshen.widget.celllayout.SimpleCellLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
celllayout:col="5"
celllayout:row="6"
celllayout:gapsize="3dp"
android:id="@+id/celllayout">
<TextView
android:text="@string/app_name"
android:layout_width="match_parent"
android:layout_height="match_parent"
celllayout:cellX="2"
celllayout:cellY="4"
celllayout:colspan="2"
android:id="@+id/test1"
/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/imageView"
celllayout:cellX="0"
celllayout:cellY="4"
celllayout:colspan="2"
celllayout:rowspan="2"/>
</com.jlnshen.widget.celllayout.SimpleCellLayout>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment