anvil-ui / anvil-ui/anvil

LayoutParams from support libraries and custom views

オープン
#69 コメント 3 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
Java
スター
1.4k
フォーク
89
PR マージ指標
30日以内にマージされた PR はありません

説明

Layout params are not handled by generated DSL now. They are handled by hand-written BaseDSL in anvil base library. There are custom views that use their own layout params that BaseDSL knows nothing about. So far there is no way to set such layout params except for calling `layoutParams` method directly.

Here's a list of all ViewGroup.LayoutParams implementations:
- [x] AbsListView.LayoutParams - same as normal LayoutParams
- [ ] ~~AbsoluteLayout.LayoutParams - adds `x` and `y` to LayoutParams, but AbsoluteLayout is deprecated~~
- [ ] ~~ActionBar.LayoutParams - adds `gravity` to MarginLayoutParams, not via XML~~
- [ ] ~~ActionMenuView.LayoutParams - adds `cellsUsed`, `expandable`, `extraPixels`, `isOverflowButton`, `preventEdgeOffset` to MarginLayoutParams, not via XML~~
- [ ] AppBarLayout.LayoutParams - same as LinearLayout.LayoutParams
- [ ] ~~BaseCardView.LayoutParams - adds `viewType` to FrameLayout.LayoutParams, not via XML~~
- [ ] ~~CollapsingToolbarLayout.LayoutParams - adds CollapseMode and parallax multiplier to FrameLayout.LayoutParams, not via XML~~
- [x] CoordinatorLayout.LayoutParams - adds `anchorGravity`, `gravity` and `keyline` to MarginLayoutParams
- [x] DrawerLayout.LayoutParams - adds `gravity` to MarginLayoutParams
- [x] FrameLayout.LayoutParams - adds `gravity` to MarginLayoutParams
- [x] Gallery.LayoutParams - same as normal LayoutParams
- [x] GridLayout.LayoutParams - adds row and column spec to MarginLayoutParams
- [x] GridLayoutManager.LayoutParams - same as MarginLayoutParams
- [x] LinearLayout.LayoutParams - adds `weight` and `gravity` to MarginLayoutParams
- [ ] ~~LinearLayoutCompat.LayoutParams - also adds `weight` and `gravity` to MarginLayoutParams, rarely used and not via XML~~
- [x] PercentFrameLayout.LayoutParams - same as FrameLayout.LayoutParams
- [x] PercentRelativeLayout.LayoutParams - same as RelativeLayout.LayoutParams
- [x] RadioGroup.LayoutParams - same as LinearLayout.LayoutParams
- [x] RecyclerView.LayoutParams - same as MarginLayoutParams
- [x] RelativeLayout.LayoutParams - adds rules to MarginLayoutParams
- [x] SlidingPaneLayout.LayoutParams - adds `weight` to MarginLayoutParams
- [x] StaggeredGridLayoutManager.LayoutParams - same as MarginLayoutParams
- [x] TableLayout.LayoutParams - same as LinearLayout.LayoutParams
- [ ] TableRow.LayoutParams - adds column and span to LinearLayout.LayoutParams
- [ ] ~~Toolbar.LayoutParams - same as ActionBar.LayoutParams, not via XML~~
- [x] ViewGroup.LayoutParams (**base**) has `width` and `height`
- [x] ViewGroup.MarginLayoutParams - adds margin to base LayoutParams
- [ ] ~~ViewPager.LayoutParams - adds gravity and `isDecor` to base LayoutParams, not via XML~~
- [ ] ~~WindowManager.LayoutParams - adds lots of fields, but none of them exporeted via XML~~

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。