Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8253027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T00:44:02+00:00 2026-06-08T00:44:02+00:00

i am a junior android developer. For android UI design, i think most of

  • 0

i am a junior android developer. For android UI design, i think most of android developer will use XML for layout design. Today, my senior developer said that he does not use XML for layout design. All UI design use code to generate. The reason he said is that the layout resource is not released by Android automatically.Using JNI release the layout resource . He does not tell you in detail because he think i am very junior.

I want to ask whether he is true or not. I have no idea for his point of view. But, i make sure that his code cannot reuse. Also, how the Android release the layout resource in its life cycle.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T00:44:05+00:00Added an answer on June 8, 2026 at 12:44 am

    The reason he said is that the layout resource is not released by Android automatically

    The widgets created by inflating a layout resource are “released by Android automatically” when those widgets are removed from the activity or if the activity is destroyed. In other words, widgets are garbage-collected the same as any other Java object. And, this holds true no matter whether the widgets were created using layout resources or not.

    It is conceivable that the parsed XML of the layout resource is cached by the process, so if the same layout is needed again, the parsing step can be skipped. This will not be very much memory. Avoiding XML layout resources to avoid such small memory caching is very short-sighted, not what I would expect from a true “senior developer”.

    Using JNI release the layout resource

    JNI has nothing to do with layout resources. JNI has nothing to do with widgets, either.

    He does not tell you in detail because he think i am very junior.

    He is welcome to document his findings, providing proof for his claims and justifications for his decision.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm a junior VB.net developer with little application design knowledge. I've been reading a
I'm building a web control that will let our junior IT staff manage firmware
Today in an interview (junior web developer) the interviewer asked me this question: How
As a fairly junior developer, I'm running into a problem that highlights my lack
Working in a team environment how would you handle a developer that refuses to
I'm a junior developer and recently started working for a very small office where
As a junior developer, I mean without great experience, what would you do for
Im a junior java ee developer and i want to contribute to the opensource
Wants to get list of all junior doctors working under senior doctor and vice
My first question on here so be nice! I am a junior developer with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.