<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by aymen bensalah on Medium]]></title>
        <description><![CDATA[Stories by aymen bensalah on Medium]]></description>
        <link>https://medium.com/@bensalahaymen433?source=rss-66b98bacf6f1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*TB0ENz1P0zq3W5D_Zlol2A.png</url>
            <title>Stories by aymen bensalah on Medium</title>
            <link>https://medium.com/@bensalahaymen433?source=rss-66b98bacf6f1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 16:10:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bensalahaymen433/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[ Introducing AymoAi : One-Click Unit Test Generation and Code Refactoring for Developers(Support…]]></title>
            <link>https://medium.com/@bensalahaymen433/introducing-aymoai-one-click-unit-test-generation-and-code-refactoring-for-android-developers-075be065540d?source=rss-66b98bacf6f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/075be065540d</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[unit-testing]]></category>
            <category><![CDATA[clean-code]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[code-review]]></category>
            <dc:creator><![CDATA[aymen bensalah]]></dc:creator>
            <pubDate>Fri, 12 Jul 2024 10:09:07 GMT</pubDate>
            <atom:updated>2024-07-12T11:57:05.179Z</atom:updated>
            <content:encoded><![CDATA[<h3>🚀 Introducing AymoAi : One-Click Unit Test Generation and Code Refactoring for Developers(Support All programing languages)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VYjiZRq2_YfOAOJ9ZWjidA.png" /><figcaption>Logo</figcaption></figure><p>Hello, fellow developers! 👋</p><p>I’m thrilled to introduce you to <strong>AymoAi</strong>, a game-changing IntelliJ/Android Studio plugin designed to supercharge your development workflow. Imagine generating comprehensive unit tests and refactoring your code for optimal performance with just one click. Sounds amazing, right? Well, AymoAi makes this a reality!</p><h3>Why AymoAi?</h3><p>As developers, we often find ourselves spending a significant amount of time writing unit tests and refactoring code. These tasks, while crucial, can be repetitive and time-consuming. AymoAi leverages the power of AI to automate these processes, allowing you to focus on what truly matters — writing great code.<br>Key Features</p><p>🔧 <strong>Instant Unit Tests</strong>: AymoAi automatically generates comprehensive unit tests for your Kotlin code, ensuring your code is thoroughly tested without any manual effort.</p><p>💡 <strong>Smart Refactoring</strong>: Optimize your code with intelligent refactoring. AymoAi cleans up your code, making it more efficient and maintainable.</p><p>⚡ <strong>Seamless Integration</strong>: AymoAi integrates seamlessly with Android Studio, fitting perfectly into your existing development environment.</p><p>📈 <strong>Boost Productivity</strong>: By automating repetitive tasks, AymoAi helps you save time and improve productivity, allowing you to focus on building features and solving problems.</p><h3>How It Works</h3><p>Using AymoAi is incredibly simple. Here’s a quick walkthrough:</p><ol><li><strong>Install AymoAi</strong>: Download and install AymoAi from the JetBrains Plugin Repository <a href="https://plugins.jetbrains.com/plugin/24815-aymoai?noRedirect=true">here</a>.</li><li><strong>Select Your Code</strong>: Open the Kotlin file you want to generate unit tests for or refactor.</li><li><strong>One-Click Magic</strong>: Right-click on the file and select “Generate Unit Test” or “Refactor Code”. AymoAi will handle the rest!</li></ol><h3>A Closer Look</h3><p>Here’s a detailed look at the features:</p><h4>Instant Unit Test Generation</h4><p>AymoAi uses AI to analyze your Kotlin code and generate comprehensive unit tests. This ensures your code is well-tested and helps catch bugs early in the development process. No more writing boilerplate test cases — AymoAi does it for you in seconds.</p><h4>Smart Code Refactoring</h4><p>Refactoring code can be tedious, but it’s essential for maintaining code quality. AymoAi’s intelligent refactoring feature cleans up your code, optimizing it for performance and readability. Say goodbye to messy code and hello to clean, efficient code.</p><h4>Seamless Integration with Android Studio</h4><p>AymoAi is designed to work seamlessly within Android Studio. It integrates perfectly, offering a smooth and intuitive user experience. You can easily access AymoAi’s features through the context menu, making it a natural extension of your development workflow.</p><h3>Getting Started</h3><p>Ready to supercharge your development workflow with AymoAi? Here’s how to get started:</p><ol><li><strong>Install AymoAi</strong>: Visit the JetBrains Plugin Repository and install AymoAi <a href="https://plugins.jetbrains.com/plugin/24815-aymoai?noRedirect=true">here</a>.</li><li><strong>Explore the Features</strong>: Open your Android Studio, navigate to a Kotlin file, and try generating unit tests or refactoring your code.</li><li><strong>Share Your Feedback</strong>: We’d love to hear your thoughts! Share your feedback and let us know how AymoAi has improved your development process.</li></ol><h3>Conclusion</h3><p>AymoAi is designed to make your life as a developer easier and more productive. By automating unit test generation and code refactoring, AymoAi helps you save time, improve code quality, and focus on what matters most — building amazing apps.</p><p>Give AymoAi a try today and experience the future of development!</p><p>Happy coding! 🚀</p><h3>About the Author</h3><p>Aymen is a passionate software developer with 7 years of experience in Android development. He loves building tools that help developers become more productive and efficient. Connect on <a href="https://www.linkedin.com/in/aymen-ben-salah-b60b5a153/">LinkedIn</a> or follow on <a href="https://x.com/Aymenbe49803679">Twitter</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=075be065540d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Advanced Android Jetpack Compose tips and tricks]]></title>
            <link>https://medium.com/@bensalahaymen433/advanced-android-jetpack-compose-tips-and-tricks-865622a70637?source=rss-66b98bacf6f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/865622a70637</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[tips-and-tricks]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[jetpack-compose]]></category>
            <dc:creator><![CDATA[aymen bensalah]]></dc:creator>
            <pubDate>Thu, 02 Mar 2023 12:57:21 GMT</pubDate>
            <atom:updated>2023-03-02T12:57:21.538Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction:</h3><p>Jetpack Compose is a modern UI toolkit for Android development that allows developers to build beautiful, responsive, and easy-to-maintain user interfaces. While Compose is still relatively new, there are already many advanced tips and tricks that can help developers build even better apps. In this article, we’ll explore some of the advanced tips and tricks for using Jetpack Compose.</p><h3>Tip #1: Using Custom Layouts</h3><p>Jetpack Compose comes with many built-in layout components, such as Column, Row, and Box. However, you can also create custom layouts by creating a Composable function that returns a layout. For example, you can create a custom layout that centers its child horizontally and vertically, like this:</p><pre>@Composable fun CenteredContent(content: @Composable () -&gt; Unit) { Box( modifier = Modifier.fillMaxSize(), contentAlignment = Alignment.Center ) { content() } }<br></pre><p>You can use this custom layout like any other layout component, like this:</p><pre>CenteredContent { Text(&quot;Hello, World!&quot;) }</pre><h3>Tip #2: Animations</h3><p>Animations can make your app feel more polished and engaging. Jetpack Compose provides several animation APIs that allow you to animate various properties of your UI components. For example, you can animate the alpha, scale, or position of a component. Here’s an example of animating the position of a component:</p><p>@Composable fun AnimatedPosition() { var position by remember { mutableStateOf(Offset.Zero) }</p><pre>Box(modifier = Modifier.fillMaxSize()) {<br>    Box(<br>        modifier = Modifier<br>            .offset(position.x.dp, position.y.dp)<br>            .size(50.dp)<br>            .background(Color.Blue)<br>            .clickable { <br>                position = Offset(50f, 50f)<br>            }<br>    )<br>}<br><br>LaunchedEffect(Unit) {<br>    animateTo(<br>        targetValue = Offset(50f, 50f),<br>        animationSpec = tween(durationMillis = 1000)<br>    )<br>}</pre><p>This Composable function creates a blue box that can be clicked to move to a new position using an animation. The animation is triggered using a LaunchedEffect, which animates the position of the box over 1 second.</p><p>Tip #3: Custom Theming</p><p>Jetpack Compose makes it easy to customize the look and feel of your app using theming. You can define your own custom theme by creating a Composable function that returns a MaterialTheme. For example, you can create a custom theme that uses a custom color palette, like this:</p><pre>@Composable<br>fun MyTheme(content: @Composable () -&gt; Unit) {<br>MaterialTheme(<br>colors = myCustomColors,<br>typography = Typography,<br>content = content<br>)<br>}</pre><p>You can use this custom theme in your app like this:</p><pre>MyTheme {<br>Text(&quot;Hello, World!&quot;)<br>}</pre><h3>Tip #3: Split Screen Multitasking:</h3><p>Split screen multitasking is a handy feature that allows you to use two apps simultaneously. To use split screen multitasking, open one app and then long-press the Recent Apps button. This will bring up the list of recent apps. Select the second app that you want to use, and it will open in split screen mode. You can adjust the size of each app by dragging the divider between the two apps. You can also switch the positions of the apps by long-pressing the divider and dragging it to the other side.</p><p>Example :</p><pre>&lt;activity<br>    android:name=&quot;.MainActivity&quot;<br>    android:resizeableActivity=&quot;true&quot;<br>    android:supportsPictureInPicture=&quot;true&quot;<br>    android:configChanges=&quot;screenSize|smallestScreenSize|screenLayout|orientation&quot; &gt;<br>    &lt;intent-filter&gt;<br>        &lt;action android:name=&quot;android.intent.action.MAIN&quot; /&gt;<br>        &lt;category android:name=&quot;android.intent.category.LAUNCHER&quot; /&gt;<br>    &lt;/intent-filter&gt;<br>&lt;/activity&gt;</pre><p>In your MainActivity, you can check if your app is running in split screen mode using the following code:</p><pre>val isSplitScreen = resources.getBoolean(R.bool.is_split_screen)<br><br>if (isSplitScreen) {<br>    // Your app is running in split screen mode<br>}</pre><p>If your app is running in split screen mode, you can use the WindowManager API to get the size of the window that your app is running in:</p><pre>val windowManager = getSystemService(Context.WINDOW_SERVICE) as WindowManager<br>val display = windowManager.defaultDisplay<br><br>val size = Point()<br>display.getSize(size)<br><br>val width = size.x<br>val height = size.y</pre><p>With this information, you can adjust the layout of your app to fit in the split screen mode. You can also use the onMultiWindowModeChanged method to detect when your app switches between split screen mode and full-screen mode:</p><pre>override fun onMultiWindowModeChanged(isInMultiWindowMode: Boolean) {<br>    if (isInMultiWindowMode) {<br>        // Your app has entered split screen mode<br>    } else {<br>        // Your app has exited split screen mode<br>    }<br>}</pre><h3>Conclusion:</h3><p>Jetpack Compose is a powerful UI toolkit that can help you build beautiful and responsive user interfaces for your Android app. By using these advanced tips and tricks, you can take your Compose skills to the next level and create even better apps. Whether you’re creating custom layouts, adding animations, or customizing your app’s theme, Jetpack Compose provides many tools to help you build great apps.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=865622a70637" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>