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:
parent
34c80314ed
commit
74ecab507b
12
res/layout/activity_clipboard_floating.xml
Normal file
12
res/layout/activity_clipboard_floating.xml
Normal 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>
|
@ -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 |
|
||||
|
Loading…
x
Reference in New Issue
Block a user