StateLayout icon indicating copy to clipboard operation
StateLayout copied to clipboard

Add support for setting viewids in xml

Open migelfn opened this issue 9 years ago • 0 comments

I think it would be nice have an ability to set view ids in xml

<com.objectlife.statelayout.StateLayout 
  android:id="@+id/sl_layout_state"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  app:content="@+id/v_content"
  app:error="@+id/v_error"
  app:empty="@+id/v_empty"
  app:loading="@+id/v_loading" 
  app:initialViewState="loading"
>

Also having default ids would be helpful too

Thanks!

migelfn avatar Sep 25 '16 16:09 migelfn