有没有办法捕获 运行 Android 应用程序中显示的信息?
Is there a way to capture info displayed in a running Android app?
我正在玩游戏,我想知道我对手的全名。问题是他的名字太长了,只显示了一个缩短的版本:"username_6475..." 调整我的设备的显示没有任何作用。有没有办法打印应用程序中显示的所有信息...可能类似于浏览器中的 "view-source"?
是的,您可以通过在 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);
我正在玩游戏,我想知道我对手的全名。问题是他的名字太长了,只显示了一个缩短的版本:"username_6475..." 调整我的设备的显示没有任何作用。有没有办法打印应用程序中显示的所有信息...可能类似于浏览器中的 "view-source"?
是的,您可以通过在 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);