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