Page 331 - MDP2022-2
P. 331

</LinearLayout>




                            <LinearLayout
                                    android:layout_width="match_parent"
                                    android:layout_height="wrap_content"
                                    android:background="#FFB1BC"
                                    android:layout_marginLeft="10sp"
                                    android:layout_marginRight="10sp"
                                    android:layout_marginTop="10sp"
                                    android:orientation="horizontal">


                                    <ImageView
                                            android:id="@+id/imageView3"
                                            android:layout_width="80sp"
                                            android:layout_height="60sp"
                                            app:srcCompat="@drawable/shopping"  />


                                    <Button
                                            android:id="@+id/mv_shop"
                                            android:layout_width="300sp"
                                            android:layout_height="60sp"
                                            android:layout_gravity="center"
                                            android:background="#00ff0000"
                                            android:text="쇼핑몰로  이동하기"
                                            android:textColor="#000000"
                                            android:textSize="20sp"
                                            android:textStyle="bold"  />
                            </LinearLayout>
                    </LinearLayout>
            </androidx.constraintlayout.widget.ConstraintLayout>


            [  링크  연결  관련  ]
            package  com.example.mdp;


            import  android.content.Intent;
            import  android.net.Uri;
            import  android.os.Bundle;
            import  android.view.View;
            import  android.webkit.WebSettings;
            import  android.webkit.WebView;
            import  android.webkit.WebViewClient;
            import  android.widget.Button;


            import  androidx.annotation.Nullable;
   326   327   328   329   330   331   332   333   334   335   336