In the link given,there is code for 'circular-menu' view.
I am intrested in using that in apllication.
But not getting how to add that in application.
So,please help me.
Android Catch Notes App Like Circle Menu
That should be easy:
Search the referenced icons and put them in your res/drawable-???? folders
Possibly change the references to their ids
Copy the text into a new File named SmallCircleView.java in your src dir
Add the necessary import statements
Incorporate it in your layout
If that's not working, provide more information.
Related
I'm brand new both to Xamarin and the Rider IDE, but not to Android. I'm going through some test projects, but when I make a new project, the ProjectName/Resources folder is missing things that I would expect to be there, most notably drawable. How can I create or get access to those directories so that I can do something like set the app icon?
I've tried creating a drawable directory, including it, and making sure that the build action is set to AndroidResource, but when I add Icon = #drawable/icon.png in the MainActivity, it doesn't recognize the drawable tag.
I found a solution for this. As I mentioned, I created the drawable folder manually, added the icon to it and made sure to right click and Include it. Then, in the manifest, I added android:icon="#drawable/icon and that got the icon to show up properly. So it didn't fix the issue of the folders not being generated, but at least for a simple task like updating the icon, it worked.
You can also declare in xaml.cs file, in your xaml form constructor the following:
x:Name_of_your_image/icon.ImageSource = (FileImageSource) ImageSource.FromFile("image/icon_name");
This way you won't need the drawable folders, as it will automatically provide the source of the image.
I'm trying to create a listview where each item in the listview has two lines of text and a radio button at the end, so you can select one of the items in the list and then click next.
simple_list_item_2_single_choice.xml does exactly this, and it is integrated into android.
I have already used simple_list_item_2 which is built in for android on another screen without problems, and I can see that simple_list_item_2_single_choice is in
...\android-studio\sdk\platforms\android-20\data\res\layout
but when I try to reference it in my code, I get the error: cannot resolve symbol 'simple_list_item_2_single_choice'
Does anyone know how to make my app recognize this inbuilt file?
Does anyone know how to make my app recognize this inbuilt file?
Step #1: Copy the file into your app project.
Step #2: Reference your copy from your Java code.
While that layout file may be part of Android, it is not part of the Android SDK, as you will not see that resource listed in the android.R.layout package.
I am working on a new Android application with a navigation with the fixed tabs and scroll-able default option Eclipse gives you.
But when looking on my .xml files for the mainActivity and the dummy file that are generated automatically, I can't find out where to edit the titles and whatnot for each individual tab section.
Do you know what I need to do?
You can change the default value of tabs by changing res/values/string.xml>title_section(x). Note: using resource string files should be something you get very familiar with as you should try your best to separate any "magic strings" from your code. Basically all strings should go in a resource file and be referenced through getString.
I am using this tutorial to try to replace the default TitleBar with a custom ActionBar. I am to the part where I am trying to create the xml layout for the custom title (#2 Under INCLUDING THE ACTIONBAR WIDGET IN YOUR APPLICATION), and the tutorial defines the ActionBar in the xml using
com.thira.examples.actionbar.widget.ActionBar
I have no idea how to figure out what to put there for my ActionBar. I believe this is called the package name. If so, how do I figure out what mine is. If not, what am I looking for here?
There are a couple options for figuring out your package name. The first (and easiest) is to declare it yourself in the project properties dialog:
Alternatively, if you haven't defined it yourself you can take a look at the AndroidManifest.xml file that is generated as part of the packaging step of the build. You can find it in the obj/Debug/android folder of your project.
Can you people see the common icon at the left of this list . If we hold and drag that icon then we can manually arrange the list. I want to know the name of this component and any example links (if available) to achieve this.
Thanks,
Its drag and drop list view you can find and example
http://ericharlow.blogspot.com/2010/10/experience-android-drag-and-drop-list.html
This project code is simply to share a simple working drag and drop list since I was unable to find one elsewhere on the web. If you add any extensions to this simple project I would like to hear about it in the comments.
or
You can also try Mark Murphy's
https://github.com/commonsguy/cwac-touchlist
To work with TouchListView in your own project, place the library project somewhere and update your project to reference the library project (via Eclipse, via android update lib-project, etc.). Then, add a com.commonsware.cwac.tlv.TouchListView widget to your XML layout file.