【问题标题】:Is there a way to capture info displayed in a running Android app?有没有办法捕获正在运行的 Android 应用程序中显示的信息?
【发布时间】:2019-04-06 03:57:54
【问题描述】:

我在玩游戏,我想知道我对手的全名。问题是他的名字太长了,它只显示一个缩短的版本:“username_6475...” 调整我的设备的显示没有任何作用。有没有办法打印应用程序中显示的所有信息......可能类似于浏览器中的“查看源代码”?

【问题讨论】:

  • 我投票结束这个问题,因为它似乎与编程无关。

标签: android layout textview


【解决方案1】:

是的,您可以通过在 TextView 中使用 Marquee 来实现。

Xml:

<TextView
        android:id="@+id/marque_scrolling_text"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="16dp"
        android:ellipsize="marquee"
        android:marqueeRepeatLimit="marquee_forever"
        android:padding="16dp"
        android:scrollHorizontally="true"
        android:singleLine="true"
        android:text="Create a Marquee (Scrolling Text) in Android Using TextView. Android Marquee (Scrolling Text) Tutorial with Example"
        android:textSize="24sp" />

Java:

TextView marque = (TextView) this.findViewById(R.id.marque_scrolling_text);
marque.setSelected(true);

【讨论】:

  • 是的,这将达到我要求的结果......我现在意识到我的问题有点含糊。我正在寻找可以显示此信息的第 3 方应用程序...可能类似于 logcat,但它会转储应用程序以文本格式显示的任何内容
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-05-17
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多