This commit is contained in:
limqhz
2020-07-28 22:56:15 +08:00
parent e20862daf1
commit cfce0624ca
4 changed files with 8 additions and 5 deletions

View File

@@ -10,6 +10,7 @@ import android.util.Log;
import android.view.View; import android.view.View;
import android.view.WindowManager; import android.view.WindowManager;
import android.webkit.WebView; import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.LinearLayout; import android.widget.LinearLayout;
import android.widget.TextView; import android.widget.TextView;
import com.bumptech.glide.Glide; import com.bumptech.glide.Glide;
@@ -77,6 +78,7 @@ public class MainActivity extends SDBaseActivity {
configView(); configView();
// 应该是原来的保持屏幕常亮的代码 // 应该是原来的保持屏幕常亮的代码
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
order_view.setWebViewClient(new WebViewClient());
order_view.loadUrl("https://www.baidu.com"); order_view.loadUrl("https://www.baidu.com");
//启动Service //启动Service
Intent socketService = new Intent(this, ClientService.class); Intent socketService = new Intent(this, ClientService.class);

View File

@@ -28,7 +28,8 @@
android:id="@+id/order_view" android:id="@+id/order_view"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_centerInParent="true" /> android:layout_centerVertical="true" android:layout_alignParentStart="true"
android:layout_marginStart="0dp"/>
</RelativeLayout> </RelativeLayout>

View File

@@ -58,7 +58,7 @@
android:id="@+id/venue_cell" android:id="@+id/venue_cell"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="52" android:text="这里弄个下拉框"
android:textSize="20dp" android:textSize="20dp"
android:textStyle="bold" android:textStyle="bold"
android:layout_weight="1"/> android:layout_weight="1"/>

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB