Master/detail flow layout and Android annotations - layout

I need to make an Android app that adjusts itself to handset and tablets. It's like the master/detail flow layout.
I will use Android Annotation do simplify the development.
How to create an application that adjusts itself for tablets (two panels) and handsets (single panel) using Android annotations?

try this: An Android Master/Detail Flow Tutorial
http://www.techotopia.com/index.php/An_Android_Master/Detail_Flow_Tutorial/

Related

Xamarin UI Design - Xaml ToolBox

Hello Every one iam a beginner in Xamarin - Cross platforms
so when i downloaded it and starts to work on it , it has not a UI ToolBox like the Android Studio like a Mobile Device which we Drag and drop the items and start to code thats what i mean
is there some thing like that in Xaml -Xamarin Portable Shared platforms
Or a Plugin in NuGet Display a ToolBox with drag and drop in Portable App [Andrid - Windows phone - IOS ] all togethet
There is no drag and drop in xamarin ,you need to code front end manually.
Xamarin has a xaml preview to show how the UI you coded looks.
Xamarin.Forms does not support drag and drop, use xaml for designing the UI which is very easy to learn and use Xamarin Live Player to see the changes. you can get all the information from the link below:
https://learn.microsoft.com/en-us/xamarin/xamarin-forms/xaml/
Xamarin now has a toolbox which can be used for frontend development, you can drag and drop your controls and layouts in XAML file now.
You can go to View > Toolbox to navigate to the toolbox. For further information you can follow this link.

Showing All views in the top corner in genymotion Emulator in Android Studio

I have recently installed Android Studio with genymotion emulator based on a youtube tutorial. I'm designing a simple calculator with only one button and two Number(EditText) views . When designing, it is showing different views at different positions.But, when I run it, in the emulator, all the views are appearing in the top corner. How can I resolve this issue?
It sounds like you are using the ConstraintLayout from Android Studio, and you are missing the constraints for your layout.
To fix, go inside the Layout Editor, and click on the infer constraints button (https://developer.android.com/training/constraint-layout/index.html#use-autoconnect-and-infer-constraints) , recompile and deploy to your device and the buttons should be in the correct spot.
I'll also note, you should try the official Android Emulator: https://developer.android.com/studio/run/emulator.html

How to Use Pager Tab Strip on Xamarin Forms

I want to implement tab view to my xamarin forms application. But xamarine tabs gives two diferent tab views for android and IOS. I want to Use the android tab view on both my android and ios applications as shown in the below picture. Is this possible.

Android Studio - How to add a Screen Size Definition

I am building an Android Application using Android Studio.
I want my layout to be as precise as possible, however, it seems that the list of Android Virtual Devices where we can render the layout to is limited to Nexus Devices as shown in this screenshot below:
and the "Generic Phones and Tablets" do not have much screen size and resolution variety, so I decided to add my device definition as such:
However, it did not appear in the devices that Android Studio can render a layout to in the Design view of a layout.
Solved
After restarting Android Studio, the newly created AVD (Samsung Galaxy Note 1) now appeared in my list of devices that I can preview the rendering to when I view my layout.
I think all I had to do was to restart Android Studio for it to appear. It works now.
The solution to this, is to restart Android Studio. The new devices should appear at the bottom of the list.
For others having similar issues, you may want to check the API level of your AVDs vs the compileSDK of your project. I've found that, at least for Wear OS AVDs, my devices that target an earlier API don't show up. Once I made them the same as my compile SDK version, they showed up.

Xamarin how it is getting the Native Look and Feel?

I am new to Xamarin. I have few confusion here.
Question:
How does Xamarin get the Native Look and Feel of the UI Components?.
Does Xamarin Provide their own Widgets [ like button, Layouts, ..].
Here is my understanding Correct me if I am wrong?.
1) Develop the UI [ button, layout...] by native SDK. For example iOS use Xcode. for Android ?.
2) Consider the button, when the button is pressed, the the code which is going to get executed
is common across the platform.
3) So, Since UI are directly from their respective SDK, we get the Native Look and Feel.
Kindly correct me where I misunderstood?.
I think you are way off.
Xamarin provides C# and the .Net (Mono) runtime on iOS and Android. At the same time they expose the native APIs on each platform to C#. So they built a way for C# to call into Objective-C and Java (and vice versa).
This means you develop native UIs on each platform, and can share backend business logic between platforms. A Xamarin app can share somewhere between 50-75% of its code across platforms. There is no general sharing of the UI across platforms, since this would abstract away the native APIs.
To break it down:
Android
Use Xamarin Studio or Visual Studio to develop your C# backend code
Use Xamarin's Android designer to layout native Android XML layouts
iOS
Use Xamarin Studio or Visual Studio* to develop your C# backend code
Use XCode on a Mac to layout storyboard or XIB files for native iOS UI layout
Both options you can create your UI from code as well, but the native APIs will be different on each platform.
*A mac is needed to compile for iOS

Resources