Giter Club home page Giter Club logo

Comments (6)

MXC48-zz avatar MXC48-zz commented on May 18, 2024 7

Here are some examples to illustrate what I said.

Give my editing a mark out of ten 😂

from dicio-android.

Stypox avatar Stypox commented on May 18, 2024 2

From #122:

Assistant apps like Google Assistant, Alexa, and even some other apps like Google Translate can pop up over the current view with a half-extended window instead of a full screen app.

from dicio-android.

Stypox avatar Stypox commented on May 18, 2024

10/10 I'd say ;-)

This is a good idea, thanks for the suggestion

from dicio-android.

MakeMeCookie avatar MakeMeCookie commented on May 18, 2024

@Stypox
Has this function been completed?
Where can I check it?

from dicio-android.

Stypox avatar Stypox commented on May 18, 2024

It has not been completed, otherwise the issue would be closed

from dicio-android.

MakeMeCookie avatar MakeMeCookie commented on May 18, 2024

@Stypox

It has not been completed, otherwise the issue would be closed

I arbitrarily modified the file. However, this function was not possible. Can you tell me which file I should modify or if my code is wrong?

<AndroidManifest.xml>**

<activity android:name=".PopupActivity"
           android:theme="@style/Theme.AppCompat.Dialog"
           android:launchMode="singleInstance"
           android:excludeFromRecents="true"
           android:taskAffinity=""
           android:configChanges="orientation|screenSize"
           android:windowSoftInputMode="stateAlwaysHidden|adjustResize"
           android:exported="true">
           <intent-filter>
               <action android:name="android.intent.action.POPUP_ACTIVITY" />
               <category android:name="android.intent.category.DEFAULT" />
           </intent-filter>
       </activity>

<PopupActivity.class>

import android.app.Activity;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;
import android.widget.TextView;

public class PopupActivity extends Activity {
    @Override
    protected void onCreate(final Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                WindowManager.LayoutParams.FLAG_FULLSCREEN);

        setContentView(R.layout.dialog_stt_service);

        final TextView messageView = findViewById(R.id.userInput);
                messageView.setText("CMOS");
        finish();
    }
}

<MainActivity.class>

protected void onPause() {
        super.onPause();
        if (skillEvaluator != null) {
            skillEvaluator.cancelGettingInput();
            final Intent intent = new Intent(this, PopupActivity.class);
            startActivity(intent);
        }
    }

from dicio-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.