我的RecyclerView和item有match_parent宽度,但结果是:
<view
class="android.support.v7.widget.RecyclerView"
android:layout_width="match_parent"
Run Code Online (Sandbox Code Playgroud)
和项目:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:fab="http://schemas.android.com/apk/res-auto"
android:id="@+id/ll_itm"
android:orientation="horizontal"
android:layout_width="match_parent"
Run Code Online (Sandbox Code Playgroud)
充分:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:fab="http://schemas.android.com/apk/res-auto"
android:id="@+id/ll_itm"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:weightSum="100"
android:gravity="right"
>
<Button
android:layout_width="0dp"
android:layout_weight="15"
android:layout_height="fill_parent"
android:text="???????"
android:id="@+id/button" />
<LinearLayout
android:layout_width="0dp"
android:layout_height="fill_parent"
android:layout_weight="20"
android:gravity="center"
>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<com.getbase.floatingactionbutton.FloatingActionButton
android:layout_width="fill_parent"
android:layout_height="fill_parent"
fab:fab_plusIconColor="#ff56ff83"
fab:fab_colorNormal="@color/d_red"
fab:fab_colorPressed="#ff5c86ff"
fab:fab_size="mini"
fab:fab_icon="@drawable/ic_remove_white"
android:id="@+id/fab_rmv" />
<esfandune.ir.elmikarbordiardakan.other.CustomTxtView
android:layout_weight="25"
android:layout_width="0dp"
android:layout_height="fill_parent"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="0"
android:gravity="right|center_vertical"
android:id="@+id/txt_takhir_itm" />
<com.getbase.floatingactionbutton.FloatingActionButton
android:layout_width="fill_parent"
android:layout_height="fill_parent"
fab:fab_plusIconColor="@color/colorprimarylight"
fab:fab_colorNormal="@color/colorprimarydark"
fab:fab_colorPressed="@color/colorprimary"
fab:fab_size="mini"
fab:fab_icon="@drawable/ic_add_white"
android:id="@+id/fab_add" />
</LinearLayout>
</LinearLayout>
<Spinner
android:layout_width="0dp"
android:layout_height="fill_parent"
android:layout_weight="10" …
Run Code Online (Sandbox Code Playgroud) 我想要当用户在hdevice中运行或关闭我的应用程序时,不要在最近的应用程序中显示我的应用程序
我的目的是:用户禁用运行我的应用程序
我很抱歉发言不好.
我想在 TextView 中找到带有 Nunation 的阿拉伯单词并突出显示它,\n例如,如果我的单词是“\xd8\xa7\xd8\xb4\xd9\x87\xd8\xaf”,而没有 Nunation,我想在“中找到单词位置” \xd9\x88\xd9\x8e \xd8\xa7\xd9\x8e\xd8\xb4\xd9\x92\xd9\x87\xd9\x8e\xd8\xaf\xd9\x8f \xd8\xa7\xd9\x8e\xd9 \x86\xd9\x92 \xd9\x84\xd8\xa7 \xd8\xa7\xd9\x90\xd9\x84\xd9\x87\xd9\x8e \xd8\xa7\xd9\x90\xd9\x84\xd8\xa7 \xd9\x91\xd9\x8e \xd8\xa7\xd9\x84\xd9\x84\xd9\x91\xd9\x8e\xd9\x87\xd9\x8f" 与 Nunation 。
\n我想分享我的组件的图像,但无法访问它的视图来分享。我如何访问我的组件的视图或共享它的图像。我的组件是一张卡片
@Composable
fun CardItem(modifier: Modifier=Modifier,card: Card, onClick:()->Unit) {
Box(
modifier
.background(
if (card.card_number == AllCardsActivity.NOCARD) MaterialTheme.colorScheme.secondary
else MaterialTheme.colorScheme.primary,
RoundedCornerShape(20.dp)
)
.width(CardWidth)
) {
Column(Modifier.padding(25.dp)) {....
Run Code Online (Sandbox Code Playgroud) 当我想在genymotion中调试我的应用程序时,android studio给我这个错误:
但应用程序不安装,并在确定后:
Failure details: Bundle[{android.content.pm.extra.STATUS=1,
android.content.pm.extra.PACKAGE_NAME=ir.esfandune.mohsen,
android.content.pm.extra.LEGACY_STATUS=-1,
android.content.pm.extra.STATUS_MESSAGE=DELETE_FAILED_INTERNAL_ERROR}]
Run Code Online (Sandbox Code Playgroud)