Code Monkey home page Code Monkey logo

narradir-android's Introduction

Hi, I'm Li-Wei! I'm a software engineer with a keen interest in Android development. I strive to become a more creative problem solver, be it in UI design or in the development of the business logic of an application.

I especially love to work with:

I also have professional experience with:

I am also comfortable in:

I have basic knowledge of:

Let's connect! 😄

narradir-android's People

Contributors

liweiyap avatar

Stargazers

 avatar

Watchers

 avatar  avatar

narradir-android's Issues

Sometimes there is a double click sound when clicking just once on a character ImageButton.

Phone model: Samsung Galaxy A3 (2016)
Phone API: 24 (Nougat)

Emulator model: Pixel XL
Emulator API: 30 (R)

Case 1:

  • 5-player mode
  • Uncheck Merlin, so the current characters are: Loyal0, Loyal1, Loyal2, Minion0, and Minion1.
  • Check Mordred, so the current characters are: Merlin, Percival, Loyal0, Assassin, and Mordred.
  • A double click sound is heard, because when checking Mordred, the function performClick() is called on Mordred (first click sound) and then on both Merlin and Percival (second and third click sounds overlap).
  • This is simply due to how the selection rules are written in CharacterSelectionActivity.

It seems that the double click sound is heard only on the phone, but hardly on the emulator. This could be because the phone model/API is old, or because of lag issues?

Whatever the case, in my opinion, the double click sound has no real adverse effect on character selection. Hence, I won't be fixing this. Someone else is welcome to fix this if he/she is interested to help improve the user experience.

Deprecated variables in ActiveFullScreenPortraitActivity

Variables deprecated in API level 30:

  • FLAG_FULLSCREEN: Use WindowInsetsController#hide(int) with Type#statusBars() instead.
  • SYSTEM_UI_FLAG_IMMERSIVE_STICKY: Use WindowInsetsController#BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE instead.
  • SYSTEM_UI_FLAG_LAYOUT_STABLE: Use WindowInsets#getInsetsIgnoringVisibility(int) instead to retrieve insets that don't change when system bars change visibility state.
  • SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION: For floating windows, use LayoutParams#setFitInsetsTypes(int) with Type#navigationBars(). For non-floating windows that fill the screen, call Window#setDecorFitsSystemWindows(boolean) with false.
  • SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN: For floating windows, use LayoutParams#setFitInsetsTypes(int) with Type#statusBars(). For non-floating windows that fill the screen, call Window#setDecorFitsSystemWindows(boolean) with false.
  • SYSTEM_UI_FLAG_HIDE_NAVIGATION: Use WindowInsetsController#hide(int) with Type#navigationBars() instead.
  • SYSTEM_UI_FLAG_FULLSCREEN: Use WindowInsetsController#hide(int) with Type#statusBars() instead.
  • setSystemUiVisibility(int): Use WindowInsetsController instead.

I'm having problems with my emulator again, and my phone is below API level 30, so I can't work on this until I have access to a device/emulator that is at least API level 30.

Game hint TextView becomes unscrollable on some (older?) devices when switching from Avalon to Secret Hitler and then back to Avalon

Observed this on Samsung Galaxy A3 (2016), which is Android 7 (API 24), but not on Samsung Galaxy A32 5G, which is Android 11 (API 30).

Tried several things but none of them worked:

  • Changed wrapper RelativeLayout to ConstraintLayout
  • Removed wrapper RelativeLayout altogether
  • Handle density configChanges in AndroidManifest

The problem can be remedied (temporarily) only if we quit the app completely and restart it.

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.