android-layout

    1熱度

    1回答

    我正在使用WebView和使用WebView android打開網站。該網站的菜單欄在移動瀏覽器中工作正常,但是當我在WebView android中打開URL /網站時,菜單欄不起作用。 當打開Android中的WebView(菜單欄不響應) 當手機瀏覽器 下面打開的是代碼我正在用WebView打開URL: WebView mWebView = (WebView) findViewById(R.

    0熱度

    2回答

    我想在滾動視圖分頁器時摺疊我的標題視圖。 在下面的圖像relativelayout3是我試圖尋找我要崩潰的佈局.. 喜歡的東西在應用頁面Play商店中的預覽圖像崩潰.. 和relativelayout3以下行,但它沒有工作 app:layout_scrollFlags="scroll|enterAlways" 這我完整的XML, <?xml version="1.0" encoding="ut

    0熱度

    1回答

    創建一個自定義按鈕,它擴展了AppCompatButton。以下是使用的構造函數: public CustomButton(Context context) { this(context, null); } public CustomButton(Context context, AttributeSet attrs) { this(context, attrs, R

    -1熱度

    1回答

    當我調用EDITTEXT時,應用崩潰。 佈局 <EditText android:id="@+id/T_Price" android:layout_width="200dp" android:layout_height="wrap_content" android:layout_below="@+id/B_LessMoney" android:la

    0熱度

    1回答

    我有一個GridView,它顯示的項目不正確。 我正在嘗試加載帶有Retrofit的圖像,並通過GridView在2列中顯示它們。 當電話顯示屏顯示4張圖像時,如果總圖像數爲8,則通過向下滾動重複前4張圖像。沒有顯示所有8個圖像正確。 LinerLayout: <LinearLayout android:id="@+id/panelBody" android:layout_wi

    -1熱度

    3回答

    我有這樣的看法: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizon

    -2熱度

    2回答

    如果您在WhatsApp中單擊圖片信息,它將展開並佔據整個屏幕。我一直無法弄清楚如何做到這一點,並且迄今爲止一直依靠打開佔據全屏顯示圖像的對話框。這只不過是光滑的,但隨着在WhatsApp中擴大佔用全屏幕的圖像。 這是我迄今爲止的AlertDialog代碼。 MainActivity.java import android.app.Activity; import android.os.Bund

    0熱度

    1回答

    這個XML頁面有一些內容,但這些內容是更多的內容是在屏幕之外。現在我想向用戶顯示該內容,我不知道如何添加滾動條。我試圖添加<ScrollView>但它給我一個錯誤,我不知道爲什麼它給我的錯誤 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/

    1熱度

    1回答

    我想用自定義樣式自定義我的微調器。 微調 <Spinner android:id="@+id/my_spinner" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/acti

    1熱度

    1回答

    我正在Android Studio 3.0中編寫一個國際象棋應用程序,當用戶點擊棋盤佈局上的按鈕btnPopUpWindow時,我想要一個PopupWindow出現。這裏」棋盤佈局XML: activity_chessboard.xml: <?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLa