我不确定之前是否曾经问过这样的问题(我做过谷歌,但找不到解决问题的正确方法).
我希望我可以从我的项目中使用的库中禁用(排除)日志标记.
我尝试进入Logcat控制台>编辑过滤器配置>日志标记(正则表达式),但在这里我每次创建时都要添加新的日志标记.(这种方式不会在我的logcat中显示任何异常)
与本主题相同如何在Android Studio中过滤logcat? 我选择了 选择正在运行的进程 @dmsherazi建议但我仍然可以从库中看到很多日志标记.
那么,有没有办法在android studio中排除特定的日志标记(我正在使用v1.2 beta3)?
我想让 TextView 与窗口屏幕的左右边缘对齐。预期结果将如下所示

但实际结果是这样的

这是我的 XML...
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/cameraContainer"
android:layout_width="match_parent"
android:layout_height="match_parent">
<FrameLayout
android:id="@+id/cameraPreview"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<TextView
android:id="@+id/text1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:background="@color/grey_700"
android:text="TEST TEXT TEST TEXT"
android:textColor="@color/white"
android:textSize="35sp" />
<TextView
android:id="@+id/text2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:background="@color/grey_700"
android:text="TEST TEXT TEST TEXT"
android:textColor="@color/white"
android:textSize="35sp"
/>
<TextView
android:id="@+id/text3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@color/grey_700"
android:rotation="270"
android:text="TEST TEXT TEST TEXT"
android:textColor="@color/white"
android:textSize="35sp"
android:layout_alignBottom="@+id/text4"
android:layout_alignParentStart="true"
/>
<TextView
android:id="@+id/text4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@color/grey_700"
android:rotation="90"
android:text="TEST TEXT TEST TEXT"
android:textColor="@color/white"
android:textSize="35sp"
android:layout_centerVertical="true"
android:layout_alignParentEnd="true"
/>
</RelativeLayout> …Run Code Online (Sandbox Code Playgroud)