Skip to content

Instantly share code, notes, and snippets.

View BrnPer's full-sized avatar
👨‍🚀
Probably trying new stuff!

Bruno Pereira BrnPer

👨‍🚀
Probably trying new stuff!
View GitHub Profile
@BrnPer
BrnPer / gist:43d6b347bd29339a1d8549fe8cd5e2c5
Created March 12, 2024 12:05
Android EditText with bottom border without left padding
<?xml version="1.0" encoding="utf-8" ?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:top="-2dp" android:right="0dp" android:left="-2dp" android:bottom="1dp" android:gravity="bottom">
<shape android:shape="line">
<size android:height="2dp"/>
<stroke android:width="1dp" android:color="#A020F0" />
</shape>
</item>
</layer-list>
@BrnPer
BrnPer / AnyDeskScreenShare
Last active April 20, 2022 09:49
AnyDesk don't ask for start screen share always (Android)
Screenrecording Dialog (Android 10+)
Starting with Android 10 and newer, Android forces to accept a Dialog for Screen recording. A workaround to bypass the request is the following adb shell command:
regular version:
adb shell appops set com.anydesk.anydeskandroid PROJECT_MEDIA allow
custom client: