2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-29 13:17:43 +00:00

Adding a layout file for ClipboardFloatinActivity. It contains an invisible button.

This commit is contained in:
Anjani Kumar 2020-04-18 03:41:46 +05:30
parent 34c80314ed
commit 74ecab507b
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<Button
android:id="@+id/floating_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:alpha="0"
android:text="@string/pref_plugin_clipboard" />
</LinearLayout>

View File

@ -76,6 +76,7 @@ public class ClipboardFloatingActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_clipboard_floating);
WindowManager.LayoutParams wlp = getWindow().getAttributes();
wlp.dimAmount = 0;
wlp.flags = WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS |