Kelin-Hong / MVVMLight

A toolkit help to build Android MVVM Application
1.85k stars 333 forks source link

为什么android:layout_marginTop=“-200dp” #8

Closed 4332weizi closed 7 years ago

4332weizi commented 7 years ago

activity_news_detail_content.xml

<WebView
                android:id="@+id/webview"  
                android:layout_width="match_parent"  
                android:layout_height="match_parent"  
                android:layout_marginTop="-200dp"  
                app:render="@{viewModel.html}"></WebView> 

为什么android:layout_marginTop=“-200dp”

Kelin-Hong commented 7 years ago

WebView 展示拉到的网页上面会有一块空白,所以对WebView做了移动,这个可以不用care,只是为了UI临时改动的。