Coder Social home page Coder Social logo

monodroid.dialog's Introduction

MonoDroid.Dialog

NOTE: This project is an attempt to port the ideas and ease of use of the MonoTouch.Dialog project to MonoDroid. Given the significant differences in the layout and UI architectures between iOS and Android some things will inevitably be different between the projects but conceptually MonoDroid.Dialog should stay very close to MonoTouch.Dialog. Expect lots of changes and chaos as more and more elements get added.

MonoDroid.Dialog is a foundation to create dialog boxes and show table-based information without having to write dozens of delegates and controllers for the user interface.

Pic of the Sample App

Rendering of SampleApp

monodroid.dialog's People

Contributors

cartblanche avatar clancey avatar conceptdev avatar kennygoers avatar mattleibow avatar redth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

monodroid.dialog's Issues

RadioGroup Fails to Expand

I noticed that the RadioElement fails to expand. Here are the steps to reproduce:

Go into the same app for the MonoDroid.Dialog.

Click the dialog button on top

Scroll to the bottom and try to expand the RadioElements

Notice that the group fails to expand.

Error when adding only one section with only one element

Hi,

If you add only one section with only one element, when attach the root to adapter you get following error :

Shutting down VM
FATAL EXCEPTION: main
java.lang.ArrayIndexOutOfBoundsException: length=2; index=2
at android.widget.AbsListView$RecycleBin.addScrapView(AbsListView.java:6437)
at android.widget.ListView.measureHeightOfChildren(ListView.java:1256)
at android.widget.ListView.onMeasure(ListView.java:1156)
at android.view.View.measure(View.java:15172)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4814)
at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1390)
at android.widget.LinearLayout.measureVertical(LinearLayout.java:681)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:574)
at android.view.View.measure(View.java:15172)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4814)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
at android.view.View.measure(View.java:15172)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4814)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
at android.view.View.measure(View.java:15172)
at android.widget.LinearLayout.measureVertical(LinearLayout.java:833)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:574)
at android.view.View.measure(View.java:15172)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4814)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2148)
at android.view.View.measure(View.java:15172)
at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:1848)
at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1100)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1273)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:998)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4212)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:725)
at android.view.Choreographer.doCallbacks(Choreographer.java:555)
at android.view.Choreographer.doFrame(Choreographer.java:525)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:711)
at android.os.Handler.handleCallback(Handler.java:615)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4745)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)
Sending signal. PID: 14884 SIG: 9

The only fix I found is to add a new section without any information inside.

With more than two sections you never have any problem.

Regards,
Alan

Sample Application Fails to Compile

The DialogSampleApp fails to compile with Xamarin Studio 4.3.2;

/DialogSampleApp/Activity2.cs(6,6): Error CS0121: The call is ambiguous between the following methods or properties: MonoDroid.Dialog.Section.Add(MonoDroid.Dialog.Element)' andMonoDroid.Dialog.Section.Add(System.Collections.Generic.IEnumerable<MonoDroid.Dialog.Element>)' (CS0121) (DialogSampleApp)

MultilineElement not rendering any text.

Setting the Caption or Value properties of a Multi-Line Element, does not display anything.
The Element allows you to type into it, but it is then rendered as black text on a black background.

StringElement and others failing to appear

Running the DialogSampleApp on an Acer Iconia B1 running Android 4.1.2 and the application itself built for either (tried both) Android 2.2 or Android 4.0.3. StringElement appears blank.

screenshot_2014-02-12-13-54-01

screenshot_2014-02-12-13-54-09

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.