avatarAiden (Illumination Gaming)

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

1763

Abstract

colors = TextFieldDefaults.textFieldColors( backgroundColor = MaterialTheme.colors.surface ), placeholder = { Text(stringResource(R.string.placeholder_search)) }, modifier = modifier .fillMaxWidth() .heightIn(min = <span class="hljs-number">56.</span>dp) ) }</pre></div><h1 id="8783">Explanation</h1><ul><li>You can see in the above figure we need to design the search bar</li><li>The design is divided into many tiny pixels. We can use these pixels to find the dimension or spacing between different items.</li><li>The search bar has a height of 56 dp and a width equal to the parent.</li><li>Each pixel is 56/7=8dp</li><li>We will use a material component called a <b>Text field</b> to implement a search bar.</li><li>It is very similar to Edit Text for views. Like Edit Text it allows users to enter text into a UI.</li><li>It is of two types filled and outlined. It is mainly used in forms and dialogs. like — first name, last name, phone, address, etc.</li></ul><figure id="b858"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*0OlgZ49VIGSscHCP-EO4Fw.png"><figcaption></figcaption></figure><ul><li>As per the design, using a modifier <code>heightIn</code> we have added the min-height of 56.dp, and <code>fillMaxWidth</code> modifier utilizes the entire width of the parent.</li><li>It is the best practice to provide min-height so that the user can increase it according to his preferences.</li><li>we use <b>modifiers </b>to

  • change the composable size, layout, behavior, and appearance
  • Add information like accessibility labels
  • Process user input
  • Add high-level interactions, like making an element clickable, scrollable, draggable, or zoomable.</li><li

Options

we can chain multiple modifier methods to create a more complex adaptation.</li><li><code>value </code>parameter is used to provide any value to the Text field</li><li><code>onValueChange</code> callback performs any action when the Text field value changes.</li><li>SearchBar composable accepts a modifier that it is passing to TextField. It is the best practice followed by every composable.</li><li>It allows the caller to customize the look and feel of the composable, which makes it more flexible and reusable.</li><li>we have added a search icon to the Text field using the parameter <code>leadingIcon</code>.</li><li>We have added a background to the text Field using the parameter <code>colors </code>and method <code>TextFieldDefaults.textFieldColors</code></li><li><code>TextFieldDefaults</code> data class contains many parameters like <code>backgroundColor</code>, <code>textColor</code>, <code>placeholderColor </code>etc. We need not specify different parameters for it, we can simply use inbuilt methods of <code>TextFieldDefaults</code> .</li><li>we have added a placeholder text or hint using the parameter <code>placeholder</code> .</li></ul><h1 id="7309">Source Code</h1><ul><li><a href="https://github.com/abhineshchandra1234/MySoothe">https://github.com/abhineshchandra1234/MySoothe</a></li></ul><h1 id="f826">References</h1><ul><li><a href="https://developer.android.com/codelabs/jetpack-compose-layouts?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fjetpack-compose-for-android-developers-1%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fjetpack-compose-layouts#3">Search bar — Modifiers</a></li><li><a href="https://m3.material.io/components/text-fields/overview">Text fields</a></li></ul></article></body>

Gaming News

Reportedly, Sony Is Currently Developing the PlayStation 5 Pro

This could be a nice upgrade while everyone waits for the PlayStation 6

Photo by Krzysztof Hepner on Unsplash

In a recent post, I spoke about news on Sony’s next-generation console, the PlayStation 6, reportedly set to be released in approximately four years.

This information was revealed in a series of documents published by the UK government’s Competition and Markets Authority, which examines Microsoft’s potential takeover of Activision Blizzard.

The documents are part of Sony’s defense against the acquisition. While the actual release date was redacted, other details in the document revealed the timeline.

This news is likely to be met with mixed reactions from gamers who have just managed to get their hands on a PS5. Since its release, the PS5 has been notoriously difficult to purchase, with every restock announcement quickly resulting in the consoles selling out in minutes.

For those fortunate enough to own a PS5 for some time, the news may be disappointing, as they will have to wait seven years before the next generation of Sony consoles is available.

Fortunately, there is some good news for those looking for an upgrade. Rumors have been circulating that a PS5 Pro model is currently in the works. This information was leaked by Insider Gaming, a relatively new gaming publication that specializes in insider information and leaks.

While details about the PS5 Pro are scarce, it is expected to be released in 2024, and the console is rumored to provide a significant performance boost.

This seems to be a wise decision from Sony. The stock of PS5s is finally starting to return to normal, meaning that those who have been waiting patiently can finally purchase the console.

However, for those still waiting to make a purchase or looking for an upgrade, the promise of a more capable unit may be enough to encourage them to make the purchase. This could potentially result in a mid-season boost in sales of consoles and PS5 games.

Final Words

While the news of the PS6’s release being delayed until 2027 may disappoint some gamers, the rumors of a PS5 Pro model in the works offer hope for those looking for an upgrade.

With a potential release date of 2024, the PS5 Pro is expected to offer a significant performance boost.

This could be a smart move by Sony, as the release of a new console just as the stock of the PS5 is starting to stabilize could result in a boost in sales for the company.

Only time will tell whether this strategy pays off for Sony, but for now, gamers can look forward to the potential release of the PS5 Pro in the coming years.

If you enjoy my posts and would like to stay updated on the latest gaming-related news, technology advancements, design trends, and social media insights, I invite you to follow my profile.

I will continue to share my thoughts and insights on a wide range of topics in the world of entertainment and technology.

With that being said, thank you for reading my post, and have a good one.

About Me

I write articles in my field covering gaming, film-making, social media, and design. I am also a YouTuber. Thank you for subscribing to my account to get notifications when I post on Medium. I also created a new website to share my content for free and promote stories of writers contributing to my publications on Medium. Let’s connect on Twitter and LinkedIn.

I own two publications on Medium. One for video gamers and another for YouTubers and Podcasters. I also support Illumination Integrated Publications as a volunteer editor and participate in collaborative activities in the Slack Workspace. Writer applications for my publications can be sent via this weblink. Please add your Medium ID.

If you are new to Medium, you may join via my referral link. You may also consider being a Vocal+ member to monetize your content. I write for both platforms and repurpose my content to reach a larger audience. Here is more information about Vocal Media.

This post includes my Medium and Vocal Media referral links.

Gaming
Virtual Reality
PlayStation
Technology
Social Media
Recommended from ReadMedium